Article View: comp.sys.sgi.bugs
Article #28Fix for 4.0.1 / 8M RAM slow disk writes
From: R. Lamberts
Date: Thu, 24 Dec 1992 01:34
Date: Thu, 24 Dec 1992 01:34
32 lines
1461 bytes
1461 bytes
OK guys, don't laugh. I still have 8 meg and IRIX 4.0.1,
and was getting sick of the slow disk write bug. If you
are in the same situation (8 meg / 4.0.1), this crazy
fix may be of interest to you.
It appears that doing a file system sync 20 times a second
increases disk write speed enormously, without giving too
much overhead. So compile something like this:
main()
{
do
{
sync();
sginap(5);
}
while (1);
}
(Please don't whine about this not being the best example
of software engineering. ;-)
If you use applications that write to disk at very high
rates, you may try to decrease the sginap argument, but
that results in a noticeable system load. Most tools
run at maximum write speed with the code shown above.
Run this thingy in the background and you'll actually start
enjoying large cp or file un-tar actions...
- Reinoud
Technical Details
Message-ID:
<1992Dec24.013446.26848@donau.et.tudelft.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!donau!dutecai!reinoudShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.sgi.bugs Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!dutrun!donau!dutecai!reinoud From: reinoud@dutecai.et.tudelft.nl (R. Lamberts) Subject: Fix for 4.0.1 / 8M RAM slow disk writes Message-ID: <1992Dec24.013446.26848@donau.et.tudelft.nl> Originator: reinoud@dutecai.et.tudelft.nl Sender: news@donau.et.tudelft.nl (UseNet News System) Nntp-Posting-Host: dutecai.et.tudelft.nl Reply-To: reinoud@dutecai.et.tudelft.nl (R. Lamberts) Organization: Delft University of Technology, Dept. of Electrical Engineering Date: Thu, 24 Dec 1992 01:34:46 GMT Lines: 34