On 4/4/06, johnd <john@xxxxxxxxx> wrote: > I recently did the same thing. I used g_ether to do my benchmarking > and ttcp. You can use sync to help with the caching issue > like this: > #mount /dev/mmc /mnt > dd if=/dev/zero of=/mnt/4MB_file count=4096 > #umount /dev/mmc > sync > > I put that in a script > > > > also you can use the open system call with O_SYNC > > like this: Thanks, I think I will use a similar method first, and then use usbfs as suggested earlier. > you can also try using rawdevice > http://www.linux.com/howtos/SCSI-2.4-HOWTO/rawdev.shtml > man raw(8) says this is deprecated and for non-cacheable file reads O_DIRECT must be used instead. Thanks, Bahadir -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/