[SOLVED] Total Memory and Swap Used As Reported by top
Linux - GeneralThis 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.
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?
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.