Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Sep 2011 11:05:09 +0200 (CEST)
From:      Elof Ofel <elof2@sentor.se>
To:        freebsd-questions@freebsd.org
Subject:   Run different kernel subsystems with different priorities
Message-ID:  <alpine.BSF.2.00.1109211043340.3711@deliverator.sentor.se>

next in thread | raw e-mail | index | archive | help

Hi!

Q1:
Is it possible to set different NICE priorities on different kernel 
subsystems?
For example, can I prioritize the interrupt handling of the NIC bge1 
([irq23: bge1]) over the interrupt handling of NIC bge0 ([irq22: bge0])?

...and can I make the usb subsystem ([usb0], [usb1], [usb2], [usb3]) less 
prioritized than pretty much everything else?

When running 'ps faxuwl', I see that all processess on my system is 
running with NICE value 0.



Q2:
When assigning custom NICE priotities to my userland processes, what 
levels should one use? Is there any recommendation to follow?

If I intend to have three levels, high, medium and unimportant, should I 
use the values
0   10  20   or
0   1   2    or
0   50  100  or
-1  0   1    or
-1  5   10
or something different?

/Elof



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1109211043340.3711>