LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-25-2015, 10:15 PM   #1
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Rep: Reputation: Disabled
Swap memory usage


Hi,
I have mysql server which is purely just to server mysql db. I notice my top is showing as below. The server have been running for some time now. I notice the swap memory is used is that some indication of abnormality? The resident memory of mysql is almost 2.3g is that also something to worry?


Code:
top - 12:09:46 up 455 days, 15:46,  1 user,  load average: 0.37, 0.25, 0.09
Tasks: 215 total,   1 running, 214 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.1%sy,  0.0%ni, 99.8%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   7990916k total,  7326968k used,   663948k free,   158608k buffers
Swap:  8126456k total,   188244k used,  7938212k free,  3920680k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  130 root      39  19     0    0    0 S  0.3  0.0   2538:43 kipmi0
10240 root      20   0 15136 1384  984 R  0.3  0.0   0:00.02 top
31654 mysql     20   0 8306m 2.6g 4444 S  0.3 34.8   1200:13 mysqld
    1 root      20   0 19228  712  520 S  0.0  0.0   0:00.94 init
 
Old 01-26-2015, 03:26 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by newbie14 View Post
I notice the swap memory is used is that some indication of abnormality? The resident memory of mysql is almost 2.3g is that also something to worry?
Please read http://www.linuxatemyram.com/. Regardless of if there is an imminent performance problem or not, do start tracking resource usage over time using Atop, Dstat, Collectl (heya Mark), Nagios or Zabbix and then look at value changes (trending) in about a week or a month. If you experience performance problems then first look at the log files for clues, start slow query logging, run mysqltuner and check the MySQL documentation about performance tuning / troubleshooting and recommendations. Do not arbitrarily change any values but ensure you have enough monitoring data to be able to see the effect of the changes you are making. If unsure provide pertinent details and ask detailed questions first.
 
Old 01-26-2015, 03:46 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by newbie14 View Post
I notice the swap memory is used is that some indication of abnormality?
Slightly over 2% usage - hardly cause for concern I would have thought. Especially as "The server have been running for some time now".
Quote:
The resident memory of mysql is almost 2.3g is that also something to worry?
What did you purchase the memory for, if not mysql ?
 
Old 02-12-2015, 04:24 AM   #4
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Original Poster
Rep: Reputation: Disabled
Dear Unspawn,
Sorry for the late reply. I was doing some read up about the list of softwares you mentioned. I dare not try those with webgui based on my previous experience where you suggest to stay away. I saw a lot of people are talking about this Collectl as a good solution. So I would like to ask must I do a installation to fully monitor it as times goes or just run it on certain interval period?

---------- Post added 02-12-15 at 06:25 PM ----------

Dear Syg
Yes the memory is purely for Mysql as its only used for mysql server nothing else.
 
  


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
memory metric to monitor memory usage or swap? karlochacon Linux - Newbie 5 08-13-2011 03:49 PM
Memory and swap usage ? czezz Solaris / OpenSolaris 6 09-03-2008 04:51 AM
High Swap and Memory Usage rickylim Solaris / OpenSolaris 4 05-04-2006 08:56 PM
Memory / Swap Usage RoaCh Of DisCor Linux - Newbie 16 05-19-2005 02:45 PM
memory/swap usage koy Linux - Newbie 2 05-18-2004 11:12 AM

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

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