home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / ibm / pc / hardware / 22462 < prev    next >
Encoding:
Internet Message Format  |  1992-08-23  |  1.6 KB

  1. Path: sparky!uunet!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!dkuug!diku!terra
  2. From: terra@diku.dk (Morten Welinder)
  3. Newsgroups: comp.sys.ibm.pc.hardware
  4. Subject: Re: What speed rep/movs on a 486?
  5. Message-ID: <1992Aug23.115654.3988@odin.diku.dk>
  6. Date: 23 Aug 92 11:56:54 GMT
  7. References: <eyal.714307145@ise>
  8. Sender: terra@ran.diku.dk
  9. Organization: Department of Computer Science, U of Copenhagen
  10. Lines: 28
  11.  
  12. eyal@echo.canberra.edu.au (Eyal Lebedinsky) writes:
  13.  
  14. >Hello Everyone,
  15.  
  16. >I am eveluating a 486/50 for myself. I have a program that measures the
  17. >time to rep/mov a 20KB block as bytes, words or Dwords. On my 386 the
  18. >measured time is accurate. I get 2.000ms which translates to 4 cycles
  19. >per item (this is a 386/40). Moving words/Dwords kepps the item rate so
  20. >the total time drops to 1.000 then 0.500.
  21.  
  22. >The same program on a 486/50 produces strange results. First, the best
  23. >that I get for rep/movsb is 2.000ms for 20KB which is 5 cycles/item. The
  24. >spec says it should take 3 cycles/item. Moving words/dwords gets a worse
  25. >per-item result of up to 7 cycles/item. The result is not regulat enough
  26. >to suggest a fixed wait state. With 8 megs installed there should be
  27. >enough interleave to allow burst move, but it does not. Is the cache
  28. >getting in the way? the 256KB cache should latch the whole 20KB block
  29. >and work at full speed?
  30.  
  31. 1) Just a reminder: When you move Dwords they must be aligned 0 mod 4.
  32.    This is the same for a 386 but not a 386sx where aligment can be
  33.    2 mod 4 also.
  34.  
  35. 2) Rep Movs? were not optimized in the design of the 486. An aligned loop
  36.    (0 mod 16) might perform better.
  37.  
  38. Morten Welinder
  39. terra@diku.dk
  40.