lkml.org 
[lkml]   [2001]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Swap vs No Swap.
Date
> > 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 13:13    [W:0.161 / U:6.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site