Need help on top and free command.

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Need help on top and free command.
# 1  
Old 12-06-2013
Need help on top and free command.

Hi,

from below output.How to read or relate one marked in bold.


Code:
[test]$ free -m
             total       used       free     shared    buffers     cached
Mem:        129176      92753      36423          0       2268      39973
-/+ buffers/cache:      50511      78664
Swap:        31996          0      31996

[test ~]$ top
top - 12:31:48 up 7 days,  1:26,  3 users,  load average: 0.75, 1.12, 1.20
Tasks: 995 total,   1 running, 994 sleeping,   0 stopped,   0 zombie
Cpu(s):  3.3%us,  1.2%sy,  0.0%ni, 95.4%id,  0.0%wa,  0.0%hi,  0.1%si,  0.0%st
Mem:  132276504k total, 94983252k used, 37293252k free,  2322436k buffers
Swap: 32764556k total,        0k used, 32764556k free, 40933180k cached


Last edited by Franklin52; 12-06-2013 at 05:27 AM.. Reason: Please use code tags
# 2  
Old 12-06-2013
Try
Code:
free -m | awk '/buffers.cache/ {print $4}'
top | awk '/^Mem: / {print $8}'

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Physical and Free mem on TOP command

Hi, When I run the free command on solaris, I get the following: "Memory: 60G phys mem, 69G free mem" Q: how cna the free mem be higher then the physical mem?:confused: Amit (3 Replies)
Discussion started by: amitlib
3 Replies

2. Shell Programming and Scripting

Swap usage by top and free command doesn't match

Its rather confusing, the output of top command is below: The "swap" field of top is described by the manpage as: "The swapped out portion of a task's total virtual memory image." But the output of free command suggests something else and it does tally with the output of swapon... (3 Replies)
Discussion started by: proactiveaditya
3 Replies

3. Linux

Top header says 50% free, but table shows 100% used

Hi, Can anyone explain this? top - 04:21:04 up 23 days, 2:35, 1 user, load average: 0.02, 0.02, 0.00 Tasks: 37 total, 1 running, 36 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 524288k total, 253084k used,... (1 Reply)
Discussion started by: varontron
1 Replies

4. Solaris

Memory usage, free and used, using sar, top and vmstat in Solaris zone/container

Hi all, I have a server running an Oracle database that is part of a Solaris M5000 container. Presumably this is referred to as a zone within a cluster, not sure if I get the terminology right. Anyway, a third-party manages the zone and unfortunately is not "helpful/friendly" to assist me on... (1 Reply)
Discussion started by: newbie_01
1 Replies

5. Solaris

Free memory in top and prstat command

Hi Export, i execute 'top' command to show the free memory in Solaris host, but the read is much lower than the RSS value shown in prstat command. Which one can reflect the real status and it is possible the difference caused by any patch of OS? Top command (only 883 memory is free)... (3 Replies)
Discussion started by: eiga
3 Replies

6. Shell Programming and Scripting

Command to find the Memory and CPU utilization using 'top' command

Hi all, I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command. Thanks in advance. Thanks, Ananthi.U (2 Replies)
Discussion started by: ananthi_ku
2 Replies

7. AIX

Top command in AIX 4.2 (no topas, no nmon, no top)?

Is there a 'top' command equivalent in AIX 4.2 ? I already checked and I do not see the following ones anywhere: top nmon topas (1 Reply)
Discussion started by: Browser_ice
1 Replies

8. SCO

HP-UX top command

Is there a command in SCO Unix that does the same as the top command in HPUX. The command displays the jobs using the most system resources. Thanks You (0 Replies)
Discussion started by: joestrosser
0 Replies

9. Solaris

top command

Hi I want to know how can I enable the command top in Solaris plataform. Thanks (1 Reply)
Discussion started by: llopez_hernande
1 Replies

10. UNIX for Dummies Questions & Answers

command --> top

What is the numbers show in a variable "Load Average"? (3 Replies)
Discussion started by: madness
3 Replies
Login or Register to Ask a Question