* Determining if the current processor is Hyperthreaded
@ 2005-07-29 16:24 Athul Acharya
2005-08-02 17:56 ` Bill Davidsen
0 siblings, 1 reply; 5+ messages in thread
From: Athul Acharya @ 2005-07-29 16:24 UTC (permalink / raw)
To: linux-kernel
Hey folks,
Is there a quick way to determine if the current processor is
Hyperthreaded, and if so, which logical processor represents the other
thread on the chip? Please cc replies to me as I am not subscribed to
the list :-)
Thanks,
Athul
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Determining if the current processor is Hyperthreaded
2005-07-29 16:24 Determining if the current processor is Hyperthreaded Athul Acharya
@ 2005-08-02 17:56 ` Bill Davidsen
2005-08-03 0:14 ` Athul Acharya
0 siblings, 1 reply; 5+ messages in thread
From: Bill Davidsen @ 2005-08-02 17:56 UTC (permalink / raw)
To: Athul Acharya, Linux Kernel Mailing List
Athul Acharya wrote:
> Hey folks,
>
> Is there a quick way to determine if the current processor is
> Hyperthreaded, and if so, which logical processor represents the other
> thread on the chip? Please cc replies to me as I am not subscribed to
> the list :-)
Look at /proc/cpuinfo and see if "siblings" is listed and more than one.
There is no "other thread" there, it's like "which one is the other hand?"
--
-bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Determining if the current processor is Hyperthreaded
2005-08-02 17:56 ` Bill Davidsen
@ 2005-08-03 0:14 ` Athul Acharya
2005-08-05 13:45 ` Athul Acharya
0 siblings, 1 reply; 5+ messages in thread
From: Athul Acharya @ 2005-08-03 0:14 UTC (permalink / raw)
To: Bill Davidsen; +Cc: Linux Kernel Mailing List
On 8/2/05, Bill Davidsen <davidsen@tmr.com> wrote:
> Athul Acharya wrote:
> > Hey folks,
> >
> > Is there a quick way to determine if the current processor is
> > Hyperthreaded, and if so, which logical processor represents the other
> > thread on the chip? Please cc replies to me as I am not subscribed to
> > the list :-)
>
> Look at /proc/cpuinfo and see if "siblings" is listed and more than one.
> There is no "other thread" there, it's like "which one is the other hand?"
Sorry, I should've been more specific -- I mean within the kernel.
That is, I want to know whether the current cpu I (kernel code) am
executing on is hyperthreaded, and if so, which logical cpu represents
the other thread on chip.
Athul
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Determining if the current processor is Hyperthreaded
2005-08-03 0:14 ` Athul Acharya
@ 2005-08-05 13:45 ` Athul Acharya
2005-08-06 21:31 ` Athul Acharya
0 siblings, 1 reply; 5+ messages in thread
From: Athul Acharya @ 2005-08-05 13:45 UTC (permalink / raw)
To: Bill Davidsen; +Cc: Linux Kernel Mailing List
On 8/2/05, Athul Acharya <aacharya@gmail.com> wrote:
> That is, I want to know whether the current cpu I (kernel code) am
> executing on is hyperthreaded, and if so, which logical cpu represents
> the other thread on chip.
Trying again, as it seems like a simple thing that really should exist
-- is_cpu_hyperthreaded(smp_processor_id()) -- or something similar.
Anyone?
Athul
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Determining if the current processor is Hyperthreaded
2005-08-05 13:45 ` Athul Acharya
@ 2005-08-06 21:31 ` Athul Acharya
0 siblings, 0 replies; 5+ messages in thread
From: Athul Acharya @ 2005-08-06 21:31 UTC (permalink / raw)
To: Bill Davidsen; +Cc: Linux Kernel Mailing List
On 8/5/05, Athul Acharya <aacharya@gmail.com> wrote:
> On 8/2/05, Athul Acharya <aacharya@gmail.com> wrote:
> > That is, I want to know whether the current cpu I (kernel code) am
> > executing on is hyperthreaded, and if so, which logical cpu represents
> > the other thread on chip.
>
> Trying again, as it seems like a simple thing that really should exist
> -- is_cpu_hyperthreaded(smp_processor_id()) -- or something similar.
> Anyone?
Is anyone receiving this? I should've mentioned in subsequent mails
(I did in the original) that I'm not subscribed so any replies need to
be cc'd to me :)
Athul
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-08-06 21:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-29 16:24 Determining if the current processor is Hyperthreaded Athul Acharya
2005-08-02 17:56 ` Bill Davidsen
2005-08-03 0:14 ` Athul Acharya
2005-08-05 13:45 ` Athul Acharya
2005-08-06 21:31 ` Athul Acharya
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox