andy at openmoko.com
Wed Nov 26 23:40:11 CET 2008
-----BEGIN PGP SIGNED MESSAGE-----
Somebody in the thread at some point said:
| # hdparm -tT /dev/sdg
| Timing cached reads: 1286 MB in 2.00 seconds = 643.14 MB/sec
| Timing buffered disk reads: 26 MB in 3.13 seconds = 8.32 MB/sec
| where /dev/sdg is a USB cardreader reading a uSD card. Obviously,
| USB-2.0 is not able to provide 640MB/s so the cache is elsewhere.
I eyeballed the hdparm sources, the difference between these guys is
indeed meant to be the Linux block cache. In the cached read case it
keeps seeking to 0 and doing a big read, in the noncached "buffered"
case it keeps on reading new data and not seeking to zero.
Hdparm does also concern itself with the drive cache but not directly in
If /dev/mmcblk0* was mounted at this time, maybe confirm the mount
options used, eg, sync... I don't even know how to opt out of the buffer
cache if we wanted to :-/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the openmoko-kernel