QUOTE(spoon @ Jun 25 2006, 23:21)

What method does it use to find the cache?
I have tested several methods to determine the cache size but the one
which seemed to work best was to detect when the first sectors of a
burst are cached out by new reads. Some modern drives have optimized
cache reloading strategies, which make it difficult to precisely measure
the cache size, but this method allows to avoid this problem.
Here's an example :
>cachex -i -d -c -n 3 d:
CacheExplorer 0.7 - spath@cdfreaks.com
Drive on D is PLEXTOR CD-R PX-W2410A1.04
[+] Buffer size: 4096 kB, read cache is enabled
[+] Supported read commands: BEh D8h
[+] Testing cache line size:
info: using command BEh
info: 3 test(s), c/nc ratio : 4, bursts of 1 sector(s)
1169 kB / 509 sectors (138.74 .. 1.28 -> 34.42)
1169 kB / 509 sectors (138.87 .. 1.26 -> 34.44)
1169 kB / 509 sectors (138.92 .. 1.34 -> 34.43)
Initial read (where cache is filled) takes about 138 ms,
subsequent reads of the same sector take about 1.3 ms
since they come from the cache. In the meanwhile we
keep reading sectors further and further, until we force
a cache reloading. Then, reading the initial sector takes
about 34 ms.