Results 1 to 6 of 6

Thread: Unix command to check memory usage

  1. #1
    Contributors sweta's Avatar
    Join Date
    Feb 2005
    Location
    New Delhi
    Posts
    225
    Thanks
    20
    Thanked 12 Times in 12 Posts
    Rep Power
    12

    Default Unix command to check memory usage

    UNIX command to check free and used memory. Can anyone show me command for this task?

    TIA

  2. #2
    Junior Member
    Join Date
    Dec 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default check memory

    $ vmstat
    System configuration: lcpu=2 mem=8192MB
    kthr memory page faults cpu
    ----- ----------- ------------------------ ------------ -----------
    r b avm fre re pi po fr sr cy in sy cs us sy id wa
    2 3 2336209 49400 0 11 8 227 157 0 234 8614 830 28 7 60 5
    $ vmstat 5 5
    System configuration: lcpu=2 mem=8192MB
    kthr memory page faults cpu
    ----- ----------- ------------------------ ------------ -----------
    r b avm fre re pi po fr sr cy in sy cs us sy id wa
    2 0 2337381 48080 0 0 0 0 0 0 581 4301 1294 60 4 36 0
    1 0 2336206 49193 0 1 0 0 0 0 650 3980 1417 57 5 36 1
    3 0 2342415 42938 0 3 0 0 0 0 653 8710 1541 66 9 23 1
    4 0 2359028 26293 0 3 0 0 0 0 678 41228 2382 61 19 19 1
    9 1 2382768 2515 0 3 0 0 0 0 1213 69808 2459 65 33 1 0

  3. #3
    Junior Member
    Join Date
    Dec 2007
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    try using this commands

    #free
    or
    #free -m
    total used free shared buffers cached
    Mem: 248 227 21 0 78 110
    -/+ buffers/cache: 38 209
    Swap: 572 0 572

    or the best

    #top

    or

    #vmstat

  4. #4
    Senior Member raj's Avatar
    Join Date
    Jun 2005
    Location
    Hyderabad
    Posts
    566
    Thanks
    57
    Thanked 41 Times in 38 Posts
    Rep Power
    14

    Default

    top command will also give you idea.

    Code:
    dmesg | awk '/Physical:/ && /Kbytes/ {print $2}'
    getconf KERNEL_BITS
    echo "phys_mem_pages/D" | adb64 /stand/vmunix /dev/mem
    Raj
    Linux rulz.
    I have never turned back in my life ; I shall not do so today.. haha

  5. #5
    Junior Member
    Join Date
    Jan 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Smile

    You can see the memory usage in HP-UX using swapinfo

    try
    swapinfo -tam

  6. #6
    Junior Member
    Join Date
    Jan 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    You can use swapinfo command for memory usage

    swapinfo -tam

    You can also use glance and top commands to check memory.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Command to Check Linux File System
    By lacloai in forum Getting started tutorials
    Replies: 7
    Last Post: 11th June 2014, 06:48 PM
  2. unix find out ram usage command
    By charvi in forum Solaris/OpenSolaris
    Replies: 4
    Last Post: 10th April 2008, 02:22 AM
  3. command for knowing free memory in BSD
    By ricc in forum All about FreeBSD/OpenBSD/NetBSD
    Replies: 2
    Last Post: 8th July 2007, 01:28 PM
  4. HP unix check filesystem for errors
    By jerry in forum HP-UX
    Replies: 0
    Last Post: 9th June 2007, 01:49 AM
  5. Use memory command to find details under Fedora Linux
    By chiku in forum Getting started tutorials
    Replies: 0
    Last Post: 29th April 2007, 08:35 PM

Tags for this Thread

Posting Permissions

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