Heavy Kaffe I/O at startup

Archie Cobbs archie at whistle.com
Thu Oct 15 16:52:42 PDT 1998


Victor Zandy writes:
>     Kaffe 1.0b2 generates a lot of very small reads when it starts on
> my platform, Sparc Solaris 2.5.1.  I have counted nearly 10K calls to
> read, most between 2 and 4 bytes, when Klasses.jar is read during
> startup.  Some sequences of 20 of these, maybe longer, are contiguous.
> 
>     Does anyone know what this happens?  Why not read the .jar all at
> once once?  Why not mmap it?  Why not at least read contiguous blocks
> in one read?

Yes, I've noticed this too, but haven't looked into it.

Probably what needs to happen is that somewhere a bunch of I/O
is being done via read(), write(), lseek(), etc. and it needs
to be done via fread(), fwrite(), fseek(), etc. instead.

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com


More information about the kaffe mailing list