2.4.0prerelease -- lack of IO error on bad swap IO

Tom Holroyd (tomh@po.crl.go.jp)
Thu, 11 Jan 2001 19:27:47 +0900 (JST)


I had a misconfigured swap partition: it went 480 blocks beyond the end of
the disk (last partition, SCSI, OSF/1 disklabels, Alpha). mkswap -c
reported bad pages, and the kernel said IO error in the log on the last
mumble blocks.

When this system started to swap, the processes would just go into the D
state, and then vmstat, ps, top, et al. would go D. Now, of course the
problem was that the swap partition was bigger than the physical media,
but there was no error message at all, just procs stuck in D.

Probably there should be an error message, or something.

Dr. Tom Holroyd
"I am, as I said, inspired by the biological phenomena in which
chemical forces are used in repetitious fashion to produce all
kinds of weird effects (one of which is the author)."
-- Richard Feynman, _There's Plenty of Room at the Bottom_

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