Thread View: NET.v7bugs
1 messages
1 total messages
Started by utzoohenry
Thu, 28 May 1981 19:09
disksort read/write order
Author: utzoohenry
Date: Thu, 28 May 1981 19:09
Date: Thu, 28 May 1981 19:09
12 lines
823 bytes
823 bytes
In /usr/sys/dev/dsort.c, the general seek-sort routine used by hp.c et al, the code as distributed queues reads before writes. This is WRONG, the intent was to put writes before reads (I asked Dennis Ritchie at the San Francisco Usenix meeting). The result is that on a very busy system, it can take a looooong time for data to get out to disk, which is risky and can hurt performance. The fix is simple; in the two if's that check B_READ flags, "ap" should be changed to "bp" and vice-versa. This bug has been known for some time, but hasn't been seen on the net yet. It was discovered by Peter Hardie at University of Saskatchewan.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads