From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 10 11:35:07 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 390221065673; Wed, 10 Nov 2010 11:35:07 +0000 (UTC) (envelope-from fidaj@ukr.net) Received: from fsm1.ukr.net (fsm1.ukr.net [195.214.192.23]) by mx1.freebsd.org (Postfix) with ESMTP id 881D98FC0A; Wed, 10 Nov 2010 11:35:04 +0000 (UTC) Received: from 84-73-132-95.pool.ukrtel.net ([95.132.73.84] helo=localhost) by fsm1.ukr.net with esmtps ID 1PG8xD-000MO4-54 ; Wed, 10 Nov 2010 13:35:03 +0200 Date: Wed, 10 Nov 2010 13:35:02 +0200 From: Ivan Klymenko To: Ivan Voras Message-ID: <20101110133502.32dddcdd@ukr.net> In-Reply-To: References: <20101110125630.00548b45@ukr.net> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, freebsd-smp@freebsd.org Subject: Re: kern.smp.topology X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2010 11:35:07 -0000 =D0=92 Wed, 10 Nov 2010 12:20:45 +0100 Ivan Voras =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On 11/10/10 11:56, Ivan Klymenko wrote: > > Hello! People. > >=20 > > Who can explain the purpose of sysctl variable kern.smp.topology? > > What does it affect? > >=20 > > It may take such values: > > 1 -Dual core with no sharing. > > 2 -No topology, all cpus are equal. > > 3 -Dual core with shared L2. > > 4 -quad core, shared l3 among each package, private l2. > > 5 -quad core, 2 dualcore parts on each package share l2. > > 6 -Single-core 2xHTT > > 7 -quad core with a shared l3, 8 threads sharing L2. > > default-Default, ask the system what it wants. > >=20 > > Does it make sense to set its value manually, if I know that my CPU > > Core2Duo? How to do this, select a value? > >=20 > > I not found this explanation in any of the official guides ... >=20 > Short answer is: you should not have to touch it, ever. >=20 > Long answer: it's used mostly for testing ULE and debugging > topology-related problems. It's even less relevant in recent kernels > (9, 8-stable) where a better topology parser has been committed. >=20 Thank you! I understood. :)