[Joeq-devel] NPTL & Checkpointing joeq
Status: Alpha
Brought to you by:
joewhaley
From: Alan R. <ala...@gm...> - 2008-08-01 22:36:01
|
Hi, I've 'solved' the threading problem to an extent, when it's more robust I'll send it on for approval. I finally ended up using SIGUSR 1 & 2 to co-ordinate suspending/resuming amongst threads. I am now trying to write a checkpointer for joeq. I am thinking along the lines of saving the heap/code areas created by the *allocators and also the stacks and registers of the lightweight threads. Skirting the finer details: on a restart I would re-map the heap, code, stacks and registers and call switchThread on jq_native. When I start to think about how to implement this my head hurts and I can't see the forest for the trees; addresses, offsets and paging are confounding me. How should I approach saving the vm-state so that it can be re-used? Is an approach similar to the bootstrapping phase possibble? Sorry if this a trivial question, it all seemed straightforward in the operating systems books ... Thanks, Alan Department of Information Technology National University of Ireland, Galway IRELAND. |