lkml.org 
[lkml]   [2004]   [May]   [10]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateMon, 10 May 2004 13:22:41 +0300
FromSilviu Marin-Caea <>
SubjectRe: dynamic allocation of swap disk space
John Bradford wrote:

>>The way I see the solution is: allocate swap space dynamically, until
>>there is no need for more or the disk becomes nearly full.  If that
>>happens, then start thrashing it, all right.  Then when the condition is
>>gone and things are back to normal deallocate the additional swap.
> 
> 
> Very bad idea in my opinion.

Most likely quite so, I'm not a guru yet :-)

> Over allocating swap space is a BAD practice, but the effects are usually not

How about dynamically allocating up to a certain limit.

Say, you have 256 MB or even less (to save space), and you allocate when 
needed up to 1 GB, then stop allocating, thrash disk, let the kernel 
detect and kill the runaway process.
-
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 13:03    [W:1.304 / U:0.750 seconds]
©2003-2008 Jasper Spaans