Weblog entry #24 for dkg

interrupt (IRQ) prioritization under debian?
Posted by dkg on Mon 5 Nov 2007 at 07:59
Does anyone have pointers for how to ask a modern debian system to prioritize certain interrupts (IRQs) ahead of others?

irqtune is the historical option, but it hasn't been updated for 10 years, and looks like a serious mess in debian at the moment (it's not in etch or lenny, orphaned, and has many serious bugs open).

Any thoughts or suggestions for what might be a better way to prioritize interrupts on a modern system?

 

Comments on this Entry

Posted by simonw (84.45.xx.xx) on Tue 6 Nov 2007 at 00:52
[ Send Message | View Weblogs ]
There may be a reason it hasn't received much attention.

Why do you think you need it?

[ Parent | Reply to this comment ]

Posted by dkg (216.254.xx.xx) on Tue 6 Nov 2007 at 18:12
[ Send Message | View dkg's Scratchpad | View Weblogs ]
I have a system with serial ports with 16-byte buffers, running at 115200 Kbps. I've seen buffer overruns on several of these serial ports. The serial HOWTO implies that poorly-prioritized IRQs can be one cause of serial port overruns. If the remote device is transmitting at full speed the buffer can fill up 900 times a second, so it seems reasonable to think that a poorly-prioritized interrupt could contribute to this (if the "serial data ready" interrupt wasn't serviced within 1/900th of a second, that is).

Fortunately, i haven't seen these buffer overruns except immediately after boot, when i suppose it's possible that the kernel is still settling into its routine, and hasn't set up proper optimizations (disk caching, etc). If this is the case, i could see how an interrupt isn't serviced as quickly as it should be, because other systems are still being accessed with higher priority.

However, for this system, i'd really like to prioritize servicing the serial port over other subsystems, even at boot time, even if it means more sluggish responses from the disks or other devices.

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search