linux-mips
[Top] [All Lists]

Re: Issue with core dump

To: Oleg Nesterov <oleg@redhat.com>
Subject: Re: Issue with core dump
From: Tejun Heo <htejun@gmail.com>
Date: Tue, 1 Nov 2011 08:59:45 -0700
Cc: trisha yad <trisha1march@gmail.com>, linux-mm <linux-mm@kvack.org>, Russell King - ARM Linux <linux@arm.linux.org.uk>, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, kamezawa.hiroyu@jp.fujitsu.com, mhocko@suse.cz, rientjes@google.com, Andrew Morton <akpm@linux-foundation.org>, Konstantin Khlebnikov <khlebnikov@openvz.org>, KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>, "Rafael J. Wysocki" <rjw@sisk.pl>, Rusty Russell <rusty@rustcorp.com.au>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=niMISTMFnh5R4oEAU5DX47GEf+r8XSa/lL3yalhTxtQ=; b=u0Ly0DQZohCzoFNid1UHfHcjYoP9R1dfKTyac4Ud0BuSCfRk66nH1H1LSYppTgEd05 UObGiXrYO9+f8FK9Xk7NCYtVhOP20ddBWaeIbKOQZ+/Z5Cpxd2Vi4eUDLJ0pknc84cAu hG+8IbZTeldOB4p4HDfglxGmm1ILgUhNSvZm0=
In-reply-to: <20111101152320.GA30466@redhat.com>
References: <CAGr+u+zkPiZpGefstcbJv_cj929icWKXbqFy1uR22Hns1hzFeQ@mail.gmail.com> <20111101152320.GA30466@redhat.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.20 (2009-06-14)
Hello,

On Tue, Nov 01, 2011 at 04:23:20PM +0100, Oleg Nesterov wrote:
> Whatever we do, we can't "stop" other threads at the time when
> thread 'a' traps. All we can do is to try to shrink the window.

Yeah, "at the time" can't even be defined preciesly.  Order of
operation isn't clearly defined in absence of synchronization
constructs.  In the described example, there's unspecified amount of
time (or cycles rather) between the load of the global variable and
the thread faulting.  Anything could have happened inbetween no matter
how immediate core dump was.

As long as we're reasonably immediate, which I think we already are, I
don't think there's much which needs to be changed.

Thanks.

-- 
tejun

<Prev in Thread] Current Thread [Next in Thread>