* about memory bandwidth
@ 2000-04-07 10:37 zzh
2000-04-07 12:09 ` Gabriel Paubert
0 siblings, 1 reply; 2+ messages in thread
From: zzh @ 2000-04-07 10:37 UTC (permalink / raw)
To: linuxppc-embedded
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 744 bytes --]
Hi,How to measure the 60x bus bandwidth.I write a program to write
to sdram in a tight loop,every iteration ,i write 8 words,
it takes about 36 seconds to finish 32M iterations with i-cache
enabled and d-cache disenabled.With d-cache enabled and flushing
cache in every iteration,it takes about 16 seconds.This is below
what i speculated.What is the possible reason?I program the sdram
machine to enable burst mode. 4/7/2000
_____________________________________________
263Ê×¶¼ÔÚÏß--ÖйúÈ˵ÄÍøÉϼÒÔ° http://www.263.net
¾«²Ê¡¢Ãâ·Ñ¡¢»¹ÄÜÊ¡ÉÏÍø·Ñ£¬¿ì¶©ÔÄË÷Ò×µç×Ó¿¯Îhttp://www.soim.com
»ý£¨ÓÅ£©µã£¬»»£¨½±£©Æ·£¡http://www.thepoints.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: about memory bandwidth
2000-04-07 10:37 about memory bandwidth zzh
@ 2000-04-07 12:09 ` Gabriel Paubert
0 siblings, 0 replies; 2+ messages in thread
From: Gabriel Paubert @ 2000-04-07 12:09 UTC (permalink / raw)
To: zzh; +Cc: linuxppc-embedded
On Fri, 7 Apr 2000, zzh wrote:
>
>
> Hi,How to measure the 60x bus bandwidth.I write a program to write
> to sdram in a tight loop,every iteration ,i write 8 words,
> it takes about 36 seconds to finish 32M iterations with i-cache
> enabled and d-cache disenabled.With d-cache enabled and flushing
> cache in every iteration,it takes about 16 seconds.This is below
> what i speculated.What is the possible reason?I program the sdram
> machine to enable burst mode. 4/7/2000
This is very dependant on the processor and on the exact instructions you
use. If you flush the cache (dcbf), then before the next write can proceed
the processor has to reload a whole cache line.
Which means that you have at least 2 bus cycles per iteration: the one
from the flush and another one to read again. Plus the fact that you might
need a sync which may also go the bus.
What do you want to measure exatcly ?
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-04-07 12:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-07 10:37 about memory bandwidth zzh
2000-04-07 12:09 ` Gabriel Paubert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).