lkml.org 
[lkml]   [2004]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Limiting program swap
Date
Jesper Juhl writes:

> Bill Davidsen wrote:
>> I have several machine of various memory sizes which suffer from really
>> poor performance when doing backups. This appears to be because all the
>> programs other than the backup quickly get swapped to make room for i/o
>> buffers.
>>
>> Is there some standard portable way to prevent this, either by reserving
>> some memory for programs which will not get swapped regardless of i/o
>> pressure, or alternatively limiting the total memory used for i/o
>> buffers, dcache, and similar things?
>>
>
> I'm wondering if turning the /proc/sys/vm/swappiness knob would help,
> but I'll honestly admit that I don't know.

No, there comes a point where the vm pressure overrides the value of
swappiness and we start swapping. It is better in 2.6.7 and before with
issues yet to be resolved in the latest mainline trees. My tree (-ck) has a
slightly different tuning and a hard maplimit option for just such a reason
but are unlikely to be of interest to the mainline maintainers so I've never
promoted them.

Cheers,
Con

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site