JFFS3 & performance
xemc
xemcnet at gmail.com
Wed Dec 22 15:22:11 EST 2004
> engel32r added, newer test is:
...
I added the adler32r test mentioned in a later post.
Now, I tried this on my ARM-based machine. First, it crashed on me
(NULL pointer deref.). Then I commented out the line "memcmp(&mem[0],
'\0', MEM_CHUNKS * sizeof(char *));", and it worked.
Here's some of my results:
# insmod /lib/modules/2.6.8.1-oscar/kernel/lib/crc-ccitt.ko
# insmod /lib/modules/2.6.8.1-oscar/kernel/lib/libcrc32c.ko
# insmod ./crc_test.ko
[crctst] 16-bit CRC CCITT 32 bytes: ts1 0, ts2 0, delta 0
[crctst] 16-bit CRC CCITT 4096 bytes: ts1 0, ts2 0, delta 0
[crctst] 16-bit CRC CCITT 65536 bytes: ts1 0, ts2 0, delta 0
[crctst] crc32 32 bytes: ts1 0, ts2 0, delta 0
[crctst] crc32 4096 bytes: ts1 0, ts2 0, delta 0
...
Here's the get_cycles definition for arm: (include/asm-arm/timex.h)
static inline cycles_t get_cycles (void) {
return 0;
}
Well, _that_ helps. =]
Mike
More information about the linux-mtd
mailing list