home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / sgi / bugs / 41 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.4 KB  |  48 lines

  1. Newsgroups: comp.sys.sgi.bugs
  2. Path: sparky!uunet!mcsun!sun4nl!dutrun!donau!dutecai!reinoud
  3. From: reinoud@dutecai.et.tudelft.nl (R. Lamberts)
  4. Subject: Fix for 4.0.1 / 8M RAM slow disk writes
  5. Message-ID: <1992Dec24.013446.26848@donau.et.tudelft.nl>
  6. Originator: reinoud@dutecai.et.tudelft.nl
  7. Sender: news@donau.et.tudelft.nl (UseNet News System)
  8. Nntp-Posting-Host: dutecai.et.tudelft.nl
  9. Reply-To: reinoud@dutecai.et.tudelft.nl (R. Lamberts)
  10. Organization: Delft University of Technology, Dept. of Electrical Engineering
  11. Date: Thu, 24 Dec 1992 01:34:46 GMT
  12. Lines: 34
  13.  
  14.  
  15. OK guys, don't laugh. I still have 8 meg and IRIX 4.0.1,
  16. and was getting sick of the slow disk write bug. If you
  17. are in the same situation (8 meg / 4.0.1), this crazy
  18. fix may be of interest to you.
  19.  
  20. It appears that doing a file system sync 20 times a second
  21. increases disk write speed enormously, without giving too
  22. much overhead. So compile something like this:
  23.  
  24. main()
  25. {
  26.   do
  27.   {
  28.     sync();
  29.     sginap(5);
  30.   }
  31.   while (1);
  32. }
  33.  
  34. (Please don't whine about this not being the best example
  35. of software engineering. ;-)
  36.  
  37. If you use applications that write to disk at very high
  38. rates, you may try to decrease the sginap argument, but
  39. that results in a noticeable system load. Most tools
  40. run at maximum write speed with the code shown above.
  41.  
  42. Run this thingy in the background and you'll actually start
  43. enjoying large cp or file un-tar actions...
  44.  
  45. - Reinoud
  46.  
  47.  
  48.