Article View: net.bugs.v7
Article #87v7 swapping bug
From: utzoodecvaxdukedfh
Date: Tue, 27 Jul 1982 09:20
Date: Tue, 27 Jul 1982 09:20
31 lines
1602 bytes
1602 bytes
I run a v7 system on a 11/23 with one RL drive. ( No, this is not a
crank article). Recently, I implememented a second drive, and decided
that swapping should occur on the second drive in order to improve
performance somewhat. I made the appropriate changes to c.c:
1) I changed 'int swapdev = makedev(0,0)' to
'int swapdev = makedev(0,1)'
2) I altered 'swaplo' and 'nswap' to appropriate, inconflicting
values.
Upon booting this new kernal, the profoundly cryptic message '@U: is
not an identifier' was printed, and the single-user shell did not form.
Instead, it seemed to enter multi-user mode, since it prompted ';login:'.
I tried logging in, but I received the same error message that was
printed when the single-user shell was forming, and then was prompted
for my login again.
The problem was that swapdev was not being opened. The fix is in
/sys/sys/sys/main.c in iinit(). After the line:
(*bdevsw[major(rootdev)].d_open)(rootdev, 1);
place the line:
(*bdevsw[major(swapdev)].d_open)(swapdev, 1);
Credit goes to Tom Truscott of Duke University for identifing the
problem immediately. This bug seems to be one that has been carried
over from v6.
David Hinnant
N. C. Educational Computing Service
(919) 549-0671
ucbvax!decvax!duke!dfh
Technical Details
Message-ID:
<bnews.duke.2353>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
From: utzoo!decvax!duke!dfh Newsgroups: net.bugs.v7 Title: v7 swapping bug Article-I.D.: duke.2353 Posted: Tue Jul 27 09:20:34 1982 Received: Sat Jul 31 07:54:45 1982 Subject: v7 swapping bug Date: Tue, 27 Jul 1982 09:20:34 +0000 Message-ID: <bnews.duke.2353>