Date: Fri, 05 Oct 2001 03:15:55 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> Cc: Alfred Perlstein <bright@mu.org>, smp@freebsd.org Subject: Re: How to distinguish the SMP kernel and the UP kernel Message-ID: <3BBD885B.7AFE0EBF@mindspring.com> References: <200110030310.MAA13836@zodiac.mech.utsunomiya-u.ac.jp> <3BBB6757.9A668E99@mindspring.com> <200110041211.VAA24646@zodiac.mech.utsunomiya-u.ac.jp> <20011004130051.B59854@elvis.mu.org> <200110050833.RAA28872@zodiac.mech.utsunomiya-u.ac.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
Kazutaka YOKOTA wrote: [ ... ] > - The following patch will add a new sysctl variable. > > kern.smp.kernel Keeping in mind that tis lets programmers do really crappy things, like write code that refuses to run in SMP kernels, and vice versa, when they shouldn't be sensitive to the kernel... Can I suggest you just add a "maxcpu" instead, on the same OID branch as the "ncpu"? At the very least, you should keep these things adjacent in a sysctl -A, and the name "kernel" risks misinterpretation. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BBD885B.7AFE0EBF>