Date: Fri, 28 Mar 2014 15:44:31 +0200 From: Konstantin Belousov <kostikbel@gmail.com> To: Jia-Shiun Li <jiashiun@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Add CPUID subleaf capability to cpuctl/cpucontrol Message-ID: <20140328134431.GW21331@kib.kiev.ua> In-Reply-To: <CAHNYxxM7hGQX2_Yx__xHF_065oRH%2B9rQC=L3iNR_6GMBps%2BvqQ@mail.gmail.com> References: <CAHNYxxPZ%2BLpVGhgJXRhpMJkotXEY1Hyezye79XB_xHNazVgdng@mail.gmail.com> <20140326155429.GK21331@kib.kiev.ua> <CAHNYxxNa_3cABhPMV5WxCot-%2BYn9jS6aJ8puWGWw-tRRDKMFYg@mail.gmail.com> <20140327123859.GP21331@kib.kiev.ua> <CAHNYxxM7hGQX2_Yx__xHF_065oRH%2B9rQC=L3iNR_6GMBps%2BvqQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--SuGb6p5JEpzYJdwO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 28, 2014 at 09:09:40PM +0800, Jia-Shiun Li wrote: > On Thu, Mar 27, 2014 at 8:38 PM, Konstantin Belousov > <kostikbel@gmail.com> wrote: > > > > From what I remember, in the multi-socket configuration Intel allows > > CPUs to only differ by stepping. Due to this, I see only one possible > > uses of executing CPUID on specific core, to get the stepping of the > > package, to either test for the presence of the specific CPU bug, or to > > select the proper microcode update. > > > > That said, I am curious why do you want this feature. >=20 > I'd like to do some CPU monitoring w/ MSR, thus need to identify CPU > topology & CPU id on specific logical ones. I am sure there are some > info from kernel, sysctl, etc. Even utilities readily available. But I > am just curious on how it works anyway. With topology and MSR access > via cpuctl, it should be able to do some monitoring from user space. For the topology, my note about multi-socket configuration holds. The advanced topology enumeration leafs must be identical on all populated sockets for given machine. --SuGb6p5JEpzYJdwO Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAEBAgAGBQJTNXy/AAoJEJDCuSvBvK1B9aEQAIQ/4eGGvSx5B2rZNEquxxhb 3vFinBq6Z8HU5IDpafz4iLgS2Rna+9/QBZAVKefkrZHhvdldIxbELmaxj/Porp/q I4DujP8mxotcFN3w+SbbuKgdIu1LBmFsHms2MhHeLy1EHlQxCnwMgOLCzOeT9JCe fXXjjLKAphV6BWdsCxZmqjw05oQ/RabpufQ6X0a7eVRAee5coirp5Ay6KlNXhyIK CF1MJF94eoo48T/4de/U3OJ6fL37zj34oNNpZiOW2N+9O5awA8voOjfg5nsm8gZE HxSwPGXrIuHClhbWG8dcTlNXvM+6eWA985EDp0aXrecxyAR8LdFoqaLpOOh/U8+g 4bCaL/Y3iwPeHf1BIk6WuyeTw69tArY0bOkTOW5XRWQhJKlcL4LhwwO9T6JXqNIP 7ZgtUQj328HYuuFl7XUVAwfe2Ifnn00glYloImvqRJxIxMtJvxlWiBh3hCqki8Ic d3J/gXdorOG5C9WYYHfRASqUowSEWnqVheBqAxP5kZ+acDv+rwMJ350+gKVIuRYX ZHjav/Vv85YfMfTt3fEZIyUdWNprSiEUG6mFBfKtq8/atuWrSm+dcd5XsXOr3SBS 60x33saIhCyckSzoEwBGNdzfGcsSCj1LvNx95LRzlRoVxB1xng1JzKElwmx+Ec8b 1n0sA6JfzK21VlDXAcC1 =mVd8 -----END PGP SIGNATURE----- --SuGb6p5JEpzYJdwO--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140328134431.GW21331>