From owner-freebsd-bugs@FreeBSD.ORG Sat Sep 8 23:20:08 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB19A106564A for ; Sat, 8 Sep 2012 23:20:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C5DF48FC12 for ; Sat, 8 Sep 2012 23:20:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q88NK85d098618 for ; Sat, 8 Sep 2012 23:20:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q88NK8xJ098605; Sat, 8 Sep 2012 23:20:08 GMT (envelope-from gnats) Date: Sat, 8 Sep 2012 23:20:08 GMT Message-Id: <201209082320.q88NK8xJ098605@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Mark Johnston Cc: Subject: Re: kern/170627: Kernel memory leak when polling cpu temperature via coretemp kernel module. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mark Johnston List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Sep 2012 23:20:09 -0000 The following reply was made to PR kern/170627; it has been noted by GNATS. From: Mark Johnston 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