Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-18-2013, 01:54 PM
|
#1
|
LQ Newbie
Registered: Feb 2012
Posts: 13
Rep: 
|
Total Memory and Swap Used As Reported by top
Hi there!
I have three questions regarding top command. On my Squid server with 192 GB of DDR RAM, top reports the following:
Mem: 198332816k total, 197818004k used, 514812k free, 987408k buffers
Here are my questions:
1- Why does top see only 198332816k (189.1 GB) of total physical memory (192 GB)?
2- When sorting processes according to their RES (resident memory size), squid is reported to use about 10 GB of the memory, all other processes use about 1GB of memory together. So knowing that top reports most of my physical memory is used, where did this used memory go?
3- I had this question while monitoring top on another recently booted Linux server. top reports that swap usage is 0k, but nevertheless there are many processes with VIRT (Virtual Image) value greater than the resident memory size, which means that, I guess, there must be some swap usage. Would you please explain this to me?
Thanks a lot in advance!
Firas
|
|
|
07-18-2013, 02:09 PM
|
#2
|
Senior Member
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683
|
1/ I think it might be some confusion between GB and GiB,
the same reason a hard drive is never as big as the one you bought
2/ Disk cache http://www.linuxatemyram.com/
3/ best I paste this http://mugurel.sumanariu.ro/linux/th...in-top-output/
basically all the bits of mem it has, video ram, shared libs and so on
|
|
1 members found this post helpful.
|
07-18-2013, 03:49 PM
|
#3
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
Wonder if part of that ram is being reserved for video or other bios functions?
Top isn't an exact report as far as I understand. Could be wrong.
|
|
1 members found this post helpful.
|
07-18-2013, 05:32 PM
|
#4
|
Member
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912
Rep: 
|
I had never heard of the IEC prefixes (kibi, mebi, gibi, etc.) until about 10 or 12 years ago. I had always considered kilo, mega, and giga prefixes to refer to binary orders of magnitude, kilo meaning 2 to the 10th power, or 1024, mega meaning 2 to the 20th power, or 1024 squared, giga meaning 2 to the 30th power, or 1024 cubed, and so on.
I understand why it is desirable to differentiate between powers of 10 and powers of 2, but I have a hard time using those IEC prefixes after a previous 20 year habit of using the normal prefixes to refer to binary orders of magnitude. I can't help thinking how silly the IEC prefixes sound and look to me. It's a personal problem, I admit. And I know other people who don't find the IEC prefixes odd at all.
|
|
|
07-19-2013, 03:31 AM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,381
|
Anyone who uses Z038 as a handle has been in this business way too long.
|
|
|
07-19-2013, 08:32 AM
|
#6
|
Member
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912
Rep: 
|
Well, you got that right syg00, but I think anyone who recognizes that probably has been around a while too. :-)
|
|
|
All times are GMT -5. The time now is 09:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|