Re: Patch and Upstart file for healthd.sh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux