Thu, 15 Feb 2007

break

So my Thanksgiving break was far from a break. I spent a couple of days last week at Red Hat's westford office before heading back up to RIT to start a new quarter. In my two days in the office I was able to touch base with a bunch of people, and get a bunch of stuff done as well. I had a long discussion with dmalcom about integrating the Fedora Updates System with Beaker/TableCloth. He also gave me a quick rundown on a bunch of the Red Hat QA infrastructure that is currently being used. Ideally we'd like to be able to crunch all package updates through an automated test system before pushing them out to the world. Involvement needed: FedoraTesting.

Later that day I met with jrb and jkeating about getting a package updating system in place for a new Red Hat product that is going out the door very soon. This means that much work will be going into the new UpdatesSystem in the near future, which means I get to dig deeper into the world of TurboGears :)

On thursday I cranked a bunch of code out, but was fairly distracted most of the time by the OLPC laptops that were lying around the office. I must say, it is an absolutely incredible machine. The screen is gorgeous, and it's camera is very impressive. I hung around later at the office for an OLPC hackfest that was going down.

I was busy working on the updates system most of the time, but then later on I started looking into some Python start-up issues, which can be seen by doing:

	strace python 2>&1 | grep ENOENT
You'll notice a ton of syscalls like the following, which try to open/stat modules in locations that do not exist:
stat64("/usr/lib/python24.zip/posixpath", 0xbfdb5094) = -1 ENOENT (No such file or directory)
PrivoxyWindowOpen("/usr/lib/python24.zip/posixpath.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
PrivoxyWindowOpen("/usr/lib/python24.zip/posixpathmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
PrivoxyWindowOpen("/usr/lib/python24.zip/posixpath.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
PrivoxyWindowOpen("/usr/lib/python24.zip/posixpath.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (N o such file or directory)
stat64("/usr/lib/python2.4/posixpath", 0xbfdb5094) = -1 ENOENT (No such file or directory)
PrivoxyWindowOpen("/usr/lib/python2.4/posixpath.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No su ch file or directory)
PrivoxyWindowOpen("/usr/lib/python2.4/posixpathmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
PrivoxyWindowOpen("/usr/lib/python2.4/posixpath.py", O_RDONLY|O_LARGEFILE) = 5 

So it's obvious that modules could exist in multiple locations, but if you are repeatedly going to check a series of directories, such as /usr/lib/python24.zip, wouldn't it be a *bit* smarter to check if they exists first, and then avoid checking there in the future? Doing so would help cut down from the 233+ syscalls python makes while starting up looking for modules. I really don't have any free cycles to try and add some sense into Python, so I really hope someone can beat me to a patch.


TurboGears 1.0b2


I came back home to find the new TurboGears book in my mailbox, which has been extremely informative, aside from the fact that the project has awesome online docs as well. I pushed out the latest TurboGears release, 1.0b2, for FC6 and rawhide yesterday as well.


posted at: 03:12 | link | Tags: , , , , | 8 comments

Posted by Colonel at Mon Jun 13 17:12:31 2011

ThatÂ’s relaly shrewd! Good to see the logic set out so well.

Posted by 76Ebony at Sun Aug 13 15:46:10 2017

Hi blogger, i must say you have hi quality articles here.

Your page can go viral. You need initial traffic
only. How to get it? Search for: Mertiso's tips go viral

Posted by RebbecaJuicy at Wed Jun 20 09:15:18 2018

I often visit your blog and have noticed that you don't update it often.
More frequent updates will give your blog higher authority
& rank in google. I know that writing posts takes
a lot of time, but you can always help yourself with
miftolo's tools which will shorten the time of creating an article
to a few seconds.

Posted by dvd brennen freeware  bei Nowload.de at Tue Jun 26 13:58:44 2018

Interessante Website. Das Design und die nuetzlichen Informationen gefallen mir besonders gut.

Posted by wtfuck303 at Wed Aug 15 18:00:41 2018

What's up to all, the contents present at this web
site are genuinely awesome for people experience, well,
keep up the nice work fellows.

Posted by elena_ermie at Tue Oct 16 20:30:49 2018

Thanks in support of sharing such a good idea, paragraph is pleasant, thats why i
have read it completely

Posted by bitcoin casino at Thu Nov 29 18:12:44 2018

http://lewk.org is amazing site, bookmarked!

Posted by https://www.youtube.com/watch?v=Wxc80rF0BTU at Sat Dec 1 08:56:49 2018

lewk.org is my top 1 site now !


Name:


E-mail:


URL:


Comment: