What do I log if I'm not sure about the compute lines?
Hello all!
Quick version: If I don't know the right values to plug into the "compute" line for voltages in sensors.conf, what should I log so that when I find out the right values, I can go back through the log and compute the voltages?
Long version:
At work, we build a product that has a rackmount Linux PC plugged into some other hardware. I've gotten lm-sensors to run on the PC, and I get the expected number of voltages, fan speeds, and temperatures. I even mostly believe the fan speeds and temperatures, but I'm not sure about some of the voltages; I'm not sure what scaling resistors the motherboard manufacturer is using. I can ask the manufacturer, and experience tells me that they will probably give me the right answer, but it takes a few rounds of emails to get there.
One copy of the system has to go in for several days' worth of environmental testing: hot, cold, humidity, etc. There is independent measurement and control of all this stuff, but it would be nice to know what the PC is seeing internally during all of this. The wrinkle is that I can configure the PC however I want, but once the test starts, I can't change the configuration. Of course, the test has to start a few days before I expect to get a good answer from the manufacturer about how the motherboard is wired.
I am assuming that it is possible to log the raw data, or the (possibly incorrectly-scaled) "cooked" data, and then go back later and correct the computation. I realize I probably won't be able to "replay" the wrong data through sensors; the correction will have to be done in a script or spreadsheet or something like that. (I can have the system under test copy the logged raw data to another computer during the test, so I can do computations on the other computer.)
So, the question: What values should I log so that I can do this? Should I have a null sensors.conf and log the output of sensors? Or should I put in sensors.conf compute lines that do nothing to the raw value (for instance, "compute in1 @*1, @*1") and log the output of sensors? Or should I maybe grab something directly out of /proc or /sys or somewhere?
Thanks for your help!
Matt Roberds
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] What do I log if I'm not sure about the compute
Hello all!
Related to the below question: At home, I run lm-sensors 3.1.0 on kernel 2.6.26. There are some entries below /sys/devices/platform for the it8716 chip on my motherboard. Do the "files" below this directory provide the same raw values that libsensors is using?
Thanks for your help!
Quoted 35 lines · Matt Roberds
Hello all!
Quick version: If I don't know the right values to plug into the "compute" line for voltages in sensors.conf, what should I log so that when I find out the right values, I can go back through the log and compute the voltages?
Long version:
At work, we build a product that has a rackmount Linux PC plugged into some other hardware. I've gotten lm-sensors to run on the PC, and I get the expected number of voltages, fan speeds, and temperatures. I even mostly believe the fan speeds and temperatures, but I'm not sure about some of the voltages; I'm not sure what scaling resistors the motherboard manufacturer is using. I can ask the manufacturer, and experience tells me that they will probably give me the right answer, but it takes a few rounds of emails to get there.
One copy of the system has to go in for several days' worth of environmental testing: hot, cold, humidity, etc. There is independent measurement and control of all this stuff, but it would be nice to know what the PC is seeing internally during all of this. The wrinkle is that I can configure the PC however I want, but once the test starts, I can't change the configuration. Of course, the test has to start a few days before I expect to get a good answer from the manufacturer about how the motherboard is wired.
I am assuming that it is possible to log the raw data, or the (possibly incorrectly-scaled) "cooked" data, and then go back later and correct the computation. I realize I probably won't be able to "replay" the wrong data through sensors; the correction will have to be done in a script or spreadsheet or something like that. (I can have the system under test copy the logged raw data to another computer during the test, so I can do computations on the other computer.)
Quoted 6 lines
So, the question: What values should I log so that I can do this? Should I have a null sensors.conf and log the output of sensors? Or should I put in sensors.conf compute lines that do nothing to the raw value (for instance, "compute in1 @*1, @*1") and log the output of sensors? Or should I maybe grab something directly out of /proc or /sys or somewhere?
Matt Roberds
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] What do I log if I'm not sure about the compute
In reply to Matt RoberdsHi Matt,
Quoted 4 lines · Matt Roberds
Related to the below question: At home, I run lm-sensors 3.1.0 on kernel 2.6.26. There are some entries below
/sys/devices/platformfor the it8716 chip on my motherboard. Do the "files" below this directory provide the same raw values that libsensors is using?
It's not only "the same raw values", libsensors is reading the values from exactly these files!
Signature · 7 lines
Jean Delvare http://khali.linux-fr.org/wishlist.html _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] What do I log if I'm not sure about the compute
In reply to Matt RoberdsHi Matt,
Sorry for the late answer. Given the specific timing of your project, I suspect it's too late, but maybe for next time...
Quoted 6 lines · Matt Roberds
Hello all!
Quick version: If I don't know the right values to plug into the "compute" line for voltages in sensors.conf, what should I log so that when I find out the right values, I can go back through the log and compute the voltages?
Out of curiosity, which monitoring chip is it? Not all chips require compute statements.
Quoted 20 lines
Long version:
At work, we build a product that has a rackmount Linux PC plugged into some other hardware. I've gotten lm-sensors to run on the PC, and I get the expected number of voltages, fan speeds, and temperatures. I even mostly believe the fan speeds and temperatures, but I'm not sure about some of the voltages; I'm not sure what scaling resistors the motherboard manufacturer is using. I can ask the manufacturer, and experience tells me that they will probably give me the right answer, but it takes a few rounds of emails to get there.
One copy of the system has to go in for several days' worth of environmental testing: hot, cold, humidity, etc. There is independent measurement and control of all this stuff, but it would be nice to know what the PC is seeing internally during all of this. The wrinkle is that I can configure the PC however I want, but once the test starts, I can't change the configuration. Of course, the test has to start a few days before I expect to get a good answer from the manufacturer about how the motherboard is wired.
Quoted 5 lines
I am assuming that it is possible to log the raw data, or the (possibly incorrectly-scaled) "cooked" data, and then go back later and correct the computation. I realize I probably won't be able to "replay" the wrong data through sensors; the correction will have to be done in a script or spreadsheet or something like that.
This is right, we currently don't have any way to point libsensors to fake data files. This might be interesting to implement in the future, either for cases like yours, or for a test suite.
Quoted 3 lines
(I can have the system
under test copy the logged raw data to another computer during the test, so I can do computations on the other computer.)
If you don't know the scaling factors, I suggest logging the raw data. It's always easier to go from raw data to cooked data than the other way around. If OTOH you are almost certain your compute statements are good, logging the cooked values make sense.
Note that sensord, the daemon that comes with lm-sensors, may well be suited for the task. It can log all values in a RRD database, and then display the values as nice charts.
Quoted 5 lines
So, the question: What values should I log so that I can do this? Should I have a null sensors.conf and log the output of sensors? Or should I put in sensors.conf compute lines that do nothing to the raw value (for instance, "compute in1 @*1, @*1") and log the output of sensors?
This is equivalent: "compute in1 @*1, @*1" is a no-op, as you found out yourself. The easiest IMHO is:
sensors -c /dev/null
Quoted 2 lines
Or should I maybe grab something directly out of /proc or
/sys or somewhere?
Grabbing the raw values from /sys/class/hwmon has the advantage that it is much easier to feed into a spreadsheet or scripts for post-processing. The output of "sensors" is more tedious to parse. But you'll need a custom script to do the former. All in all it really depends on what you intend to do with the collected data.
Signature · 7 lines
Jean Delvare http://khali.linux-fr.org/wishlist.html _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] What do I log if I'm not sure about the compute
In reply to Matt RoberdsQuoted 2 lines · Jean Delvare
Given the specific timing of your project, I suspect it's too late, but maybe for next time...
It's actually working out well. We haven't run a system through the thermal chamber yet, so this info will come in handy. I also haven't asked the motherboard manufacturer yet; I'm 80% sure that the first few rounds will consist of "Just use the handy Windows monitoring utility" and I don't feel like explaining it at the moment. :)
Quoted 2 lines
Out of curiosity, which monitoring chip is it? Not all chips require compute statements.
sensors-detect says "Winbond W83627EHF/EHG Super IO Sensors" at 0x290, driver w83627ehf . (Note that this is lm-sensors 2.x; I have to use the packaged version that is already on the machine.) I haven't opened up the case to see what chip is actually there, but this driver provides plausible results so far.
Quoted 3 lines
Grabbing the raw values from
/sys/class/hwmonhas the advantage that it is much easier to feed into a spreadsheet or scripts for post-processing. The output of "sensors" is more tedious to parse.
I already worked up a really simple script to grep out what I wanted from the "sensors" output and hack it into a one-line-per-reading CSV format, but it may not have been very robust in the face of things like alarm warnings. I have enough disk that I _could_ just log the straight "sensors" output to timestamped files, or to one big file with timestamps in it, and then process the whole thing later.
Thanks!
Matt Roberds
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Re: [lm-sensors] What do I log if I'm not sure about the compute
In reply to Matt RoberdsHi Matt,
Quoted 9 lines · Matt Roberds
Quoted 2 lines · Jean Delvare
Out of curiosity, which monitoring chip is it? Not all chips require compute statements.
sensors-detect says "Winbond W83627EHF/EHG Super IO Sensors" at
0x290, driver w83627ehf . (Note that this is lm-sensors 2.x; I have to use the packaged version that is already on the machine.) I haven't opened up the case to see what chip is actually there, but this driver provides plausible results so far.
The Winbond W83627EHF/EHG Super-I/O detection is fairly reliable, so if sensors-detect says this is what you have, I'd trust that.
This chip has no internal voltage scalers and thus indeed needs external resistors and matching compute statements in your configuration file. That being said, many voltages are taken from the chip's own power supplies rather than dedicated pins, so these are always correct:
label in2 "AVCC"
label in3 "VCC"
label in7 "3VSB"
label in8 "Vbat"
set in2_min 3.3 * 0.90
set in2_max 3.3 * 1.10
set in3_min 3.3 * 0.90
set in3_max 3.3 * 1.10
set in7_min 3.3 * 0.90
set in7_max 3.3 * 1.10
set in8_min 3.0 * 0.90
set in8_max 3.0 * 1.10And in all cases I've seen in0 is used for the CPU Vcore. This only leaves you with in1, in4, in5, in6 and in9 to discover the mapping and scaling factors thereof, and odds are that these include at least +5V and +12V, and possibly 5VSB and Vdimm that need scaling. The rest (e.g. Vagp) wouldn't need scaling. If your BIOS displays voltage values it shouldn't be too hard to find out +5V and +12V.
Signature · 7 lines
Jean Delvare http://khali.linux-fr.org/wishlist.html _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors