Re: /tmp in swap space

Benny Amorsen (amorsen@sscnet.com)
27 May 1998 17:11:26 +0200


>>>>> "JL" == Jamie Lokier <lkd@tantalophile.demon.co.uk> writes:

JL> The first time, I forgot `count=1'. After 2 minutes of disk
JL> activity, I hit control-C, thinking the 27000k must be written by
JL> now. Then I looked at the file and was momentarily surprised to
JL> see a file about 720000000 bytes long... (720 meg folks). Gee,
JL> this thing is faster than I thought. (2.1.96 on a K6/233 w/Quantum
JL> Fireball ST 6.4MB disk, DMA _turned off_ because it causes
JL> occasional system freezes (still investigating...). I'd expect
JL> approx. twice the data throughput with DMA on, certainly that is
JL> the case for reading).

You are making a file containing just zeroes, and ext2fs is making a
sparse file for you. A sparse file can be written at close to main
memory speed, I would guess. There should not be much disk activity.
Try /dev/urandom next time...

Benny

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu