LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-20-2018, 11:07 AM   #1
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Rep: Reputation: 103Reputation: 103
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
Any ideas how I can interpret this percentage?
Attached Thumbnails
Click image for larger version

Name:	htop varnish.JPG
Views:	15
Size:	54.2 KB
ID:	28428  
 
Old 08-20-2018, 11:36 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
have you seen www.linuxatemyram.com already?
And also did you check the documentation of varnishd? https://varnish-cache.org/docs/6.0/t...roduction.html

Last edited by pan64; 08-20-2018 at 11:39 AM.
 
Old 08-20-2018, 11:41 AM   #3
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Original Poster
Rep: Reputation: 103Reputation: 103
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.
 
Old 08-20-2018, 12:04 PM   #4
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Original Poster
Rep: Reputation: 103Reputation: 103
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.
 
Old 08-20-2018, 01:38 PM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by vincix View Post
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).
 
Old 08-20-2018, 03:03 PM   #6
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Original Poster
Rep: Reputation: 103Reputation: 103
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: htop Process Viewer to monitor Processes on Linux LXer Syndicated Linux News 0 08-08-2016 09:20 AM
[SOLVED] Conky: CPU usage different that htop shows me. robgeek Linux - Software 7 06-09-2014 04:47 AM
LXer: htop (interactive process viewer) Linux Performance Monitoring tool LXer Syndicated Linux News 0 11-25-2013 05:00 AM
linux see 3.5G ram, bios shows 64GB ram mahmoodn Linux - Server 8 06-12-2012 04:35 AM
256 ram shows as 183284 total ram phreakshew Linux - Hardware 6 08-21-2006 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration