From: Ricardo C. <sou...@wi...> - 2006-08-25 20:12:12
|
On Friday 25 August 2006 09:53, Miklos Szeredi wrote: > What you can do is to have multiple sessions and write a custom event > loop to handle N sessions per M threads, where N >. > do this is to multiplex events with a poll/select type event loop, and > then either start a new thread for each event (should be efficient > with NPTL) or pass the event to a thread from a pool. Alright, I'll give it a try. I'll probably start with the "new thread for each event" approach but I'll definitely switch to the "thread pool" approach later. By the way, I noticed in a previous mailing list post that there could be deadlocks in loop-mounting a file in a FUSE filesystem. This functionality could be very useful to simulate ZVols, which are basically block devices that are stored inside a ZFS pool (which in turn provides checksums, compression and RAID functionality transparently). So.. is this problem going to be fixed? Thanks. |