lkml.org 
[lkml]   [2001]   [Nov]   [22]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromChristian Bornträger <>
SubjectRe: Swap vs No Swap.
DateThu, 22 Nov 2001 10:50:45 +0100
> > Yeah, but when the disk starts swapping the system slows down to a halt.
> No, when the disk starts *THRASHING* the system slows down to a halt.
> If you are thrashing with swap you would be thrashing much worse without
> swap.

Not neccessarily. 
Your swap early swap often paradigma works fine...as long as the swap 
partition resides on an standalone harddisk without a data partition.

But imagine the situation that you have a higher band width streaming 
application - e.g. viewing a video file.  On the same hard disc there is a 
swap partition. Cache is getting bigger and bigger until kernel starts to 
swap.
Now the swapping algorithm writes on the harddisc. That troubles the  hard 
disc elevation mechanism, so  that higher bandwidth readings starve, due to 
head movements away from the data partitions towards the swap partition.

greetings

Christian Bornträger
-
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 12:13    [from the cache]
©2003-2008