From owner-freebsd-current Sun Sep 17 7:30:23 2000 Delivered-To: freebsd-current@freebsd.org Received: from mout0.freenet.de (mout0.freenet.de [194.97.50.131]) by hub.freebsd.org (Postfix) with ESMTP id E972137B422; Sun, 17 Sep 2000 07:30:14 -0700 (PDT) Received: from [194.97.50.135] (helo=mx2.freenet.de) by mout0.freenet.de with esmtp (Exim 3.16 #20) id 13afSN-0004nl-00; Sun, 17 Sep 2000 16:30:11 +0200 Received: from ae0d0.pppool.de ([213.6.224.208] helo=Magelan.Leidinger.net) by mx2.freenet.de with esmtp (Exim 3.16 #20) id 13afSM-0002V2-00; Sun, 17 Sep 2000 16:30:10 +0200 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.11.0/8.11.0) with ESMTP id e8HERFn34982; Sun, 17 Sep 2000 16:27:16 +0200 (CEST) (envelope-from netchild@Leidinger.net) Message-Id: <200009171427.e8HERFn34982@Magelan.Leidinger.net> Date: Sun, 17 Sep 2000 16:27:12 +0200 (CEST) From: Alexander Leidinger Subject: Re: 100% system time? (SMPng on UP system) To: bde@zeta.org.au Cc: current@FreeBSD.ORG, jhb@FreeBSD.ORG In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 18 Sep, Bruce Evans wrote: >> >> dnetc runns with idprio 31, system cvsupped around Sep 16, 11 CEST from >> >> a german mirror (it contains the idle fixes: src/sys/kern/kern_idle.c,v >> >> 1.4), complete build{world,kernel}. >> >> >> >> ---snip--- >> >> last pid: 1666; load averages: 1.10, 1.11, 1.03 up 0+00:51:21 16:54:14 >> > >> > Perhaps it really is a system process :-[. idprio on a pure cpu hog prevents >> > other user processes from running like a system process might do: >> > >> > idprio 31 sh -c "while :; do :; done" >> > >> > System processes actually hang the entire system until they complete: >> >> Are you mixing idprio with rtprio or did I not understand what you >> explain? > > You didn't understand :-). Try the example. It only uses idprio. I have dnetc still running with idprio 31 and it didn't hang the entire system (I'm able to write this mail and compiling a port in the background while dnetc is running). As I understand this: - The man-page of idprio says it allows processes only to run if the system is idle. - You say, in my case (dnetc is a cpu hog, isn't it?) idprio prevents other processes from running (the opposide of what I want). - I say, dnetc is running in the background with idprio 31 and I'm able to do usefull work while it is running. Confused, Alexander. -- Reboot America. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = 7423 F3E6 3A7E B334 A9CC B10A 1F5F 130A A638 6E7E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message