Sandro Tosi: Having fun fixing a bug (with ParallelPython)
Lenny general freeze is approaching, so I'm walking thru my packages bugs and I found this one reported against fdupes.
I got 4Gb of memory, so how to reproduce an OoM? Let's start with a rather large file base, but I need a script to generate it. With 4 cores and a fast Raptor hd, I want something to stess them while learning something: Python + ParallelPython was the answer!
I wrote a small script that takes 3 parameters: the destination directory, the number of dirs to create and the number of files (with random contents) to created inside each of the created dirs. I ran it with 1000 dirs and 1000 files, so it generated 1M files set to work on.
But even with so many files, fdupes ran fine... At that point I realized that ulimit could be my friend, and the "-v" option would have saved me some time, but without the fun to write the script :)
If you don't know pp, here is a little explanation of the main part of the script (I forgot to comment the script well enough):
I got 4Gb of memory, so how to reproduce an OoM? Let's start with a rather large file base, but I need a script to generate it. With 4 cores and a fast Raptor hd, I want something to stess them while learning something: Python + ParallelPython was the answer!
I wrote a small script that takes 3 parameters: the destination directory, the number of dirs to create and the number of files (with random contents) to created inside each of the created dirs. I ran it with 1000 dirs and 1000 files, so it generated 1M files set to work on.
But even with so many files, fdupes ran fine... At that point I realized that ulimit could be my friend, and the "-v" option would have saved me some time, but without the fun to write the script :)
If you don't know pp, here is a little explanation of the main part of the script (I forgot to comment the script well enough):
- job_server = pp.Server() is the pp job server: with no parameter, it allocates execution slots for the number of cores/CPUs on your system (you can force more/less)
- jobs.append(job_server.submit(gen_dir_set, (dirname+'/'+str(i),fileno), (), ('random',))) appends to jobs list the function returned by job_server.submit: this command takes the function to execute, the parameters tuple, the functions called by the first one (here empty) and the tuple of needed modules for the called function (here random).
- for job in jobs: job() execute each item in jobs: they are functions that return the results for every jobs (here they are discarded, but you could aggregate them to obtain the final result)
- job_server.print_stats() prints some stats about jobs executions (I love stats :D )

After many years with ion, I've switched to using the
A. Because if it flew over the bay it would be a bagel.
I Spent a few days in
Recently, I've been doing a lot of thinking -- and a bit of talking --
about what software freedom means in the context of network services. I
gave a talk on this subject at the most recent
Yesterday I was forced to test my backup system in anger, on a large scale, for the first time in months.
A broken package upgrade meant that my
Autobuilder Summary:
balloon3 in CUED case
It’s been on the TODO list for ages now, and Soeren finally tackled it: compositing support for gpomme.
This is the only change in this release. Please report any issue with gpomme and compositing, as this code has only been tested on a limited number of configurations.
For people not running a compositing manager (like myself), don’t worry, gpomme works just as before.
FFS. If you're running a forum site (
While all of Belgium is buzzing over the fact that now the
(occasionally, the poem is one of the better-known poems by
expressionist poet Paul van Ostaijen, my favourite in the Dutch
language)
This is a
After having it for about two days, I must say I'm quite happy with
it. Reading text on this device is way, way more comfortable
than trying to read anything on my laptop, or something similar. Having
said that, there are a few quirks with it, which I hope future
firmware-updates will fix:
I finally got back from Switzerland. Google invited all the Summer of Code students to visit their offices. I chose to go to the Zurich one. It wasn’t the closest (London was) but it was the largest and it had more engineers than MBAs.

So first the bad news is that I'm not coming to DebConf this year. There are a few reasons for this. It's fairly far and expensive. I thought the lineup of talks was pretty similar to the last two years. And perhaps most fundamentally, I don't want to go somewhere cold (well, cool) in the summertime. I think this may be a Canadian thing, but I love summer time and I don't want to squander any of my warm days. So have a good time folks, I'll miss you and I'm certainly going to make the effort to be there next year. And lets hope DebConf 10 is in Montr al :)
Sometimes one stumbles upon interesting pictures. It happens too regularly in recent times and I don't think that it will end too soon. This 