Unkown memory usage, top doesn't know


 
Thread Tools Search this Thread
Operating Systems Linux Unkown memory usage, top doesn't know
# 1  
Old 07-12-2011
Unkown memory usage, top doesn't know

Hi,

Yersterday I started monitoring my homeserver memory consumition due some errors found in the system (network hangs). I've detected almost all the memory used (~10 MB free from 1GB).

First I thought it was because of the MySQL configuration, so I monitored it with top and found it wasn't (I've checked the config file too, a home server doesn't need very large databases Smilie ).

I was not sure and I stopped about what was happening and decided to stop processes in the system. I finaly stopped all server processes and still find about 800 MB of RAM memory in use. Top knows they're in use but doesn't know what is using them exactly.

Where can I start to search?

Thanks in advance
# 2  
Old 07-12-2011
Linux? What's "free" say? It's probably all just used in cache/buffer
# 3  
Old 07-12-2011
Hi,

I mean to say available. I know, but 800 MB is a lot!! isn't it? I think something should be wrong somewhere...

---------- Post updated at 08:20 PM ---------- Previous update was at 08:16 PM ----------

Ah, and Debian Linux Squeeze with custom 2.6.39 kernel (compiled from Debian source)
# 4  
Old 07-12-2011
Code:
[mute@geek ~]$ free
             total       used       free     shared    buffers     cached
Mem:        255636     239268      16368          0      57724      97476
-/+ buffers/cache:      84068     171568
Swap:       262136      40868     221268

Let's see this output first... See, even though my processes only take up about 83MB, there is only about 13MB free of 256MB.. That's because the kernel will cache and buffer things...
# 5  
Old 07-12-2011
Quote:
Originally Posted by nefeli
I mean to say available. I know, but 800 MB is a lot!! isn't it? I think something should be wrong somewhere...
What do you think it should be doing with it? Unused memory just sits there, wasted, so it uses as much for cache as is available. It gives it up as easily as 'free' memory so it doesn't hurt anything.
# 6  
Old 07-12-2011
Thank you neutronscott, here it is. ~750 MB cached...

Code:
nefeli@currante:~$ free
                   total         used         free    shared    buffers     cached
Mem:       1024880    1005860      19020           0    119432     790400
-/+ buffers/cache:       96028     928852
Swap:      3903788        1208    3902580


Quote:
What do you think it should be doing with it? Unused memory just sits there, wasted, so it uses as much for cache as is available. It gives it up as easily as 'free' memory so it doesn't hurt anything.
I suddenly started to have problem with the system managing the huge NAT table from aMule connections and making the system hang temporaly the network interface. I never had this problem before and I'm trying to find the reason. I've found the kernel tcp_max_syn_backlog unusualy low, so I thought that the problem was the free memory.
# 7  
Old 07-12-2011
This command may help you see what your system is doing (it is a bit better than "free" in my opinion)

Code:
vmstat -s -S M | egrep 'mem|swap'

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Swap usage by top and free command doesn't match

Its rather confusing, the output of top command is below: The "swap" field of top is described by the manpage as: "The swapped out portion of a task's total virtual memory image." But the output of free command suggests something else and it does tally with the output of swapon... (3 Replies)
Discussion started by: proactiveaditya
3 Replies

2. UNIX for Dummies Questions & Answers

Command to display the space usage (memory usage) of a specific directory.

Hi all, Can you please tell me the command, with which one can know the amount of space a specific directory has used. df -k . ---> Displays, the amount of space allocated, and used for a directory. du -k <dir name> - gives me the memory used of all the files inside <dir> But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies

3. UNIX for Dummies Questions & Answers

HOWTO - Total memory and CPU usage ... without top?

Hi all, Is it possible to get total memory usage and free memory usage without top? By Googling I found for total memory usage, use vmstat, for CPU, use mpstat, for disk I/O use iostat, is this correct? Will using sar gives the same result as ALL of these three (3) commands? What about if I... (2 Replies)
Discussion started by: newbie_01
2 Replies

4. Solaris

HELP - memory usage on Solaris : ps -efl and top

Hi all, OS Version: SunOS <hostname> 5.10 Generic_142900-13 sun4v sparc SUNW,Sun-Blade-T6340 I need some expert guidance on investigating memory usage on Solaris. I want to know whether am interpreting the output from ps -efl correctly and whether the command top is showing the right... (3 Replies)
Discussion started by: newbie_01
3 Replies

5. Solaris

Memory usage, free and used, using sar, top and vmstat in Solaris zone/container

Hi all, I have a server running an Oracle database that is part of a Solaris M5000 container. Presumably this is referred to as a zone within a cluster, not sure if I get the terminology right. Anyway, a third-party manages the zone and unfortunately is not "helpful/friendly" to assist me on... (1 Reply)
Discussion started by: newbie_01
1 Replies

6. AIX

Need a list of top 10 CPU using processes (also top 10 memory hogs, separately)

Okay, I am trying to come up with a multi-platform script to report top ten CPU and memory hog processes, which will be run by our enterprise monitoring application as an auto-action item when the CPU and Memory utilization gets reported as higher than a certain threshold I use top on other... (5 Replies)
Discussion started by: thenomad
5 Replies

7. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

8. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

9. UNIX for Dummies Questions & Answers

How to get system memory usage like top

Hello all im working on sunos machine that dont have the top installed and can't be install , now i need to get information similar to what top gives me about the cpu usage and so can it be done somehow else where ? (3 Replies)
Discussion started by: umen
3 Replies

10. UNIX for Advanced & Expert Users

unix top command (memory usage)

in unix when i use top i get an output like this: load averages: 0.64, 0.57, 0.53 14:04:42 347 processes: 1 running, 1 waiting, 169 sleeping, 172 idle, 4 stopped CPU states: 16.4% user, 2.8% nice, 7.6%... (2 Replies)
Discussion started by: gfhgfnhhn
2 Replies
Login or Register to Ask a Question