gmemusage

From: Bob Tennent (BobT_at_cs.queensu.ca)
Date: 07/15/04

  • Next message: Matt Palmer: "Re: (gcc) warning: no newline at end of file"
    Date: 15 Jul 2004 17:08:00 GMT
    
    

    I've been using this application on my desktop for years. It presents
    a bar-graph view of how memory is currently being used. Unfortunately,
    I've begun to doubt the accuracy of the numbers it's using, particularly
    on 2.6 kernels, so I've been looking at the source (GPLed). A bug
    involving double-counting of buffer space was easy to find, but I'm
    not satisfied that the overall approach being used is sound because
    shared libraries and code are being counted multiple times if there are
    multiple processes using them, and I think that's wrong.

    For example, if /proc/N/status for process N shows

    VmSize: 10760 kB
    VmLck: 0 kB
    VmRSS: 3868 kB
    VmData: 5640 kB
    VmStk: 1876 kB
    VmExe: 76 kB
    VmLib: 3072 kB

    I would expect that the Exe pages are shared among multiple instances
    of that process and the Lib pages are shared among processes using the
    same libraries. But in any case these seem to be Size rather than RSS
    numbers. The program simply adds up the VmRSS number for every process,
    including multiple instances.

    I'd be grateful for some guidance or pointers to relevant documentation.
    It should be evident that I'm not a kernel hacker, nor hope to become
    one, but I really would like to fix this application (or be pointed to a
    comparable one).

    Bob T.


  • Next message: Matt Palmer: "Re: (gcc) warning: no newline at end of file"

    Relevant Pages

    • Sorting, FIltering & Counting
      ... New to excel and have no idea of how to proceed, any help or pointers ... I have a column of Names, with multiple instances of each name, and I ... paragtim's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=34010 ...
      (microsoft.public.excel.programming)
    • Multiple Instances of Word
      ... up multiple instances of Word. ... Any pointers would be useful as I've had to remove the check from my global ... code and it's given me the shakes! ... Pete. ...
      (microsoft.public.word.docmanagement)