home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / acorn / tech / 1127 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  2.5 KB

  1. Path: sparky!uunet!comp.vuw.ac.nz!waikato.ac.nz!aukuni.ac.nz!cs18.cs.aukuni.ac.nz!jwil1
  2. Newsgroups: comp.sys.acorn.tech
  3. Subject: Re: adfsbuffers
  4. Message-ID: <1992Dec22.212234.2185@cs.aukuni.ac.nz>
  5. From: jwil1@cs.aukuni.ac.nz (TMOTA)
  6. Date: Tue, 22 Dec 1992 21:22:34 GMT
  7. Sender: jwil1@cs.aukuni.ac.nz (TMOTA)
  8. References: <1992Dec18.113330@informatik.uni-kl.de><1992Dec20.011534.5366@cs.aukuni.ac.nz> <FL.92Dec21130356@pierre.tools.de>
  9. Organization: Computer Science Dept. University of Auckland
  10. Lines: 40
  11.  
  12. fl@tools.de (Frank Lancaster) writes:
  13.  
  14. >>   That is, I
  15. >>   get the impression that setting a large value for ADFSBuffers will NOT
  16. >>   have ANY effect on a SINGLE file, but using (e.g.) 256 buffers will allow
  17. >>   up to 256 files to be buffered simultaneously.
  18.  
  19. >Actually adfsbuffers does have a dramatic effect on reading
  20. >and writing a single file. Using my RISC OS tar for a large hard disc
  21. >backup with compression, I normally set adfsbuffers to 255. Then
  22. >writing to the disc happens in the background and the compression
  23. >of a file can begin before the preceeding file has been completely
  24. >written to disc. This also works under taskwindows, so you get
  25. >somewhat better preemptive multitasking.
  26.  
  27. ... you don't think, perhaps, that the significant improvement is due to
  28. the fact that you are reading multiple files and writing to 1? And
  29. that the more buffers you have, the more files can be buffered before
  30. buffers have to be flushed?
  31. Remember that read-buffers should make a difference if you're using a
  32. FS that supoprts read-ahead...
  33.  
  34. Perhaps ADFSBuffers IS able to use more than 1 "1kB buffer" on a single
  35. file (i.e. actually use a 256kB write buffer for a single file), but this
  36. is not aparrent from the help on the configure option...
  37.  
  38. (Also, I would think that tar would be slightly different anyway, as it's
  39. a C program, and if it uses stdio then it's likely that C would be
  40. providing buffers, in which case, I would assume you're using setvbuf()
  41. to allocate large I/O buffers in order to improve the throughput...)
  42.  
  43. Also, I have found with that sort of disc operation (reading, writing are
  44. interleaved a lot) that a slight increase in buffer size can be all that
  45. is needed to drop below the 'thrashing' threshold, and the amount of seeking
  46. necessary drops considerably, thus speeding up the process a lot.
  47. (With !CBAdecode, the difference between 4kB buffers and 16kB is amazing)
  48. -- 
  49. _________________  "I'd like to answer this question in two ways:
  50.   /____ _ _/_ __       First in my normal voice, and then
  51.  // / //_//_ /_/       in a silly, high-pitched whine." (Monty Python)
  52.