From owner-freebsd-current@FreeBSD.ORG Sat Jan 31 13:32:05 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 406B016A4CE for ; Sat, 31 Jan 2004 13:32:05 -0800 (PST) Received: from mail-in.m-online.net (mail-in.m-online.net [62.245.150.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 910BB43D54 for ; Sat, 31 Jan 2004 13:32:01 -0800 (PST) (envelope-from h@schmalzbauer.de) Received: from mail.m-online.net (svr14.m-online.net [192.168.3.144]) by svr8.m-online.net (Postfix) with ESMTP id 739411F6E3; Sat, 31 Jan 2004 22:32:00 +0100 (CET) Received: from cale.flintsbach.schmalzbauer.de (ppp-62-245-163-150.mnet-online.de [62.245.163.150]) by mail.m-online.net (Postfix) with ESMTP id 3695441341; Sat, 31 Jan 2004 22:32:00 +0100 (CET) From: Harald Schmalzbauer To: Steve Kargl Date: Sat, 31 Jan 2004 22:31:55 +0100 User-Agent: KMail/1.5.4 References: <200401312146.32847@harrymail> <20040131212419.GA76513@troutmask.apl.washington.edu> In-Reply-To: <20040131212419.GA76513@troutmask.apl.washington.edu> X-Birthday: 06 Oktober 1972 X-Name: Harald Schmalzbauer X-Phone1: +49 (0) 163 555 3237 X-Phone2: +49 (0) 89 18947781 X-Address: Munich, 80686 X-Country: Germany MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_P7BHA5NZCdnyRsf"; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <200401312231.59784@harrymail> cc: freebsd-current@freebsd.org Subject: Re: SCHED_ULE and nice still ignored X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jan 2004 21:32:05 -0000 --Boundary-02=_P7BHA5NZCdnyRsf Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Description: signed data Content-Disposition: inline On Saturday 31 January 2004 22:24, Steve Kargl wrote: > On Sat, Jan 31, 2004 at 09:46:29PM +0100, Harald Schmalzbauer wrote: > Content-Description: signed data > > > like I reported some weeks ago, SCHED_ULE seems to ignore nice. > > Since it's now the default I gave it another try and did the following > > simple test: > > > > SCHED_ULE: > > seti in background (doesn't matter if nice=3D20 or 15) > > /usr/ports/sysutils/cpdup > > make install takes Minutes > > > > Without seti it takes some seconds > > > > SCHED_4BSD: > > seti in background (doesn't matter if nice=3D20 or 15) > > /usr/ports/sysutils/cpdup > > make install finishes in seconds. No difference with or without seti > > > > > > Please let us know when nice gets respected by SCHED_ULE so I can really > > use it as default scheduler. > > Seems to work for me. You need to describe your problem better. > > last pid: 70890; load averages: 2.49, 1.86, 1.54 up 1+17:55:17=20 > 13:23:16 64 processes: 5 running, 59 sleeping > CPU states: 16.8% user, 4.6% nice, 77.7% system, 1.0% interrupt, 0.0% > idle Mem: 120M Active, 176M Inact, 58M Wired, 18M Cache, 48M Buf, 1072K > Free Swap: 356M Total, 356M Free Ok, perhaps nice is working in some way, but as I described earlier far awa= y=20 from what it should do. If I start a process with nice 15 (like seti) it shouldn't slow down my=20 machine by exponetial factors. It should take cycles which are almost unused and not block regular process= es=20 (like make) If you want to know exact values, I can take a clock and measure the exact= =20 divverence, but I think this is not needed at all since the differenc isn't= =20 marignal, its minutes vs. seconds. =2DHarry > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > 592 kargl 76 0 35248K 34284K RUN 600:36 1.56% 1.56% XFree86 > 70093 kargl 8 20 1708K 1000K wait 0:00 1.56% 1.56% sh > 70889 kargl 139 20 4152K 3148K RUN 0:00 1.56% 1.56% cc1 > 70887 kargl 8 20 328K 220K wait 0:00 1.56% 1.56% gcc > 70886 kargl 8 20 1708K 1000K wait 0:00 1.56% 1.56% sh > 822 kargl 76 0 5000K 3276K select 2:02 0.78% 0.78% xterm > 70792 root 8 0 1336K 1216K wait 0:00 0.78% 0.78% make > 70888 root 8 0 1660K 944K wait 0:00 0.78% 0.78% sh > 70890 root 139 0 1568K 632K RUN 0:00 0.78% 0.78% gzip > 606 kargl 76 0 5068K 3340K RUN 0:01 0.00% 0.00% xterm > 70765 kargl 76 0 2312K 1364K RUN 0:00 0.00% 0.00% top --Boundary-02=_P7BHA5NZCdnyRsf Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQBAHB7PBylq0S4AzzwRAoj4AJ9JZ649ZKzXsQTLk0z0pcp1Yuje4wCgkdsw UD3zSfYLJTC7nSVjcWfhFTc= =A7+5 -----END PGP SIGNATURE----- --Boundary-02=_P7BHA5NZCdnyRsf--