Re: calling hooks from inside timer interrupt handler freezes machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello...

> Why is registering an empty function and calling it from inside do_timer
> freezing the system after a short period of good run?

There are several suspects:
1. your code (call_timer_hook) is called while xtime_lock is held. it
could lead to lock contention.
2. you're running out of kernel stack. I don't have hard proof, purely
blind guessing. Try to make all your hook function a "static inline"
one. Silently overflowing kernel stack, AFAIK, is hard to detect. Do
you use 4K or 8K stack size? try 8K and see if it helps.

Before I forgot, you said it runs OK for after (quick?) period? So
this problem is intermitent?

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux