* hotplug starts script as high priority process
@ 2005-03-29 11:42 Andreas Walden
2005-03-29 11:49 ` Kay Sievers
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Walden @ 2005-03-29 11:42 UTC (permalink / raw)
To: linux-hotplug
Hi,
I'm using linux 2.6.11 on an ARM AT91RM9200 with hotplug-ng-001. On hotplug event, hotplug invokes a script called 99-usb2serial.hotplug as hig priority process. Is it possible to avoid this and instead run the script in normal priority?
regards,
Andreas
PID Uid VmSize Stat Command
1 root 156 S init
2 root SWN [ksoftirqd/0]
3 root SW< [events/0]
4 root SW< [khelper]
9 root SW< [kthread]
14 root SW< [kblockd/0]
22 root SW [khubd]
57 root SW [pdflush]
58 root SW [pdflush]
60 root SW< [aio/0]
59 root SW [kswapd0]
132 root SW [kseriod]
156 root SW [mtdblockd]
171 root SW< [rpciod/0]
193 root 628 S /sbin/inetd
215 andwalde 1152 S -bash
216 root 160 S /sbin/syslogd -n -m 0
217 root 124 S /sbin/klogd -n
363 root 248 S < usb2serial add /class/input/mouse0 usbmouse
365 andwalde 152 R ps
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc\x021193
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: hotplug starts script as high priority process
2005-03-29 11:42 hotplug starts script as high priority process Andreas Walden
@ 2005-03-29 11:49 ` Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2005-03-29 11:49 UTC (permalink / raw)
To: linux-hotplug
On Tue, 2005-03-29 at 13:41 +0100, Andreas Walden wrote:
> I'm using linux 2.6.11 on an ARM AT91RM9200 with hotplug-ng-001.
> On hotplug event, hotplug invokes a script called 99-usb2serial.hotplug
> as hig priority process. Is it possible to avoid this and instead run
> the script in normal priority?
Add a setpriority(2) call to hotplug.c after the fork before the exec(3)
of the child. Or try to use nice(1) in your script.
Kay
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-29 11:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-29 11:42 hotplug starts script as high priority process Andreas Walden
2005-03-29 11:49 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).