[Top] [All Lists]

Re: Issue with core dump

To: trisha yad <>
Subject: Re: Issue with core dump
From: Tejun Heo <>
Date: Wed, 2 Nov 2011 08:31:46 -0700
Cc: Oleg Nesterov <>, linux-mm <>, Russell King - ARM Linux <>,,,,,, Andrew Morton <>, Konstantin Khlebnikov <>, KOSAKI Motohiro <>, "Rafael J. Wysocki" <>, Rusty Russell <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=86zeSHoh7AYAtjTp13VwjcUHO3MnBAPC2DVSodsMfwc=; b=gDJF/kmXHE93pXmRrxlOXEtum8xz7w+0O+hQCmo/FB9Rz8b87Lr1c8aJ7LWACgmbRE QXZhhAPspKwIYERhcruweHt22VQ4E695K01jEIKadKAHtyD6nfaret0MQNAm1KeMxFc4 VhGFjU5VGDetySHjxnJ8l9yNGdgKRkVapnfvA=
In-reply-to: <>
References: <> <> <>
User-agent: Mutt/1.5.20 (2009-06-14)

On Wed, Nov 02, 2011 at 12:03:39PM +0530, trisha yad wrote:
> In loaded embedded system the time at with code hit do_user_fault()
> and core_dump_wait() is bit
> high, I check on my  system it took 2.7 sec. so it is very much
> possible that core dump is not correct.

This may sound like arguing over semantics but it doesn't matter how
long it takes, it's still correct.  You're arguing that it's not
immediate enough.  IOW, no matter how fast you make it, you cannot
guarantee that results from slow operation wouldn't appear.

Also, the time between do_user_fault() and actual core dumping isn't
the important factor here.  do_user_fault() directly triggers delivery
of SIGSEGV (or BUS) and signal delivery will immediately deliver
SIGKILL to all other threads in the process, so it should be immediate
enough, or, rather, we don't have any way to make it any more
immediate.  It's basically direct call + IPI (if some threads are
running on other cpus).

Are you actually seeing artifacts from delayed core dump?  Given the
code path, I'm highly skeptical that would be the actual case.  If
you're using shared memory between different processes, then that
delay would matter but for such cases there's nothing much to do.



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