correctly assessing memory usage

From: Kumar Guhan (Kumar.Guhan_at_janes.com)
Date: 05/28/03

  • Next message: Nick Pettefar: "FULL BACKUP"
    Date: Wed, 28 May 2003 12:00:11 -0400
    To: <sunmanagers@sunmanagers.org>
    
    

    Hi all,

    I just wanted to have an opinion on the following procedure for
    ascertaining the amount of memory consumed by all the processes on a
    solaris 6:

    For each pid from the results of the ps command, execute the following
    command:

    /usr/proc/bin/pmap -x PID

    which results in a output like the following:

    Address Kbytes Resident Shared Private Permissions Mapped File

    00010000 64 64 - 64 read/exec
    syslogd

    00020000 8 8 - 8 read/write/exec
    syslogd

    00022000 424 416 - 416 read/write/exec [
    heap ]

    FDC02000 8 8 - 8 read/write/exec [
    anon ]

    FDD04000 8 8 - 8 read/write/exec [
    anon ]

    FDE06000 8 8 - 8 read/write/exec [
    anon ]

    FDF08000 8 8 - 8 read/write/exec [
    anon ]

           -------- ------ ------ ------ ------

    total Kb 3728 2688 1347 1344

    I sum up the figure given by private total column (1344KB, 1.3 Mb) in
    this example. Finally I arrive at a figure of something like 5Gb. The
    system has only a 1gb physical memory. My question is, are there any
    rules of thumb or anything like to say, ok if the processes are
    demanding (assuming the application has been correctly configured) we
    should at least have half of it as physical memory, or should the whole
    5gb provided as physical memory.

    Another question is the output of vmstat command, the w column, if it
    contains values other than zeros (40+ in mycase) would that indicate the
    system is struggling for memory?

    Thanks and will summarise...

    Kumar sg
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Nick Pettefar: "FULL BACKUP"

    Relevant Pages