LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-07-2010, 09:31 AM   #1
write2ashokkumar
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?


Thanks.

Regards,
S.Ashokkumar.
 
Old 04-07-2010, 09:53 AM   #2
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
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 09:54 AM.
 
Old 04-07-2010, 09:54 AM   #3
cantab
Member
 
Registered: Oct 2009
Location: England
Distribution: Kubuntu, Ubuntu, Debian, Proxmox.
Posts: 553

Rep: Reputation: 115Reputation: 115
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:
Code:
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, 05:23 PM   #4
vorgusa
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
 
  


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
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
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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