From owner-cvs-src@FreeBSD.ORG Thu Jun 15 09:49:05 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 641A816A479; Thu, 15 Jun 2006 09:49:05 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3B8D43D45; Thu, 15 Jun 2006 09:49:04 +0000 (GMT) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 6A00FEB252B; Thu, 15 Jun 2006 17:48:59 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id oWg3lSk6Qg9W; Thu, 15 Jun 2006 17:48:56 +0800 (CST) Received: from [10.217.12.210] (sina152-194.staff.sina.com.cn [61.135.152.194]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id E33A6EB253E; Thu, 15 Jun 2006 17:48:22 +0800 (CST) From: Xin LI To: Robert Watson In-Reply-To: <20060615102900.C9158@fledge.watson.org> References: <200606150637.k5F6bdax000157@repoman.freebsd.org> <1150363262.937.44.camel@spirit> <20060615102900.C9158@fledge.watson.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-kdg06OI+bS2JzMP0n+g1" Organization: The FreeBSD Project Date: Thu, 15 Jun 2006 17:48:15 +0800 Message-Id: <1150364895.2108.13.camel@spirit> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, David Xu , cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys sched.h src/sys/posix4 ksched.c src/sys/kern sched_4bsd.c sched_core.c sched_ule.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jun 2006 09:49:05 -0000 --=-kdg06OI+bS2JzMP0n+g1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =E5=9C=A8 2006-06-15=E5=9B=9B=E7=9A=84 10:29 +0100=EF=BC=8CRobert Watson=E5= =86=99=E9=81=93=EF=BC=9A > On Thu, 15 Jun 2006, Xin LI wrote: > [...]> A question that might be related: We have sched_sizeof_proc(), et= c. in=20 > > every scheduler, which returns a constant. Is it worthy to convert the= m to=20 > > constants that just expand inline during the kernel compile? >=20 > It should make no difference -- sched_sizeof_proc() is evaluated exactly = once,=20 > when the process zone is created. After that, the size is cached in the=20 > process zone and never re-evaluated. The current model allows the size t= o be=20 > calculated based on data structures private to sched_foo.c, which has som= e=20 > nice implementation hiding advantages :-). Oh... Yes that's quite reasonable. Thanks for the explanation! Cheers, --=20 Xin LI http://www.delphij.net/ --=-kdg06OI+bS2JzMP0n+g1 Content-Type: application/pgp-signature; name=signature.asc Content-Description: =?UTF-8?Q?=E8=BF=99=E6=98=AF=E4=BF=A1=E4=BB=B6=E7=9A=84=E6=95=B0?= =?UTF-8?Q?=E5=AD=97=E7=AD=BE=E5=90=8D=E9=83=A8=E5=88=86?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEkSzfhcUczkLqiksRAortAJ9gxwVg55Xm6hW3wVIkGevTFYPDcgCgitqA Og6d3B6TF/w547MPuN1sHpw= =UrlE -----END PGP SIGNATURE----- --=-kdg06OI+bS2JzMP0n+g1--