Memory managment - linux


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Memory managment - linux
# 1  
Old 04-23-2006
Memory managment - linux

Hi,

I having problem with my linux machine
it have 6Gb physical memory and somehow it always almost coming to the bottom neck and than it start writing to the swap memory
you can see that there is more than 4G in cahce, is there any way to clean the cache or to limit it to 2Gb?
Code:
host1 /usr/local/host 3> free -ml
             total       used       free     shared    buffers     cached
Mem:          5954       5935         18          0        210       4308
Low:           770        753         16          0          0          0
High:         5183       5181          1          0          0          0
-/+ buffers/cache:       1416       4538
Swap:         4095       1003       3092


Last edited by zazzybob; 04-23-2006 at 10:16 AM.. Reason: added code tags for readability
# 2  
Old 04-23-2006
The free output I see looks just fine to me. I see 1456 used in cache not 4538.

Anyway - the kernel takes unused memory and uses it for cache. If there are processes on the box, it's usual to see most of the memory as "used". The kernel releases it as needed.

What bad symptoms are you seeing?
# 3  
Old 04-23-2006
The cache is on 4308:
Code:
             total       used       free     shared    buffers     cached
Mem:          5954       5935         18          0        210       4308

the bad symtomps is that it writes to the swap, when it hold so much memory in cache,

I'd like it to realse the cache and use it b4 using the swap memory

Last edited by zazzybob; 04-23-2006 at 10:18 AM.. Reason: please use code tags for command output
# 4  
Old 04-23-2006
First off, is your kernel 2.4? Knowing your Linux version and distro may help us, too.
# 5  
Old 04-23-2006
Hi
You right I should give u that b4
its 2.4.21-32
# 6  
Old 04-23-2006
2.4 has known issues with hanging on to cache too long - here try this:

http://www.ussg.iu.edu/hypermail/lin...08.2/0700.html

This explains the pagecache:
http://www.faqs.org/docs/kernel_2_4/lki-4.html

You have choices - find a patch/upgrade for your kernel, or upgrade to 2.6 which does not have the problem of "not letting go". This sounds like a RH kernel, they have an update center, did you check with them?
# 7  
Old 04-24-2006
Ok thanks
Ill look on that
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Configuration of Linux cluster managment on Red Hat 5.x server

Hi Experts, I have question regarding linux cluster managment on Red Hat 5.x server. When I try to install 'luci' or 'ricci' in one of our linux servers it is giving me below error:- yum install luci Loaded plugins: katello, product-id, rhnplugin, security, subscription-manager Updating... (0 Replies)
Discussion started by: Amey Joshi
0 Replies

2. UNIX for Dummies Questions & Answers

Linux managment system

Hello Folks so i have a question, we have about 1000 linux machines in our org and would like to be able to manage all of them, what type of software would i use, any suggestions? i heard of puppet, what else do we have available? (1 Reply)
Discussion started by: hookitup
1 Replies

3. Solaris

Solaris Process Managment

Hi gurus, Please advice me in case such a process is taking too much of memory what are the necessary steps we need to do. Please explain with detailed. Thanks | P.Bharathiraja:confused: (3 Replies)
Discussion started by: bharathiraja
3 Replies

4. Red Hat

Quota Managment - Virtual Users - VSFTPD

Hi guys. I have configured Vsftpd with virtual users using Berkley DB. it is running fine. But how can we implement disk quotas for virtual users? (1 Reply)
Discussion started by: majid.merkava
1 Replies

5. Red Hat

Shared memory in linux

Hello, I am using Linux os. $ df -k /dev/shm Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 2023256 1065000 958256 53% /dev/shm $ Based on my google this, it is shared memory. What is this shared memory and where exactly it is used? Can you... (5 Replies)
Discussion started by: govindts
5 Replies

6. AIX

HMC - craring new Managment Resource Role

Hello, I need help with creating Managment Resource Role on HMC v7. I can assignee whole machine to new role but I can't do this with single LPAR. I can't even open list of LPARs, i can see only list of machines connected to this HMC. Do you know how I can solved this problem. I have to create... (3 Replies)
Discussion started by: plechu
3 Replies

7. IP Networking

Trafic Managment on the Ubuntu Server 8.04 HOW TO?

I need help, how to set traffic management on the ubuntu server with the real life situation. For example, I would like to set the lowest priority or the "Best-Effort Traffic" for the ports in the range from 35000-37000 only on the TX(transmit) and I would like that same port range has... (1 Reply)
Discussion started by: loopdemack
1 Replies

8. Linux

Linux Memory Track

Hi All, We are using the linux servers and need to track the memory utilization of the box. Could anyone advice how the same can be achived. :) (1 Reply)
Discussion started by: haitorajesh
1 Replies

9. AIX

volume managment

Can anyone tell me why its a bad idea to have rootvg span multiple physical drives i.e. hdisk0 00014861356a3c77 rootvg hdisk1 0001486111354c7c rootvg hdisk2 00014861fcef6a5d rootvg hdisk3 none None thanks (1 Reply)
Discussion started by: csaunders
1 Replies
Login or Register to Ask a Question