[iPAQ] jffs2 slow on little writes ?

From: wim delvaux <wim.delvaux_at_adaptiveplanet.com>
Date: Wed, 15 Jan 2003 11:13:24 +0100

Hi all,

Say that you have something like ...

SomeIO( char * File ) {
int fd, i
i = 0
fd = open( File );
while( i < 1000 ) {
                write( fd, &i, sizeof(i) );
        i ++;
}
}

SomeIO( "FileOnFlash" ) // is SLOW, which is expected
SomeIO("FIleOnRam") // is FAST, which is expected

/* BUT WHY is this MUCH faster than the SomeIO("FileOnFlash")
SomeIO("FileOnRam)
system( "cp FileOnRam FileOnFlash)"

Can anybody explain ?

W
Received on Wed Jan 15 2003 - 10:13:53 EST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 18:33:21 EDT