multicore and crash

Joongyu Sun joongyu.sun at gmail.com
Tue Feb 15 00:07:51 EST 2011


Hi, Naveen

2011/2/15 naveen yadav <yad.naveen at gmail.com>

> Hi All,
>
> I need small clarification for multicore linux kernel
>
> Case;1
> Kernel space:
>
> 1. If on two CPU's both running in kernel space and both crash at same
> time t. what will happen will we get two crash dumps of registers or
> single ?
>


> - when kernel dies in SMP environment, it needs to aquire
> spin_lock(die_lock) to enter die().
>      So the first one which get the lock earlier will handle die() first.
> If the kernel is still alive then
>      the later one will enter die().
>      If kernel is in panic, it shutdown the other cpus and halt the system.
> So no one can do further jobs.
>
>

> Case :2
>
> User Space:
>
> 1. If on two CPU's both running in User space and both crash at same
> time t. what will happen will we get two core files, Single core with
> dump for both ?
>
> Thanks
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110215/67206291/attachment.html 


More information about the Kernelnewbies mailing list