kern/170627: Kernel memory leak when polling cpu temperature via
coretemp kernel module.
Mark Johnston
markjdb at gmail.com
Sat Sep 8 23:20:09 UTC 2012
The following reply was made to PR kern/170627; it has been noted by GNATS.
From: Mark Johnston <markjdb at gmail.com>
To: bug-followup at FreeBSD.org, adscomplex at gmail.com
Cc:
Subject: Re: kern/170627: Kernel memory leak when polling cpu temperature via
coretemp kernel module.
Date: Sat, 8 Sep 2012 19:16:32 -0400
Hi Max,
Why do you think that coretemp is causing the memory leak? As far as I
can see, polling the coretemp sysctls shouldn't cause any memory to be
allocated at all - coretemp basically just reads a bunch of MSRs. Just
for fun, I tried running something like
while true; do
for n in $(jot - 0 $(sysctl -n hw.ncpu)); do
sysctl -q dev.cpu.${n}.temperature >/dev/null 2>&1
sysctl -q dev.cpu.${n}.coretemp >/dev/null 2>&1
done
done
for a few hours and didn't see any problems.
What panic are you getting? How exactly are polling the temperature
sensors - which sysctls are you reading?
Thanks,
-Mark
More information about the freebsd-bugs
mailing list