From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FR5GH-0001w4-Hd for garchives@archives.gentoo.org; Wed, 05 Apr 2006 10:29:18 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k35ASjCY020683; Wed, 5 Apr 2006 10:28:45 GMT Received: from mx1.polytechnique.org (mx1.polytechnique.org [129.104.30.34]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k35AOhUC003108 for ; Wed, 5 Apr 2006 10:24:43 GMT Received: from agena.lpqm.ens-cachan.fr (agena.lpqm.ens-cachan.fr [138.231.65.142]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTP id 7C9B43317F for ; Wed, 5 Apr 2006 12:24:42 +0200 (CEST) Subject: Re: [gentoo-user] PORTAGE_NICENESS for real From: =?ISO-8859-1?Q?Fr=E9d=E9ric?= Grosshans To: gentoo-user@lists.gentoo.org In-Reply-To: <1144231652.24199.3.camel@localhost> References: <49bf44f10604041713r52c33c7dx9379882400ba7544@mail.gmail.com> <1144198585.13378.1.camel@orpheus> <44331ADF.9010002@cisco.com> <1144201870.13375.11.camel@orpheus> <1144231652.24199.3.camel@localhost> Content-Type: text/plain; charset=ISO-8859-15 Date: Wed, 05 Apr 2006 12:22:40 +0200 Message-Id: <1144232560.24199.13.camel@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 X-AV-Checked: ClamAV using ClamSMTP at djali.polytechnique.org (Wed Apr 5 12:24:42 2006 +0200 (CEST)) X-Spam-Flag: No, tests=bogofilter, spamicity=0.000457, queueID=A157333194 X-DCC--Metrics: djali 32702; Body=1 Fuz1=1 Fuz2=1 X-Org-Mail: frederic.grosshans.1995@polytechnique.org Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k35ASjCq020683 X-Archives-Salt: 53d8240c-d4b9-4cc4-ae3f-d775040bd6ad X-Archives-Hash: c097e5217367b5e793d9a502d7a271fb Le mercredi 05 avril 2006 =E0 12:07 +0200, Fr=E9d=E9ric Grosshans a =E9cr= it : > Le mercredi 05 avril 2006 =E0 11:21 +0930, Iain Buchanan a =E9crit : > > On Tue, 2006-04-04 at 20:18 -0500, Roy Wright wrote: >=20 > > It would be nice if there was a nice command for making disk access n= ice > > so I could nicely say `nice emerge -uD world` and it wouldn't take a > > whole lot of disk time away from my nice browsing, music playing, etc= ... >=20 > I think /usr/src/linux/Documentation/block/ioprio.txt is your friend. > (I'll read it when (if?) I'll have the time, so I can't sum it up for > you !) OK, I've read it. If you configure the CFQ-IOscheduler in your kernel, you can write an ionice tool (source code given) which is like nice, but for the disk. Furthermore, there exist a IOPRIO_CLASS_IDLE priority class which is exactly what we are looking for (no disk access if any other process wants a disk access). Is there a plan to use those IOPRIO classes in Portage ? It could be very useful for laptops (with very slow disks). BTW, is there a plan to use the new SCHED_BATCH scheduling policy introduced in the last (2.6.16) kernel ? (see http://www.kernel.org/git/?p=3Dlinux/kernel/git/torvalds/linux-2.6.git;a=3D= commit;h=3Db0a9499c3dd50d333e2aedb7e894873c58da3785 ) Fred --=20 gentoo-user@gentoo.org mailing list