Date: Thu, 15 Jun 2006 17:48:15 +0800 From: Xin LI <delphij@delphij.net> To: Robert Watson <rwatson@FreeBSD.org> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, David Xu <davidxu@FreeBSD.org>, 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 Message-ID: <1150364895.2108.13.camel@spirit> In-Reply-To: <20060615102900.C9158@fledge.watson.org> References: <200606150637.k5F6bdax000157@repoman.freebsd.org> <1150363262.937.44.camel@spirit> <20060615102900.C9158@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-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 <delphij delphij net> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1150364895.2108.13.camel>