Re: why swap at all?

From: Nick Piggin
Date: Wed May 26 2004 - 06:21:25 EST


Matthias Schniedermeyer wrote:
On Wed, May 26, 2004 at 08:33:28PM +1000, Nick Piggin wrote:

Matthias Schniedermeyer wrote:


In my personal machine i have 3GB of RAM and i regularly create
DVD-ISO-Images (about 2 per day). After creating an image (reading up to
4,4GB and writing up to 4,4GB) the cache is 100% trashed(1). With swap
it would be even more trashed then it is without swap(1).


I don't disagree that you could find a situation where swap
is worse than no swap. I don't understand what you mean by
trashed and more trashed though :)


trashed means "everything i need(tm)" is paged out (mozilla/konsole/xine
...)

with swap the data-part of running programs was swapped out, without
swap only the program-part is thrown out of memory as the data-part
can't be moved anywhere else.

I have a 10KPRM SCSI-HDD, i can here what my system is doing. :-)


OK, this is obviously bad. Do you get this behaviour with 2.6.5
or 2.6.6? If so, can you strace the program while it is writing
an ISO? (just send 20 lines or so). Or tell me what program you
use to create them and how to create one?

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