Messages in this thread | | | Subject | Re: Anyone working on multi-threaded core files for 2.4 ? | Date | Fri, 29 Sep 2000 13:26:28 +0100 | From | James Cownie <> |
| |
> The synchronization on dump between the processes sharing a VM is quite nasty > actually. There were patches for it in the past, but they usually got that > wrong. Linux has no way currently to stop them atomically.
How atomic does it need to be, though ?
In a uni-processor there shouldn't be a problem, since if this thread is running none of the others can be.
In an SMP then the only thing that can be expected is that the registers for threads which were executing on a different processor at the time that a thread dumped show those executing threads as being in a place which they can reach given the interactions between the threads. (I.e. that causality is maintained.)
It's like relativity, you can't ask about simultaneity, only causality.
I was thinking that a scheme in which the core-dumping thread hit all the others with a SIGSTOP and then (somehow...) waited for them all to stop before writing the core file would suffice. (Of course, I may be wrong !)
-- Jim
James Cownie <jcownie@etnus.com> Etnus, LLC. +44 117 9071438 http://www.etnus.com
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
| |