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


import sys
import time
import random

t = time.time()

i = 0
while i < 10000:
	try:
		f = open('/media/OLPCRoot/bubu%d' % random.random(), 'r')
		f.close()
	except:
		pass
	i += 1

new_t = time.time()
print '10000 open: %f' % (new_t - t)
t = new_t
_______________________________________________
Sugar mailing list
[email protected]
http://mailman.laptop.org/mailman/listinfo/sugar

Reply via email to