From owner-freebsd-stable Thu Aug 30 7:51:45 2001 Delivered-To: freebsd-stable@freebsd.org Received: from peace.mahoroba.org (peace.calm.imasy.or.jp [202.227.26.34]) by hub.freebsd.org (Postfix) with ESMTP id ECD6F37B405 for ; Thu, 30 Aug 2001 07:51:38 -0700 (PDT) (envelope-from ume@mahoroba.org) Received: from localhost (IDENT:JQHfl4C9HvuEMq8efFb89QVPY7ALZ/rcBXZcT47tOnJI7BXWYcTp2v5rZUiE+MWY@localhost [::1]) (authenticated as ume with CRAM-MD5) by peace.mahoroba.org (8.11.6/8.11.6/peace) with ESMTP/inet6 id f7UEol510538; Thu, 30 Aug 2001 23:50:47 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Thu, 30 Aug 2001 23:50:43 +0900 (JST) Message-Id: <20010830.235043.28861473.ume@mahoroba.org> To: mwm@mired.org Cc: varju@webct.com, stable@freebsd.org Cc: ume@mahoroba.org Subject: Re: Freezes in 4.4RC on SMP Kernel and gkrellm From: Hajimu UMEMOTO In-Reply-To: <15246.19717.31335.194978@guru.mired.org> References: <15245.51106.120852.616240@guru.mired.org> <20010830.222356.125820097.ume@mahoroba.org> <15246.19717.31335.194978@guru.mired.org> X-Mailer: xcite1.38> Mew version 1.95b119 on Emacs 20.7 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-PGP-Public-Key: http://www.imasy.org/~ume/publickey.asc X-PGP-Fingerprint: 6B 0C 53 FC 5D D0 37 91 05 D0 B3 EF 36 9B 6A BC X-URL: http://www.imasy.org/~ume/ X-Operating-System: FreeBSD 5.0-CURRENT Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >>>>> On Thu, 30 Aug 2001 09:26:13 -0500 >>>>> Mike Meyer said: mwm> Well, if I leave gkrellm off, the system doesn't freeze. I'm not sure mwm> what the exact cause is, but it seems to be related to mwm> plugins. What plugins are you using? Did you try disabling plugin from Plugin tab? > mwm> From looking over gkrellm's code, it assumes that any smb device it > mwm> finds is the one it knows about - and proceeds to try and extract data > mwm> from it. This seems like a bad idea - at least in this case. > Yes, it is dirty. However, I have no idea to distinguish if smb is > mapped to initpm. I wish to fix it. Is there any way to do it? mwm> Well, it's possible, because healthd does it. But I think that's the mwm> wrong fix. Okay, thanks. > mwm> gkrellm also has the problem that it initializes every monitor it > mwm> knows about, even if that one isn't being displayed. Without the smb > mwm> devices, it uses /dev/io, and that's left open so that gkrellm can > mwm> lower it's privileges after opening the file. This means bugs in other > mwm> modules could stroke /dev/io in some strange way - and I believe > mwm> that's the root cause of the freezes I'm seeing. > I wish to have a generic method to obtain temperature, fan speed and > voltage without any extra privilege. mwm> The approach I've been looking at is to replace the sensors builtin mwm> with a plugin that access healthd - except I think the problems may be mwm> related to plugins :-(. Oh, it's better. mwm> Healthd handles different smb interfaces better, in that it doesn't mwm> crash the system. It's more accurate, if for nothing else because it mwm> knows the factor/offset numbers for the different chips, and uses mwm> those directly. There appears to be a systematic error reading mwm> voltages 2.4% low in the FreeBSD code in sensors.c as well, but I'm mwm> not sure which one of the two is wrong. Finally, it handles more chip mwm> types than the sensors.c code does. mwm> For instance, I get two temperatures - one per CPU - out of healthd, mwm> and I can't see a sane way to do that in the sensors module. Umm, I have no machines which have LM78/79 feature now. So, I cannot test sensor module by myself. X-( > mwm> I've installed gkrellm WITHOUT_SENSOR=yes - which sgid instead of suid > mwm> - and enabled all the things that I had on when the system was > mwm> freezing before, except the sensors. > I'll turn sensor support off by default for workaround. mwm> I'm not sure that solves the problem. I still got freezes when mwm> installing it WITHOUT_SENSOR=yes. Really? I think GKrellM cannot access /dev/smb* nor /dev/io in this case. -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message