From owner-freebsd-questions@FreeBSD.ORG Wed Sep 21 09:20:35 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E64491065670 for ; Wed, 21 Sep 2011 09:20:35 +0000 (UTC) (envelope-from elof2@sentor.se) Received: from deliverator.sentor.se (deliverator.sentor.se [195.178.169.27]) by mx1.freebsd.org (Postfix) with ESMTP id A758A8FC15 for ; Wed, 21 Sep 2011 09:20:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by deliverator.sentor.se (Postfix) with ESMTP id 04B66A30732 for ; Wed, 21 Sep 2011 11:05:10 +0200 (CEST) Date: Wed, 21 Sep 2011 11:05:09 +0200 (CEST) From: Elof Ofel To: freebsd-questions@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: Run different kernel subsystems with different priorities X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2011 09:20:36 -0000 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