Solved

All memory is used,  but cant find the process thats using it

Posted on 2012-03-14
1
447 Views
Last Modified: 2012-03-14
Hi,

 
Distro is : Red Hat Enterprise Linux Server release 6.2 (Santiago)

Here is my /proc/memnfo:
MemTotal:       16334688 kB
MemFree:          198172 kB
Buffers:           20564 kB
Cached:           146904 kB
SwapCached:        31912 kB
Active:          4507860 kB
Inactive:         637712 kB
Active(anon):    4391504 kB
Inactive(anon):   587792 kB
Active(file):     116356 kB
Inactive(file):    49920 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       6160376 kB
SwapFree:        5435248 kB
Dirty:               116 kB
Writeback:             0 kB
AnonPages:       4962748 kB
Mapped:            11984 kB
Shmem:              1188 kB
Slab:             101552 kB
SReclaimable:      69648 kB
SUnreclaim:        31904 kB
KernelStack:        2504 kB
PageTables:        20908 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    14327720 kB
Committed_AS:    7284856 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      304036 kB
VmallocChunk:   34359426780 kB
HardwareCorrupted:     0 kB
AnonHugePages:   3551232 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:       10240 kB
DirectMap2M:    16766976 kB



I only have 1 java process that takes 30% of my memory, why does proc says  All my memoory is used?

Thanks
0
Comment
Question by:icongo
1 Comment
 

Accepted Solution

by:
icongo earned 0 total points
ID: 37720638
I think I have found my  Not_Problem. All memory is used for disk caching.

Thanks to Linuxatemyram.com

Linux is borrowing unused memory for disk caching. This makes it looks like you are low on memory, but you are not! Everything is fine!

Why is it doing this?

Disk caching makes the system much faster! There are no downsides, except for confusing newbies. It does not take memory away from applications in any way, ever!

What if I want to run more applications?

If your applications want more memory, they just take back a chunk that the disk cache borrowed. Disk cache can always be given back to applications immediately! You are not low on ram!
Do I need more swap?

No, disk caching only borrows the ram that applications don't currently want. It will not use swap. If applications want more memory, they just take it back from the disk cache. They will not start swapping.
How do I stop Linux from doing this?

You can't disable disk caching. The only reason anyone ever wants to disable disk caching is because they think it takes memory away from their applications, which it doesn't! Disk cache makes applications load faster and run smoother, but it NEVER EVER takes memory away from them! Therefore, there's absolutely no reason to disable it!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now