LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-28-2013, 10:27 AM   #1
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Rep: Reputation: Disabled
Centos memory usage


I have centos 6.4 server running purely mysqld db only where the current %MEM is 25.8 but I notice there is some swap in my top command used 6620K used. My total memory is 7990916K used is showing as 7427304K. I know not all memory is used because linux will normally take more than its required but its swapping now is worrying me. Anything I should do ?
 
Old 11-28-2013, 11:13 AM   #2
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Why does swap usage worry you? Since you have the resource, shouldn't you use it for something if necessary?
You do realize how incredibly tiny in the scheme of things 6620K is, right? You could probably just round that number down to zero in your head if it makes you less worried.
 
Old 11-28-2013, 11:20 AM   #3
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Original Poster
Rep: Reputation: Disabled
Dear Snowpine,
When should I get worried ? Yes I did even the vmstat nothing is showing up in the S1 and SO. Acctually why does linux take up practically everything of my ram ? Another thing why does mysql memory keep increasing? Will it increase till the threshold innodb_buffer_pool?
 
Old 11-28-2013, 11:27 AM   #4
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
There is some good info here: http://www.linuxatemyram.com/

Also an interesting read: https://en.wikipedia.org/wiki/Swappiness
 
Old 11-28-2013, 12:17 PM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
im guessing you are sitting at roughly 8G RAM in your server. if you are just now starting to touch swap, its nothing to worry about, but do keep an eye on it. if you start touching more and more swap you will want to increase the physical RAM in the server. while swap is nice to have, it is considerably slower in performance to physical RAM even with newer SSD drives.

Today its nothing to stress over. It should be monitored though. I would be concerned if you were using 95-100% physical RAM and 1G or more of swap. at that point, you need more physical RAM or you will start to see performance issues in the DB.
 
  


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
Centos Server Apache Usage Alot Of Memory And Cpu awww Linux - Server 3 07-30-2011 06:25 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 06:46 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