LinuxQuestions.org
Help answer threads with 0 replies.
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 03-18-2006, 12:30 PM   #1
GUIPenguin
Member
 
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239

Rep: Reputation: 30
memory delima


OK I have a server with 512mb of ram. It has been acting really slow lately so I went to run top and see how much ram was left

Mem: 506460k total, 499672k used, 6788k free,


(now I thought I only had a little over 6mb free but...)


free -m looking at -/+ buffers/cache: shows 343 ram free

so this looks right because if I grab a calc and add up all the processes from 'ps -aux' and subtract that from 512mb I get 343



Someone said " GUIPEnguin, There is memory allocated and there is memory *in use*. They are two different things"



so which figure should I go with? the 6mb or the 343 I originaly thought 6mb because my system is acting so damn slow..

anyone want to help me understand this.. thanks.


EDIT: this is a good read on understanding how linux manages memory http://gentoo-wiki.com/FAQ_Linux_Memory_Management I figured it out

Last edited by GUIPenguin; 03-18-2006 at 12:32 PM.
 
Old 03-19-2006, 11:37 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,668
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
As far as I see, "memory" isn't your problem. You assume that it is, but you have not tested that assumption. All that you know is that "the server is acting really slow lately."

When diagnosing a general slowdown, what you want to do first is to observe what is causing the various processes on the system to wait. If you find that they are waiting in a swap-wait, then yes, you have a memory constraint. But if you find that they are waiting for general disk I/O, maybe you have another problem. (Look at hdparm ... is DMA "on" as it should be, for example?) Look at the system logs, such as /var/log/messages, for any clues.

You might have an actual hard-disk problem... check out smartctl and smartd, which provide a way to run onboard diagnostics on a hard-drive without shutting down the system.

You might have a network hardware malfunction ... an excessive number of retries, or collisions, as shown by ifconfig.

In short, it's easy to run after "red herrings." You assume what "must" be the cause and fail to notice that you haven't systematically eliminated possibilities. I've done it many times myself.
 
  


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
tool to detect number of memory slots, memory module type, speed, and size stefanwolf Linux - Hardware 8 04-22-2013 09:48 AM
Help Configuring the Memory Used by a Process in RedHat? (Cache Memory on CPU) geogecko Linux - General 3 02-23-2005 03:32 PM
Memory Leak when using memory debugging C program on SuSE SLES8 babalina Linux - Distributions 0 10-06-2003 09:39 AM
Help!?! RH 8 Memory Mapping -High Memory-Virtural Memory issues.. Merlin53 Linux - Hardware 2 06-18-2003 04:48 PM
RH 8.0 Mapping Virtual Memory to get access to VMIC Reflective Memory PCI card. Merlin53 Linux - Hardware 0 05-05-2003 12:50 PM

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

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