LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-05-2004, 02:26 PM   #1
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
vm issue 2.4.26 free/swap


hi all

i'm running into problems with an old low memory (96M) machine serving as gw/proxy/knfs-server. if the box is running some time it starts to swap out quite much. after 4 days i've 2/3 of 138M swap used. this alone doesn't bother me, but at the same time 25~30M are free (+ 5M buffers + 24M cache). i tried a lot with the tuning knobs in /proc/sys/vm but that didn't help. it looks like the 2.4.26 doesn't reuse the free mem fast enough (or frees some swaped out pages ) - so every time a process takes memory and frees it afterwards it won't get used (since the box is idle most of the time and no other process will need anything?).

anyway, the machine (luckily) stops that behavior at ~30M free - but this is way to much for a 96M machine (it should use it for cache/buffer; i would be happy with ~10M) i'd like to know if somebody has an idea about settings for vm_cache_scan_ratio, vm_lru_balance_ratio, vm_mapped_ratio, vm_passes, vm_vfs_scan_ratio in proc/sys/vm. i already searched ../mm/vmscan.c and others but i'm quiet clueless about better settings here (ex. how much to raise mapped_ratio). or is the bdflush responsible for this? also i found lot of useful sites/posts on that, but their prob's more about using bigmem machines (>2G ram) ;-)

i havn't noticed that problem back on the 2.4.24 but some things (overall load/filesystems) changed since using it. also free mem shrinks if i stream files off the ogg server or up/download files via nfs since this data will be buffered/cached, but soon after stopping, free raises again =(

does anybody have an idea how to stop that?

thx
mritch.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd swap usage even though there is free RAM Artanicus Linux - Hardware 5 09-28-2005 02:25 AM
Need Partition Creator for Ext2, Ext3 and Swap Partitions (FREE) milesonwheels Linux - Laptop and Netbook 2 07-14-2004 05:18 PM
Free BSD 4.9 x issue jfranks214 *BSD 7 04-11-2004 06:24 PM
HELP! Swap file issue Steave Linux - General 3 09-16-2001 03:50 PM
Setup free space on /dev/hdc without screwing up /swap DavidPhillips Linux - General 4 06-24-2001 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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