memory size reported by ps

Ask a Question related to AIX, Design and Development.

  1. #1

    Default memory size reported by ps

    Hi,

    Looking at memory usage by processes, I used a ps -efo "args,vsz". I would
    expect to get the size of the process is real memory+pagingspace.
    If I do a ps -lef I get a different memory size in the column "SZ". The
    value in SZ is consistently ten times bigger than the vsz-value. That seems
    starnge to me: I would expect the core-size to be smaller than the virtual
    memory size.

    Could anyone explain this please?

    ljm


    --
    (c) ljm (bij xs4all) No part of this copyright message may be
    reproduced, read or seen, dead or alive or by any means, including
    but not limited to telepathy without the benevolence of the author.

    ljm Guest

  2. Similar Questions and Discussions

    1. question about reported directory size
      huff@>> dir /usr/lost+found/ total 192 drwxrwxrwt 2 root wheel 194048 Feb 23 13:01 . drwxr-xr-x 22 root wheel 512 Feb 23 03:38 .. Now...
    2. Ballooning Memory size while running.
      Greetings, I am currently creating a 3D Cannon game similar to the classic Scorched Earth game. However, The game is slowly but steadily eating...
    3. determine physical memory size?
      In article <bnf0pi057d@enews1.newsguy.com>, John Reiser <jreiser@BitWagon.com> wrote: Also of potential interest: vmstat -s | grep memory ...
    4. [PHP-DEV] [PATCH] Memory leak reported by ccmalloc
      Hello. I compiled PHP with ccmalloc (a memory leak detector) and it reported two memory leaks. Here is a patch that meakes the leak reports go...
    5. Getting the size of a variable in memory?
      Hi, I was wondering if there was a way to get the current size of a variable in memory? I guess soemthing like sizeof(), but for variables,...
  3. #2

    Default Re: memory size reported by ps

    ljm <me@here.there> wrote:
    l> Hi,

    l> Looking at memory usage by processes, I used a ps -efo "args,vsz". I would
    l> expect to get the size of the process is real memory+pagingspace.
    l> If I do a ps -lef I get a different memory size in the column "SZ". The
    l> value in SZ is consistently ten times bigger than the vsz-value. That seems
    l> starnge to me: I would expect the core-size to be smaller than the virtual
    l> memory size.

    l> Could anyone explain this please?

    Using this

    [url]http://www.opengroup.org/onlinepubs/007908799/xcu/ps.html[/url]

    and this

    [url]http://groups.google.com/groups?q=aix+sz+ps&selm=3onant%24kk6%40inet-nntp-gw-1.us.oracle.com&rnum=7[/url]

    one might speculate that SZ is larger than vsz because SZ includes
    "other process segments (such as text and shared memory). . . ."
    That's speculation, and loose speculation at that. Someone who
    can access the ps source can provide an authoritative answer.

    Regards,

    Nicholas

    --
    "Why shouldn't I top-post?" [url]http://www.aglami.com/tpfaq.html[/url]
    "Meanings are another story." [url]http://www.ifas.org/wa/glossolalia.html[/url]
    Nicholas Dronen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139