[sugar] pygtk performance issue

Marco Pesenti Gritti mpg
Wed Sep 6 07:25:01 EDT 2006


Hi,

with the latest kernel  strace is working on the board, so I've been 
able to track down the issue with the very very slow pygtk startup.

For people not following the sugar list:
http://mailman.laptop.org/pipermail/sugar/2006-August/000244.html

A simple pygtk app is opening around 700 files on startup, a lot of 
these being ENOENT, and stat-ing another 200. A large part of the 
startup time seem to be due to this.

So I did some profiling of the 'open' performance, using the attached 
test case. I bet there is a better way, but I think the results are 
interesting. The test case opens 10000 files, the results are the following:

OLPC + USB hard disk : 6.5 seconds
My laptop: 0.73 seconds
My laptop + USB hard disk: 0.75 seconds

OLPC is 9 times slower.

My question is... can we expect this to be solved (or at least 
drastically reduced) in hardware or kernel space?

Thanks,
Marco


-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 248 bytes
Desc: not available
Url : http://mailman.laptop.org/pipermail/sugar/attachments/20060906/adb4f0be/test.py


More information about the Sugar-devel mailing list