From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 15 22:03:51 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D12ED16A41F for ; Sun, 15 Jan 2006 22:03:51 +0000 (GMT) (envelope-from kamal_ckk@yahoo.com) Received: from web30002.mail.mud.yahoo.com (web30002.mail.mud.yahoo.com [68.142.200.65]) by mx1.FreeBSD.org (Postfix) with SMTP id 3810043D45 for ; Sun, 15 Jan 2006 22:03:51 +0000 (GMT) (envelope-from kamal_ckk@yahoo.com) Received: (qmail 37977 invoked by uid 60001); 15 Jan 2006 22:03:50 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=5MBgLsOOX2ZgEThkSZE03Aq1fDs9Q/0Rdf2mz6LOn/aMEI5BAKW2qkBtoBnrUljTJ3GdxV9yyFiATcebt+dEhIqdCTMMDe5fytAzmsGYR5qAVTvfcXhciErO/UU6qHlvXfjfWsUHna2dkC78mLv7Dib8wHA8tCydaRmA3CMgy1g= ; Message-ID: <20060115220350.37975.qmail@web30002.mail.mud.yahoo.com> Received: from [202.79.62.16] by web30002.mail.mud.yahoo.com via HTTP; Sun, 15 Jan 2006 14:03:50 PST Date: Sun, 15 Jan 2006 14:03:50 -0800 (PST) From: kamal kc To: freebsd MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: giving more cpu time to cpu intensive kernel daemon X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2006 22:03:51 -0000 dear all, i created a kernel daemon thread using the SYSINIT(). i want that daemon thread to do more cpu intensive tasks and that's why i want to give it more cpu time. my daemon thread get a priority of -84 and a nice value of 0. i guess when the nice value is 0 it affects its scheduling. how could i give it a good nice value ? are there any other options that i may have to look upon to ensure the daemon gets more of the cpu time ?? thanks, kamal __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com