Skip to contentSkip to conversation

Changing real time priority of interrupt handler thread

DISCUSSION Raphael Hertzog 5 participants 10 messages May 5, 2010 – May 25, 2010

lore
Share & tools
lore
#0 lore raw

[ Please cc me on answer, I'm not subscribed to the list, I tried to ask this question on the #linux-rt channel but got no answers so I try on the list ]

Hello,

with 2.6.33.2-rt13 the IRQ handler thread for serial devices is no longer persistent after its creation. Up to now I had a startup script opening the serial device in order to create the IRQ handler thread that would run chrt on $(pidof IRQ-4) and the setting would be persistent until next reboot.

This is no longer possible, I would have to run chrt every time that I open the serial port and I would like to avoid modifying all my applications to do this.

Is there any other alternative like making the thread persistent with some options (/sys or /proc tuning)?

Or is there a kernel config option for this ?

In case it was not clear, I want to run the IRQ handler of the serial ports at a higher priority than the other ones (like network, disk, etc.) to avoid buffer overruns.

Cheers,

Signature · 8 lines
Raphaël Hertzog -+- http://www.ouaza.com

Freexian : des développeurs Debian au service des entreprises
http://www.freexian.com
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw
Quoted 3 lines · Raphael Hertzog

In case it was not clear, I want to run the IRQ handler of the serial ports at a higher priority than the other ones (like network, disk, etc.) to avoid buffer overruns.

Have you tried using the rtctl utility and the /etc/rtgroups file?

thanks,
Nivedita

#2 lore raw
Quoted 7 lines · Nivedita Singhvi
Quoted 3 lines · Raphael Hertzog

In case it was not clear, I want to run the IRQ handler of the serial ports at a higher priority than the other ones (like network, disk, etc.) to avoid buffer overruns.

Have you tried using the rtctl utility and the /etc/rtgroups file?

Also try out tuna. If you have fedora:

yum install tuna

-- Steve

#3 lore raw
Quoted 10 lines · Steven Rostedt
Quoted 3 lines · Nivedita Singhvi
Quoted 1 line · Raphael Hertzog

In case it was not clear, I want to run the IRQ handler of the

serial

Quoted 1 line
Quoted 1 line

ports at a higher priority than the other ones (like network,

disk,

Quoted 3 lines
Quoted 1 line

etc.) to avoid buffer overruns.

Have you tried using the rtctl utility and the /etc/rtgroups file?

Where are the source tarball projects for these located so I can try porting/using them [at least some of it] on my embedded linux? ... or is this a proprietary Redhat utility only in RPM binaries? Google search seems to mainly land me at IBM and Redhat user docs and FAQs.

Perhaps my issue earlier with serial buffer overruns is just a tune up issue.

I want to tune up RT on PowerPC 405 and ARM11 MX.31 based embedded systems where the rootfs is built (cross compiled) using buildroot/uclibc, etc and not x86 binaries from a full feature distro such as Fedora, Debian, etc.

Darcy

Quoted 6 lines

Also try out tuna. If you have fedora:

yum install tuna

-- Steve

#4 lore raw
Quoted 6 lines · Darcy L. Watkins
Quoted 1 line
Quoted 1 line

Have you tried using the rtctl utility and the /etc/rtgroups file?

Where are the source tarball projects for these located so I can try porting/using them [at least some of it] on my embedded linux? ... or is this a proprietary Redhat utility only in RPM binaries? Google search seems to mainly land me at IBM and Redhat user docs and FAQs.

rtctl is GPL, not proprietary. A quick google search brought up the following:

http://ftp.riken.go.jp/pub/Linux/cern/mrg/slc5X/SRPMS/

http://ftp.riken.go.jp/pub/Linux/cern/mrg/slc5X/SRPMS/rtctl-1.7-1.el5rt.src.rpm

Quoted 7 lines

Perhaps my issue earlier with serial buffer overruns is just a tune up issue.

I want to tune up RT on PowerPC 405 and ARM11 MX.31 based embedded systems where the rootfs is built (cross compiled) using buildroot/uclibc, etc and not x86 binaries from a full feature distro such as Fedora, Debian, etc.

Setting thread priorities for your environment will certainly be a good thing in general.

thanks,
Nivedita

#5 lore raw
Quoted 4 lines · Nivedita Singhvi
Quoted 2 lines · Darcy L. Watkins
Quoted 1 line
Quoted 1 line

Have you tried using the rtctl utility and the /etc/rtgroups file?

Quoted 8 lines
Quoted 2 lines

Where are the source tarball projects for these located so I can try porting/using them [at least some of it] on my embedded linux? ...

or

Quoted 2 lines

is this a proprietary Redhat utility only in RPM binaries? Google search seems to mainly land me at IBM and Redhat user docs and FAQs.

rtctl is GPL, not proprietary. A quick google search brought up the following:

Excellent! and thanks! I see SRPMs for rt-setup, tuna, etc there as well. Is this FTP site the usual place to pick up SRPMs for these utilities as they are updated / released?

Darcy

Quoted 20 lines

http://ftp.riken.go.jp/pub/Linux/cern/mrg/slc5X/SRPMS/

http://ftp.riken.go.jp/pub/Linux/cern/mrg/slc5X/SRPMS/rtctl-1.7-1.el5rt.src.rpm

Quoted 1 line

Perhaps my issue earlier with serial buffer overruns is just a tune

up

Quoted 5 lines

issue.

I want to tune up RT on PowerPC 405 and ARM11 MX.31 based embedded systems where the rootfs is built (cross compiled) using buildroot/uclibc, etc and not x86 binaries from a full feature

distro

Quoted 1 line

such as Fedora, Debian, etc.

Setting thread priorities for your environment will certainly be a good thing in general.

thanks,
Nivedita

#6 lore raw
Quoted 8 lines · Darcy L. Watkins
Quoted 4 lines
Quoted 2 lines

is this a proprietary Redhat utility only in RPM binaries? Google search seems to mainly land me at IBM and Redhat user docs and FAQs.

rtctl is GPL, not proprietary. A quick google search brought up the following:

Excellent! and thanks! I see SRPMs for rt-setup, tuna, etc there as well. Is this FTP site the usual place to pick up SRPMs for these utilities as they are updated / released?

I am definitely not authoritative on that - it was something I happened to look up. You should definitely get the correct info from RH folks (as it's theirs).

Quoted 5 lines

Darcy

Quoted 3 lines

http://ftp.riken.go.jp/pub/Linux/cern/mrg/slc5X/SRPMS/

http://ftp.riken.go.jp/pub/Linux/cern/mrg/slc5X/SRPMS/rtctl-1.7-1.el5rt.src.rpm

thanks,
Nivedita

#7 lore raw
In reply to Steven Rostedt

Hi,

Quoted 7 lines · Nivedita Singhvi
Quoted 3 lines · Raphael Hertzog

In case it was not clear, I want to run the IRQ handler of the serial ports at a higher priority than the other ones (like network, disk, etc.) to avoid buffer overruns.

Have you tried using the rtctl utility and the /etc/rtgroups file?

Nope, not yet. I was not aware of it.

Quoted 3 lines · Steven Rostedt

Also try out tuna. If you have fedora:

yum install tuna

I have Debian and none of the two tools quoted above seem to be packaged. But thanks for your answers, I will check them out.

BTW I can't find a "rtctl" project, are the SRPM the official upstream sources? For tuna there's a least a git repo.

Cheers,

Signature · 8 lines
Raphaël Hertzog -+- http://www.ouaza.com

Freexian : des développeurs Debian au service des entreprises
http://www.freexian.com
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#8 lore raw
Quoted 13 lines · Raphael Hertzog

Hi,

Quoted 7 lines · Nivedita Singhvi
Quoted 3 lines · Raphael Hertzog

In case it was not clear, I want to run the IRQ handler of the serial ports at a higher priority than the other ones (like network, disk, etc.) to avoid buffer overruns.

Have you tried using the rtctl utility and the /etc/rtgroups file?

Nope, not yet. I was not aware of it.

Quoted 8 lines
Quoted 3 lines · Steven Rostedt

Also try out tuna. If you have fedora:

yum install tuna

I have Debian and none of the two tools quoted above seem to be packaged. But thanks for your answers, I will check them out.

I have installed and used tuna on a Debian machine. It takes a bit to get all the dependencies straight, but it is possible.

Quoted 2 lines

BTW I can't find a "rtctl" project, are the SRPM the official upstream sources? For tuna there's a least a git repo.

I added Clark Williams to the Cc. He should be able to answer that question.

-- Steve

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#9 lore raw
Quoted 23 lines · On Tue, 25 May 2010 09:25:41 -0400 Steven Rostedt <[email protected]> wrote:
Quoted 13 lines · Raphael Hertzog

Hi,

Quoted 7 lines · Nivedita Singhvi
Quoted 3 lines · Raphael Hertzog

In case it was not clear, I want to run the IRQ handler of the serial ports at a higher priority than the other ones (like network, disk, etc.) to avoid buffer overruns.

Have you tried using the rtctl utility and the /etc/rtgroups file?

Nope, not yet. I was not aware of it.

Quoted 8 lines
Quoted 3 lines · Steven Rostedt

Also try out tuna. If you have fedora:

yum install tuna

I have Debian and none of the two tools quoted above seem to be packaged. But thanks for your answers, I will check them out.

Quoted 9 lines

I have installed and used tuna on a Debian machine. It takes a bit to get all the dependencies straight, but it is possible.

Quoted 2 lines

BTW I can't find a "rtctl" project, are the SRPM the official upstream sources? For tuna there's a least a git repo.

I added Clark Williams to the Cc. He should be able to answer that question.

Hey Niv and Raphael,

Yeah the official upstream for rtctl is currently the SRPM. Never really anticipated that anyone would want it :)

Clark