Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-07-2010, 10:31 AM   #1
LQ Newbie
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
Memory usage

We have newly installed linux server with 12 GB of RAM.

Only mysql server in running with this linux box.

We are trying to set the more buffer for mysql, but mysql is not taking.

We have tried to fixed this issues, that time we have seen the memory usage of the linux.

Tasks: 279 total, 1 running, 278 sleeping, 0 stopped, 0 zombie
Cpu(s): 3.6%us, 0.2%sy, 0.0%ni, 92.7%id, 3.4%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 12293068k total, 12250064k used, 43004k free, 18012k buffers
Swap: 14352376k total, 216k used, 14352160k free, 8380644k cached

Here used size is around 11GB free only 40MB, we dont know why OS taking more memory. Only mysql is running in this server, which is taking 30% of RAM, remaining space using my OS.

How to check the process which is taking more memory?

How to optimize the linux OS?

Can you anybody help me?


Old 04-07-2010, 10:53 AM   #2
LQ Guru
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Over 2/3 of your memory is used by the file cache. That is normal and healthy operation of your system. It is not something you should worry about, diagnose, or try to "correct".

If you want to know more than that, do a forum search and read a few of the hundreds of times this same question has been asked and answered.

Last edited by johnsfine; 04-07-2010 at 10:54 AM.
Old 04-07-2010, 10:54 AM   #3
Registered: Oct 2009
Location: England
Distribution: KDE Neon, Ubuntu, Debian.
Posts: 525

Rep: Reputation: 105Reputation: 105
The 'used' memory includes large amounts of disk cache. It's 'used' in the sense that Linux is making use of it, rather than it sitting idle. However, it can also be called 'free' since if a program wants memory it will be made available for that program.

Run the command 'free' and you'll get an output like the following:
root@sysresccd /root % free
             total       used       free     shared    buffers     cached
Mem:        971888     892920      78968          0       4344     591140
-/+ buffers/cache:     297436     674452
Swap:            0          0          0
The "-/+ buffers/cache" line gives what most people normally think of as used vs free memory.
Old 04-07-2010, 06:23 PM   #4
LQ Newbie
Registered: Jul 2009
Posts: 4

Rep: Reputation: 1
You can run "top" and hold shift-M to get the Memory usage by program


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
X hangs after prolonged usage ... memory usage goes upto 195MB duryodhan Slackware 18 05-10-2007 07:16 PM
Memory Usage Spaw Usage Swappiness Issues joelunch Linux - Software 3 01-04-2006 07:16 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 09: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 05:45 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 06:55 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:30 PM.

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