LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-13-2002, 11:38 PM   #1
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
Setting MAX cache allocation


I desire to set my MAX cache allocation to 64 MByte, does anyone know how this can be done on a current kernel?

I am having a problem with programs being killed by the kernel when an out of memory occurs, and yet the cache allocation remains about 40% to 50% of my RAM. When the cache allocation is above 50%, the kernel will decrease cache and then it decreases programs. It appears to kill the largest running program first. This sacrafice from the kernel is not concerned if the data file is saved or if it is actively busy like printing.

I am using kernel 2.4.18 and it does not have the pagecache tuneable item in the VM system anymore. Sysctl does not list any item that would at least appear to replace it. I am configured for 384 MByte RAM and no swap space.

I have checked the 2.4.19 and 2.4.20 kernels and they do not offer the setting either. Any suggestions or thoughts on how the cache memory allocation can be managed would be greatly appreciated.


<Followup>

Even though 2.4.19 does not have the pagecache setting is does improve the VM management considerably. I ran across a thread discussing 2.4.19 swap management and how improved it was over 2.4.18. I was not able to duplicate on my notebook under 2.4.19, so I figured it was at least worth a try. I had other problems attempting 2.4.20 that I will have to delay that for a awhile until the issues are resolved. My initial tests showed I could open about three times the programs before any were terminated. The cache size was down to 94 MByte when that happened, about 100 MByte less than before. So at this point, time will tell.

Thanks to everybody that read the post and considered the problem.

</Followup>

Last edited by Excalibur; 12-14-2002 at 01:54 PM.
 
  


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
Setting a users max. no. of file descriptors for remote graphical login azrael808 Linux - Software 0 03-25-2005 01:56 PM
Install Oracle 9i on slack 10: setting the max shared memory parameter permanently rsumbeling Linux - General 0 12-10-2004 11:21 AM
Setting Max Files ptreves Linux - General 3 12-05-2004 10:50 AM
Setting up Linux NAT with Squid web cache mikeaustn Linux - Networking 5 03-02-2004 08:59 PM
Setting up Cache Server !! hitesh_linux Linux - General 1 04-02-2003 01:54 PM

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

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