OK, the next oddity I discovered is a twenty second delay in fchdir on the SD card.
> Hi. Geez, what's the 20 second delay here on my tiny Openmoko all about? > > debian-gta02# strace -r /usr/sbin/wwwoffled > 0.005188 gettimeofday({1227232035, 621499}, NULL) = 0 > 0.004180 times({tms_utime=132, tms_stime=23, tms_cutime=0, > tms_cstime=0}) = -2147294751 > 20.693234 fchdir(6) = 0 > 0.004194 close(6) = 0 > 0.004025 open(".", O_RDONLY) = 6 > > Source says fchdir(fSpoolDir); That should be no big deal. AMB replies: I have no idea why that should be slow. Perhaps it is something to do with the filesystem that is used... I run WWWOFFLE on my iPAQ (running Familiar Linux) and I don't have 20 second pauses. This is on an external memory card with an ext2 filesystem. ...but I have used it enough to know that there isn't a 20 second delay. If there was then the number of WWWOFFLE children would quickly reach the limit and the images in the web pags wouldn't be displayed until some exited. I just verified that now by displaying a page and noting that there were several wwwoffled processes (for the images) but these had gone by the next time I ran 'ps'. I am using WWWOFFLE version 2.8d (purely because I haven't bothered compiling a new version) but it still uses fchdir(). I did some googling about fchdir() and didn't see anything to explain why it is so slow for you. The reason for using it in the first place is that it is so fast (it doesn't need to parse the whole pathname and traverse the filesystem). The only thing that I can suggest is that you recompile WWWOFFLE with the fchdir() replaced by chdir() like in the cygwin version. ---------------------------------------------------------------------- Andrew M. Bishop [EMAIL PROTECTED] http://www.gedanken.demon.co.uk/ WWWOFFLE users page: http://www.gedanken.demon.co.uk/wwwoffle/version-2.9/user.html _______________________________________________ Smartphones-userland mailing list Smartphones-userland@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland