lkml.org 
[lkml]   [2002]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectNeed assistance in determining memory usage
    From
    Date
    Greetings all.

    I have been asked a question by some of the developers in my
    organization and after searching Google, scouring the Linux newsgroups,
    and searching as many mailing list archives and howtos as I could find,
    I still cannot find a satisfactory answer to the following question:

    Q. How can you determine how much memory a process is using at a given
    point in time? Specifically, I want to know of a method or tool that
    will tell me how much total memory a process is using, how much of that
    total is shared with other processes, how much is resident, and how much
    is swapped out.

    Please don't say to just use ps or top, because if either of these tools
    was adequate, I wouldn't be asking here and every reference I could find
    indicates that this is not a trivial problem. There were also
    indications I found while searching that these tools do not always
    report memory numbers accurately. If there is a way to determine this
    information using /proc, this would be ideal, since I could then
    conceivably create a script or simple program that could determine the
    answer given the process ID, which is what the developers here really
    want.

    If you can assist me in determining the answer to this question, I would
    greatly appreciate it. Please note that I am far from being a kernel
    expert (being just a lowly systems administrator), so please keep make
    your explanations as detailed as possible.

    Tom S.

    --
    +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
    | Tom Schenk | A positive attitude may not solve all your |
    | Online Ops | problems, but it will annoy enough people to |
    | tschenk@ea.com | make it worth the effort. -- Herm Albright |
    +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:30    [W:4.506 / U:1.644 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site