lkml.org 
[lkml]   [2000]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Anyone working on multi-threaded core files for 2.4 ?
Date
From

> 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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.076 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site