home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 3095 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.8 KB  |  61 lines

  1. Path: sparky!uunet!mcsun!sunic!chalmers.se!dtek.chalmers.se!dxper
  2. From: dxper@dtek.chalmers.se (Per Anders Olausson)
  3. Newsgroups: comp.unix.bsd
  4. Subject: 386bsd and I/O...sheduler bug?
  5. Message-ID: <13017@chalmers.se>
  6. Date: 29 Jul 92 11:53:55 GMT
  7. Sender: news@chalmers.se
  8. Organization: Chalmers University of Technology, Gothenburg Sweden
  9. Lines: 50
  10.  
  11.  
  12.   I have been suspecting all the time since V0.0 that there is something very
  13. strange relating to disk i/o in 386bsd. This is either a bug or feature of the
  14. BSD 4.3 sheduling algorithm. 
  15.  
  16.   Yesterday I therefore tried out the following simple program:
  17.  
  18. #include <stdio.h>
  19.  
  20. main()
  21. {
  22.     char    data[8192];
  23.     FILE    *f;
  24.     
  25.     f = fopen("Test2.file", "w+");
  26.     while(1)
  27.     {
  28.         fread(data, 1, 8192, f);
  29. v        rewind(f);
  30.         fwrite(data, 1, 8192, f);
  31.     }
  32. }
  33.  
  34. ===
  35.  
  36.   If I run this at normal priority the system will turn on the disk led and
  37. just grind to a halt. That is, it will not let any other process run as long
  38. as it is running.
  39.  
  40.   If I run it with a nice value of 20 the system will let me use the shell
  41. until I decide to do something and then it will hang. If you use the elbow
  42. technique you'll sporadicly get hold of the cpu but after a while it will hang
  43. to.
  44.  
  45.   So it appears as if processes doing I/O is somehow not accredited their usage
  46. of the CPU. If you check out the load average while doing make depend or
  47. something like that it seems a bit low too.
  48.  
  49.   Can anyone confirm if this has been fixed or does anyone have any clues as
  50. to where the fault lies?
  51.  
  52. pao
  53.  
  54.  
  55.  
  56. --
  57. -------------------------------Andrew Olausson--------------------------------
  58. --------------------------Unemployed Unix Specialist--------------------------
  59. ------------------------------pao@cd.chalmers.se------------------------------
  60. -------------------------------pa-ola@proxxi.se-------------------------------
  61.