LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 06-09-2015, 04:28 PM   #1
stu6969
LQ Newbie
 
Registered: Jun 2015
Location: Milwaukee, WI
Posts: 1

Rep: Reputation: Disabled
SLES memory buffer usage


I have a virtual (VMware workstation) SLES 12 linux install (kernel 3.12) sized at 21gb. I am running a fairly large database in it. When I start the database engine it takes up ~7gb of memory. Slowly after startup my buffer memory increases and free memory goes down to ~1gb:

From free -m:
used free
-/+ buffers/cache: 18034 3196

I have no idea what is using this buffer memmory, it's not disk cache as free reports that as only 1gb. Resident memory for all running processes is ~7gb.

When I stop all database services free memory increases to ~7gb, but buffers stay at ~15gb. Nothing I try frees them. Tried umounting all database file systems. echo 1/2/3 to /proc/sys/vm/drop_caches. Nothing works.

From free -m:
used free
-/+ buffers/cache: 14368 6862

Strangely - after I suspend my guest/database system in VMware and then resume it my memory magically returns and I have the expected ~19gb free. As soon as I restart the database the process repeats.

From free -m:
used free
-/+ buffers/cache: 568 20662

Any idea how I can see what is holding these buffers? They have to be internal, i've checked vmstat, /proc/meminfo. Thinking it is disk page cache, but that should write and shrink eventually - especially after I shut down my database engine. It is definitely not disk cache (from top & free), that never goes about ~2gb...

Any help appreciated!
 
Old 06-11-2015, 01:54 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
have you ever checked http://linuxatemyram.com?
 
Old 06-11-2015, 08:41 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,649
Blog Entries: 4

Rep: Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934Reputation: 3934
"Buffers" are copies of information that is stashed by the file-system in memory that is not presently being used for any other purpose.

You want the "free memory" to be comparatively low: you want the memory to be doing something useful for you, and "buffers" are a typical way that this happens. They're an opportunistic use of RAM. If someone comes along that needs RAM to hold its virtual memory, the first thing that happens is that the buffer-pool size goes down. Buffer pages are the first-in-line for stealing.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
for buffer streaming which is better solution for apps to access memory buffer? dennisdd Programming 3 02-13-2012 11:07 PM
X hangs after prolonged usage ... memory usage goes upto 195MB duryodhan Slackware 18 05-10-2007 06:16 PM
Memory Usage Spaw Usage Swappiness Issues joelunch Linux - Software 3 01-04-2006 06:16 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:08 AM.

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