htop shows 5.62/10 ram but process takes up more than 90%
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
htop shows 5.62/10 ram but process takes up more than 90%
HTOP says that only 5.62GB out of 10GB is being used, but it also says that varnishd takes up 94.4%, as you can see in the picture. I don't understand where the logic to that is. The same is happening in top (which names varnish "cache-main" - don't know exactly why that is).
Code:
free -m
total used free shared buff/cache available
Mem: 10240 4786 4 982 5449 5453
I wasn't afraid that my ram was gone, I know how to interpret free (-m), and I know roughly what buff/cache and available mean. But that doesn't imply that I know what top says when it displays that percentage. So what you're implying is that it also takes into consideration the buff/cached ram? Even if it did so, I still have around 5GB completely free, so the percentage must be referring to something else.
Moreover, if the RES of varnish reached 9665MB, how come free and top/htop itself shows that only about half of the total RAM is taken up?
I should also mention that a while ago I added ram while varnish was running without restarting it. Not sure if this percentage has anything to do with it.
I wasn't afraid that my ram was gone, I know how to interpret free (-m), and I know roughly what buff/cache and available mean. But that doesn't imply that I know what top says when it displays that percentage. So what you're implying is that it also takes into consideration the buff/cached ram? Even if it did so, I still have around 5GB completely free, so the percentage must be referring to something else.
That's why you need to read that page (and also there is a link at the bottom to read more details).
Yes, I think I got used to seeing only "Free" (some version of free didn't output the "Available" column) in the output of "free" command and that's why I said that those 5GB are completely free. Indeed, they aren't. They're used, but available.
I actually did read some of the documentation from varnish, but there are still things I find hard to understand.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.