home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 3258 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  2.7 KB

  1. Xref: sparky comp.unix.bsd:3258 comp.os.linux:7095 comp.periphs.scsi:3828
  2. Newsgroups: comp.unix.bsd,comp.os.linux,comp.periphs.scsi
  3. Path: sparky!uunet!mcsun!sun4nl!relay.philips.nl!philica!adrie
  4. From: adrie@ica.philips.nl (Adrie Koolen)
  5. Subject: Re: Query: Drivers for AHA >1522< ?
  6. Message-ID: <1992Jul31.064243.983@ica.philips.nl>
  7. Organization: Philips Consumer Electronics, Eindhoven, The Netherlands
  8. References: <14hjqoINNr78@agate.berkeley.edu> <1992Jul23.232138.20172@colorado.edu> <1992Jul29.204834.20882@adaptx1.UUCP>
  9. Date: Fri, 31 Jul 1992 06:42:43 GMT
  10. Lines: 40
  11.  
  12. In article <1992Jul29.204834.20882@adaptx1.UUCP> neese@adaptx1.UUCP (Roy Neese) writes:
  13. >In article <1992Jul23.232138.20172@colorado.edu> drew@ophelia.cs.colorado.edu (Drew Eckhardt) writes:
  14. >> If you're talking about sustained transfer rate, it's going to be 
  15. >> faster to do polled I/O because you don't have the couple of clock
  16. >> cycles associated with each bus on period - you just crank data 
  17. >> across the AT bus topspeed, 16 bits at a time.
  18. >
  19. >Nope.  Polled I/O can never be faster than bus master DMA as it takes
  20. >twicw as many cycles to move each word doing polled I/O as it does for a
  21. >bus master to move the same word.
  22. >The overhead you speak of is for acquiring the bus, wchi takes 2 cycles
  23. >and then of course it takes another 2 cylces to release the bus.  But to
  24. >show a more subjective view.  Let's make some assumptions, good
  25. >assumptions.  Let's say 1 cycle per word for bus master DMA and 2 cycles
  26. >per word for polled I/O (you have to do a read and write for polled I/O,
  27. >whereas bus masters do either a read or a write).  Now let's move 512
  28. >bytes of data.  Let's see,... for polled that would be 1024 cycles and
  29. >for a bus master 512 + 2 + 2 = 516.  Nuff' said.
  30.  
  31. Unless I misunderstand the conditions of your example transfer, I have to
  32. disagree.
  33.  
  34. I assume that you mean "AT-bus cycle" when you talk about cycles. Clearly,
  35. you can't transfer one word over the AT-bus in only one cycle. I was under
  36. the impression that it takes some 6 or 8 cycles.
  37.  
  38. That would seem to be a bigger advantage for bus mastering controllers, but
  39. you're wrong in the assumption that the write into (or read from) memory
  40. is done over the AT-bus. Normally, this is done over the local CPU bus
  41. (33 MHz?), which is much faster than the AT-bus (8 MHz?).
  42.  
  43. Furthermore, it would be unwise to take the AT-bus for 512 cycles. Under
  44. normal 1542b operation, the bus freed after some 7 cycles, so the overhead
  45. of getting and releasing the bus is bigger.
  46.  
  47. I agree that bus mastering I/O is faster than polled I/O over the AT-bus,
  48. but not with the factor you indicate.
  49.  
  50. Adrie Koolen (adrie@ica.philips.nl)
  51. Philips Consumer Electronics, Eindhoven, the Netherlands
  52.