public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* printks in the scheduler freeze during scripts
@ 2002-06-27 14:03 anton wilson
  2002-06-27 14:15 ` Andrew Morton
  2002-06-28 11:56 ` Michael S. Zick
  0 siblings, 2 replies; 3+ messages in thread
From: anton wilson @ 2002-06-27 14:03 UTC (permalink / raw)
  To: linux-kernel



I'm running linux 2.4.17 and Redhat 7.2 with the preemptive and low latency 
patches, and whenever I stick printks in the scheduler(void) my system 
freezes somewhere after it tries to load the system font. Where it stops 
seems to be random. I can only run under single user mode without my system 
freezing. Does anyone have any clues why? Or any better ways to go about 
tracking the scheduling of processes in the scheduler?


Anton
-- 
Camotion
Software Development
678-471-0895

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: printks in the scheduler freeze during scripts
  2002-06-27 14:03 printks in the scheduler freeze during scripts anton wilson
@ 2002-06-27 14:15 ` Andrew Morton
  2002-06-28 11:56 ` Michael S. Zick
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2002-06-27 14:15 UTC (permalink / raw)
  To: anton wilson; +Cc: linux-kernel

anton wilson wrote:
> 
> I'm running linux 2.4.17 and Redhat 7.2 with the preemptive and low latency
> patches, and whenever I stick printks in the scheduler(void) my system
> freezes somewhere after it tries to load the system font. Where it stops
> seems to be random. I can only run under single user mode without my system
> freezing. Does anyone have any clues why? Or any better ways to go about
> tracking the scheduling of processes in the scheduler?
> 

printk() calls wake_up(), to give klogd a kick.  So a printk
from the scheduler tends to deadlock.  Just delete the
last two lines of kernel/printk.c:release_console_sem() and it
should work OK.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: printks in the scheduler freeze during scripts
  2002-06-27 14:03 printks in the scheduler freeze during scripts anton wilson
  2002-06-27 14:15 ` Andrew Morton
@ 2002-06-28 11:56 ` Michael S. Zick
  1 sibling, 0 replies; 3+ messages in thread
From: Michael S. Zick @ 2002-06-28 11:56 UTC (permalink / raw)
  To: anton wilson, linux-kernel

On Thursday 27 June 2002 09:03 am, anton wilson wrote:
> I'm running linux 2.4.17 and Redhat 7.2 with the preemptive and low latency
> patches, and whenever I stick printks in the scheduler(void) my system
> freezes somewhere after it tries to load the system font. Where it stops
> seems to be random. I can only run under single user mode without my system
> freezing. Does anyone have any clues why? Or any better ways to go about
> tracking the scheduling of processes in the scheduler?

Something I have used in my testing:

Add, in the task structure:

task_t  *sched_from;

In schedule, prior to context_switch:

next->sched_from = prior; /* at this point still == get_current ()*/

Somewhere else (so you don't inadvertantly side-effect to death schedule()):

Follow the back-link and printk whatever for the task that you are interested 
in, being careful not to reference task structures that no longer exist.

Mike
>
>
> Anton

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-28 12:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-27 14:03 printks in the scheduler freeze during scripts anton wilson
2002-06-27 14:15 ` Andrew Morton
2002-06-28 11:56 ` Michael S. Zick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox