Skip to contentSkip to conversation

Repeatable scheduling oddity in 2.5.5x?

DISCUSSION Helge Hafting 1 participant 2 messages Jan 14, 2003 – Jan 15, 2003 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

I occationally use the program dvipdfm for creating pdf-files. It works for a while, then it just pauses. The process (and child processes) sleeps and the load falls to 0 for no reason.

Moving the mouse around or holding down a keyboard key (even shift) gets it going again. Note that the windows with the "stuck" processes don't need to have focus.
Pinging the machine don't seem to help, so it isn't purely an interrupt thing.

This is not a case of starvation, the cpu is free but the kernel seems to want some mouse/keyboard activity in order to hand out timeslices. This is hopeless if I'm logged in via ssh. Causing massive disk activity might help, but usually not. Logging in as root and giving the processes a massive priority boost don't change a thing.

I don't think it is a timeout either, this is not a portable and the problem can trigger in 10 seconds or so after giving the command.

The machine is nowhere near OOM either.

ps and top just show the relevant processes sleeping along with other processes that don't have any input to process. But these have. :-(

I see this with 2.5.58 and 2.5.55, UP with preempt.

dvipdfm reads a .dvi file, and use a pipe with zcat and gv to process postscript figures. There seems to always be such a pipe active when it gets stuck.

I don't think a programming error in these programs can _know_ wether or not I'm wiggling the mouse, that's why I suspect the kernel.

Is there anything more I could do to try tracking this down? I have no problems repeating it.

Helge Hafting

#2 lore raw

Re: Repeatable scheduling oddity in 2.5.5x? SOLVED

In reply to a message not in the archive
Quoted 5 lines · Oliver Neukum
Quoted 3 lines

Is there anything more I could do to try tracking this down? I have no problems repeating it.

Could it be that your tasks are blocking on /dev/random ?

Yuck, that was the problem. I moved /dev/random
out of the way and created a link to urandom, and no more stalls.

Wonder what a conversion utility needs random numbers for at all, and they surely don't need cryptographically secure ones.

Helge Hafting