LinuxQuestions.org
Help answer threads with 0 replies.
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-28-2018, 01:28 AM   #1
saiwang
LQ Newbie
 
Registered: Aug 2018
Posts: 4

Rep: Reputation: Disabled
How to know how much memory that Linux kernel is using?


I am checking a Linux VM unresponsive issue and I was told that it might be caused by some APP made Linux Kernel used too much memory,(more than 800MB on a 32bit system), I want to monitor memory usage of the Kernel, how can I do that? is the Kernel memory usage equal to the sum up of output of /proc/slabinfo?
 
Old 08-28-2018, 02:34 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
I think you will get a lot of info on the net if you try to look for "kernel memory usage"
 
Old 08-28-2018, 07:49 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by saiwang View Post
I am checking a Linux VM unresponsive issue and I was told that it might be caused by some APP made Linux Kernel used too much memory,(more than 800MB on a 32bit system), I want to monitor memory usage of the Kernel, how can I do that? is the Kernel memory usage equal to the sum up of output of /proc/slabinfo?
Sounds like fishing in the dark. Go back to the person that suggested this and ask:
- on what do they base this assertion
- what evidence do they suggest you collect

There are many reasons a system might misbehave - get some evidence rather than jumping on what is probably the least likely. To satisfy your curiousity, use the numbers provided by /proc/meminfo rather than attempting to sum the slabs yourself - there are several fields that could be considered "kernel memory". And no, they aren't "all of it", but close enough to see trends in growth if any exists.

Personally I would be looking at constraints and device emulation imposed by your VMWare host (mentioned in your other thread, but left out of this).
 
1 members found this post helpful.
Old 08-29-2018, 02:33 AM   #4
saiwang
LQ Newbie
 
Registered: Aug 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you

Quote:
Originally Posted by syg00 View Post
Sounds like fishing in the dark. Go back to the person that suggested this and ask:
- on what do they base this assertion
- what evidence do they suggest you collect

There are many reasons a system might misbehave - get some evidence rather than jumping on what is probably the least likely. To satisfy your curiousity, use the numbers provided by /proc/meminfo rather than attempting to sum the slabs yourself - there are several fields that could be considered "kernel memory". And no, they aren't "all of it", but close enough to see trends in growth if any exists.

Personally I would be looking at constraints and device emulation imposed by your VMWare host (mentioned in your other thread, but left out of this).
Thank you for your advice, I am newbie to Linux, would you show me what fields of /proc/meminfo that can be considered as "kernel memory"? is there anyway to get a value that represents kernel memory usage directly?
 
Old 08-29-2018, 02:36 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
you might want to read www.linuxatemyram.com
 
1 members found this post helpful.
  


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



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

All times are GMT -5. The time now is 10:20 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