Date: Fri, 28 Mar 2014 21:09:40 +0800 From: Jia-Shiun Li <jiashiun@gmail.com> To: Konstantin Belousov <kostikbel@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Add CPUID subleaf capability to cpuctl/cpucontrol Message-ID: <CAHNYxxM7hGQX2_Yx__xHF_065oRH%2B9rQC=L3iNR_6GMBps%2BvqQ@mail.gmail.com> In-Reply-To: <20140327123859.GP21331@kib.kiev.ua> References: <CAHNYxxPZ%2BLpVGhgJXRhpMJkotXEY1Hyezye79XB_xHNazVgdng@mail.gmail.com> <20140326155429.GK21331@kib.kiev.ua> <CAHNYxxNa_3cABhPMV5WxCot-%2BYn9jS6aJ8puWGWw-tRRDKMFYg@mail.gmail.com> <20140327123859.GP21331@kib.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
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. 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. After a quick scan, I think the most similar in ports should be i7z. Jia-Shiun.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHNYxxM7hGQX2_Yx__xHF_065oRH%2B9rQC=L3iNR_6GMBps%2BvqQ>