1822203 Members
3745 Online
109640 Solutions
New Discussion юеВ

Re: Panic

 
SOLVED
Go to solution
Isaac_4
Frequent Advisor

Panic

Hi:

I get a messages in /etc/shutdownlog

20:14 Sat Jun 11 2005. Reboot after panic: Spinlock deadlock!

Some one know, about that?

Than You !!!!
The time is gold
5 REPLIES 5
Mel Burslan
Honored Contributor
Solution

Re: Panic

I remember this one from a long time ago. This panic is observed on the multi cpu machines. Spinlock is a requirement when OS activities are spread out over multi processors. Some tasks require all kernel activity on all processors to be suspended until this particular task gets completed on the first processor (a.k.a. Monarch). This spinlock is required because the task running has impact on other running kernel processes. Without spinlock, you may end up with an out of sync kernel operation, which may be equally fatal.

As you can see, if the spinlock does not get released, the system will hang waiting for this task to complete without letting anything else to run. Hence there is some sort of timer, somewhere, set to wait for the spinlock even to end in a given period of time. If it soe not, this panic happens and the system crashes.

It was suggested by HP at the time that crash dump to be sent to HP for analysis of the case to determine what caused the spinlock deadlock and subsequently the panic, exactly.

You will see tons of patches in the patch database talking about spinlocks. My advice to you will be, to apply the latest and greatest QPK patch bundle that you can get your hands on to as well as the hardware enablement patches as a start.

Hope this helps and good luck... needless to say I do not envy you right now.

________________________________
UNIX because I majored in cryptology...
D Block 2
Respected Contributor

Re: Panic

the good old "spinlock deadlock"..

think of four cpu's on you system..

one cpu is the boss, yea, he gives the orders for the other children cpus. call him the master cpu.

if the master cpu is too-busy to give order to the other children-cpus, then nothing can get done..

if the master or monarch-cpu is Spinning, then all work assignments STOP!

so, you just might have an issue with your hardware.. maybe one of your CPU processors is going bad..

if you on the other hand, are JAVA process intensive, then this could be a reason for the SPINing of the CPUs.. JAVA tends to SPIN the CPU's waiting for an EVENT or CONDITION to wake-up..

call HP support, you need some patches on your box, or you need some new CPU (or if a superdome, you need a new CELL board.).

best of luck,
Tom
Golf is a Good Walk Spoiled, Mark Twain.
vinod_25
Valued Contributor

Re: Panic

Hi Isaac

In a multiprocessor system, spinlocks are used to protect a critical code path
or critical data structures from multiple CPU access. The implementation is
that way, that the processor trying to acquire the lock will busy wait until it
is able to get the spinlock. The reason to chose this implementation, is
due to the assumption that the lock is only held for very short time periods
and that a complete context switch of a CPU in contrast to busy waiting would
be much more time and resource consuming. As long as the lock is held by the
CPU, no other CPU will be able to access that critical part. As soon as the
CPU is done, with for example, updating a structure, the lock has to be
released. As a precaution, the other CPU's waiting for the access to the
spinlock, record how long they already waited. If the wait time exceeds 60
seconds, the system will be paniced with a "spinlock deadlock panic".

This locking scheme is no more or less than a software convention. The
programmer has to take care of properly coding to lock and unlock the right
spinlock(s). A possible and more or less frequently met problem is, that a
driver has a seldom called exit path where a spinlock is not unlocked. Another
CPU waiting for access to this specific lock will wait until the 60 seconds
have passed and then panic the system.

regards

Vinod
Joseph Loo
Honored Contributor

Re: Panic

hi,

something u should know about unexpected reboot from this doc:

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000070978149

regards.
what you do not see does not mean you should not believe
Laurent Menase
Honored Contributor

Re: Panic

Many thing can produce a spinlock deadlock, software, hardware. It needs a crash dump
analysis to find the root cause
The best is to open a ticket at HP support,
and send the crashdump you will find at /var/adm/crash/crash.? you'll have the answer.

There are mainly 2 cases where we identify a spinlock deadlock:
1) we have a priority inversion between 2 spinlocks. 2 cpu (or more) are requesting for the same couple of spinlock but not in the same order
2) hardware failure

Most of the cases are from 1)