* [9fans] /dev/cputemp
@ 2014-05-27 21:57 Jessica Yu
2014-05-27 22:07 ` erik quanstrom
0 siblings, 1 reply; 3+ messages in thread
From: Jessica Yu @ 2014-05-27 21:57 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Just curious, is this not a thing in the nix kernel? grep'd the nix
sources and it didn't seem to be in devarch.c, it's in 9/pc/ though;
is there another way to grab cpu temp?
I ask because there seems to be a significant temperature change on my
test machine between the old nix kernel and some of the new scheduler
changes, although I wanted some numbers to back that observation (or
maybe I'm imagining things!). Not a super big deal but just something
I was just curious about. :-)
Jessica
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] /dev/cputemp
2014-05-27 21:57 [9fans] /dev/cputemp Jessica Yu
@ 2014-05-27 22:07 ` erik quanstrom
0 siblings, 0 replies; 3+ messages in thread
From: erik quanstrom @ 2014-05-27 22:07 UTC (permalink / raw)
To: 9fans
On Tue May 27 17:59:41 EDT 2014, jyu@cowsay.org wrote:
> Just curious, is this not a thing in the nix kernel? grep'd the nix
> sources and it didn't seem to be in devarch.c, it's in 9/pc/ though;
> is there another way to grab cpu temp?
>
> I ask because there seems to be a significant temperature change on my
> test machine between the old nix kernel and some of the new scheduler
> changes, although I wanted some numbers to back that observation (or
> maybe I'm imagining things!). Not a super big deal but just something
> I was just curious about. :-)
yes, i did not bring cputemp into the nix kernel because i thought the code
was ugly, and the temperatures were not necessarly accurate. but if you want
to pull it in, that would be fine.
- erik
^ permalink raw reply [flat|nested] 3+ messages in thread
* [9fans] /dev/cputemp
@ 2008-11-05 0:36 erik quanstrom
0 siblings, 0 replies; 3+ messages in thread
From: erik quanstrom @ 2008-11-05 0:36 UTC (permalink / raw)
To: 9fans
i dug out the code i wrote some time ago to read cpu
temperature (or the closest stand in for it i could find)
on most modern amd and intel processors. it's wrapped
up with a change to extend the model macro so that
conroe l processors don't appear to be xeons.
/n/sources/contrib/quanstro/src/9/pc/^(cpuid0.s dat.h devarch.c io.h)
you'll need to add cpuid0.s to l.s.
here's how it works. minooka obviously has two processors:
minooka; cat /dev/cputemp
32±1
31±1
- erik
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-27 22:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-27 21:57 [9fans] /dev/cputemp Jessica Yu
2014-05-27 22:07 ` erik quanstrom
-- strict thread matches above, loose matches on Subject: below --
2008-11-05 0:36 erik quanstrom
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).