Date: Sat, 8 Sep 2012 23:20:08 GMT From: Mark Johnston <markjdb@gmail.com> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/170627: Kernel memory leak when polling cpu temperature via coretemp kernel module. Message-ID: <201209082320.q88NK8xJ098605@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/170627; it has been noted by GNATS.
From: Mark Johnston <markjdb@gmail.com>
To: bug-followup@FreeBSD.org, adscomplex@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209082320.q88NK8xJ098605>
