brintos

brintos / linux-shallow public Read only

0
0
Text · 1.7 KiB · 4579498 Raw
51 lines · plain
1TMON - A Monitoring and Testing Tool for Linux kernel thermal subsystem2 3Why TMON?4==========5Increasingly, Linux is running on thermally constrained devices. The simple6thermal relationship between processor and fan has become past for modern7computers.8 9As hardware vendors cope with the thermal constraints on their products, more10and more sensors are added, new cooling capabilities are introduced. The11complexity of the thermal relationship can grow exponentially among cooling12devices, zones, sensors, and trip points. They can also change dynamically.13 14To expose such relationship to the userspace, Linux generic thermal layer15introduced sysfs entry at /sys/class/thermal with a matrix of symbolic16links, trip point bindings, and device instances. To traverse such17matrix by hand is not a trivial task. Testing is also difficult in that18thermal conditions are often exception cases that hard to reach in19normal operations.20 21TMON is conceived as a tool to help visualize, tune, and test the22complex thermal subsystem.23 24Files25=====26	tmon.c : main function for set up and configurations.27	tui.c : handles ncurses based user interface28	sysfs.c : access to the generic thermal sysfs29	pid.c : a proportional-integral-derivative (PID) controller30	that can be used for thermal relationship training.31 32Requirements33============34Depends on ncurses35 36Build37=========38$ make39$ sudo ./tmon -h40Usage: tmon [OPTION...]41  -c, --control         cooling device in control42  -d, --daemon          run as daemon, no TUI43  -l, --log             log data to /var/tmp/tmon.log44  -h, --help            show this help message45  -t, --time-interval   set time interval for sampling46  -v, --version         show version47  -g, --debug           debug message in syslog48 491. For monitoring only:50$ sudo ./tmon51