#include <hallo.h> * Igor Belyi [Tue, Aug 23 2005, 09:15:10AM]: > Eduard Bloch wrote: > > >#include <hallo.h> > >* Eduard Bloch [Tue, Aug 23 2005, 12:22:04AM]: > > > > > >>Eh, did you test that with the _driver_? I am rewritting advfs right now > >>and stumbled over the same problem. > >> > Hm.. Since you rewritting advfs, I wonder if you will find useful my 2 > cents in a form of python scripts to create and extract cloop images: > ftp://katehok.ac93.org/pub/cloop-pyutils.tar.gz
Interesting. Looks nice, most things are done the same way I did with C++, and looking very clean. I was rewritting advfs primarily to make it multithreaded, since we have a Dual-Opteron cluster nearby so Klaus could compress his DVDs in 5 minutes using best compression rather than an hour (or a day for the best compression). The MT codes does already work and I have optimised it today for having less locks. Uhm, and I changed the processing a bit to work in a similar fashion you do in the script, however I dropped the write-to-stdout options because I doubt anyone seriosly like to use it. The only users of that way are either working with really small images or have lots of RAM plenty, in both cases a tmpfs can be used having the same effects. As said, your code looked nice and for a (long) moment I even though about continueing my work with Python based on your code but then I have read that Python does not work with kernel threads and basically does no benefit from SMP. Okay, that is not that bad, you can even work with one thread only and pass the jobs over network. IMO one could do multithreading with Python Queue objects for passing the jobs between the reader thread, worker threads and output thread. And the worker threads could submit the jobs (compression calls) via the xmlrpc objects to remote nodes. However, IMO it is a lot of overhead with xmlrpc which recodes everything with base64 (afaics looking at its specs) while transfering. OTOH it should be possible to write a simple TCP server that just sends the data with simple headers... but I am not skilled enough write all that in Python. Regards, Eduard. -- <Sahneschnitter> Aquariophile: welches debian/ welche xfree version? <Aquariophile> woody <Aquariophile> Xfree version 86 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]