[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lm-sensors
Subject:    Re: [lm-sensors] Patch and Upstart file for healthd.sh
From:       Jean Delvare <jdelvare () suse ! de>
Date:       2015-02-28 14:45:41
Message-ID: 20150228154541.31339f5c () endymion ! delvare
[Download RAW message or body]

On Sat, 28 Feb 2015 11:00:33 +0100, Jean Delvare wrote:
> On Fri, 27 Feb 2015 02:31:52 +0300, vbooh wrote:
> > A patch is for a decreasing of the resource consumption by healthd.sh; it \
> > replaces the external commands with the built-in Bash commands. It did not make a \
> > huge difference, but it was still useful in my case.
> 
> This is a sane goal, in fact we did similar changes to fancontrol some
> times ago for the same reason. Patch committed, thanks for your
> contribution. The read trick is very nice, I didn't know about it, I'll
> probably do the same in fancontrol as well as the current
> implementation was reported to cause problems.

Err, did you check the CPU consumption after applying your changes? I
did similar changes to fancontrol and it results in an increased CPU
consumption (37% of one CPU, compared to 0.3% before the changes) when
fancontrol is started as a daemon by systemd. Strangely I do not
observe this when running the script manually. I suppose "read" is
angry if stdin is closed :(

-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic