Mondo: problem with as99127f-i2c-2d
After my signature is Kelledin's response to a problem report about mondo. From what he says it may actually be some sort of problem with I2C/lm_sensors instead. Have you folks seen this before? This particular type of glitch seems to happen only once very few hours - but since it shuts down the system when it occurs, that's way too often. Right now running a very long logging session to see if I can catch one again.
Thanks,
David Mathog
[email protected]
Manager, Sequence Analysis Facility, Biology Division, Caltech
------------- Forwarded message follows -------------
Quoted 12 lines · you
I've discovered another bug, this one really problematic. I set up my mondo.conf file and then after a while the system shut down claiming the CPU had overheated. But I was sitting right there and got straight into the BIOS hardware monitor and it showed the temp was ok. So I changed the mondo.conf to just emit warnings instead of shutting down. After an hour or so it claimed the fan was running too slow, but again, I was sitting right there, and within seconds had run sensors, which showed the fan speed to be ok.
Quoted 7 lines
Then I looked at
/var/log/messages, and it said that the temp when it had overheaded had been 255.40 and the fan speed
had been 0.0. That's obviously nonsense. I think maybe
what's happening here is that mondo is reading the proc files just as they're being updated, and so reads an invalid value. Is there any file locking employed? Have you seen this before?
Yikes! Now that's something I've never seen before...
As for file locking, mondo never accesses the files in /proc directly. It simply calls the lm_sensors library routines, and these routines should take care of any syscalls, file locking, etc. in whatever manner they think best.
Here's an idea: run mondo-setup with the -l option, so mondo performs logging even if sensor states don't reach an alarm condition. Let mondo run for some ten minutes, then "grep mondo /var/log/messages > mondo.log". Then send the resulting "mondo.log" file to me, so I can see what exactly happens (the contents might be useful to you too). It would also be a good idea to send me the mondo.conf file that mondo-setup spits out (before editing it manually to adjust limits).
Another idea: if possible, switch the system to using the ISA bus, rather than the i2c bus, for reading sensors. ISA is supposed to be a bit faster, and it's possible that this board produces more reliable readings this way.
Yet another idea: if possible, say "screw it" to the ASUS monitor chip and try using the via686a driver instead. The stuff I'm reading in the default sensors.conf file suggests that the as99127f driver might not be all that trustworthy (due to Asus not releasing specs like a good Linux-friendly company should).
Even if using the via686a driver solves your problem, it's probably a good idea to generate the mondo.log file (see above) so we'll have something to show the lm_sensors developers. This may be a bug in lm_sensors, or just a bug in the Asus as99127f chip itself. In either case, the lm_sensors team should know about it.
Signature · 3 lines
Kelledin "If a server crashes in a server farm and no one pings it, does it still cost four figures to fix?"
Quoted 13 lines · you
In any case, this indicates that the problem I'm seeing is not in mondo, but is a bug either in i2c/lm_sensors or conceivably, at the bios or hardware level in the A7V266E motherboard. However I don't think it's hardware - motherboard monitor runs on these machines when they are booted to XP and I've not seen any oddball shutdowns under that OS. In one instance there was an xlock authentication failure 4 seconds before fan1 read 0.0. Other than that, there was nothing obvious to indicate a problem
/var/log/messages. Note though that xlock was running continuously most of this time (due to the idle console), and cycling through whichever programs it runs by default. This is xlockmore -4.17.2.
Quoted 8 lines
This presents somewhat of a problem since it means running mondo in a protective mode will trigger unwanted shutdowns at 1-2 hour intervals (more or less). Unfortunately for this class of software 99.99% correct doesn't quite do it.
Any suggestions? This is with RH 7.3 and the current distribution of I2c/lm_sensors. The device is as99127f-i2c-0-2d.
Hmmm...yup, as99127f support is listed as BETA in the docs. We have Asus to thank for that. =/ Perhaps Alex van Kaam (Motherboard Monitor developer) could help us here; IIRC he's contributed to lm_sensors in the past.
In the meantime...
After casting my marginally-experienced-kernel-hacker's eye over the lm_sensors sources, I think I might have spotted a fix for the fan issue.
The standard caveats apply; this patch may save your bacon, or it may take you from the frying pan into the fire. I will not be responsible for any damage this does to your computer, your health, your sanity, or any of your friends, family, neighbors, or other possessions. ;)
All that being said, just cd to your lm_sensors source directory and type "patch -p1 < /path/to/lm_sensors-2.6.4-asus.patch". Then recompile and reinstall lm_sensors.
I haven't tried to fix the temp issue--yet. It looks a little more difficult, and that job's probably better suited to a developer with appropriate hardware to test on.
--
Kelledin
"If a server crashes in a server farm and no one pings it, does
it still cost four figures to fix?"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lm_sensors-2.6.4-asus.patch
Type: text/x-diff
Size: 1546 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20020910/2008d328/lm_sensors-2.6.4-asus.bin
Fan counters (which get higher the slower the fan is) generally saturate at 255 so I doubt your patch is correct, you'll never see a stopped fan. You may need to increase your fan divisors (I think they work on as99127f, can't remember) - see doc/fan-divisors in our package for details.
Stop your fan and test the patch to see for yourself.
Not familiar with mondo but if it shuts down the whole system based on one reading that may be a little drastic, espcecially if you are relying on an undocumented chip :)
You can try periodically running i2cdump in our package as another diagnostic. This bypasses the w83781d driver and you can see if you are getting bad readings from the chip or from the driver.
mds
Quoted 58 lines · Kelledin
Quoted 13 lines · you
In any case, this indicates that the problem I'm seeing is not in mondo, but is a bug either in i2c/lm_sensors or conceivably, at the bios or hardware level in the A7V266E motherboard. However I don't think it's hardware - motherboard monitor runs on these machines when they are booted to XP and I've not seen any oddball shutdowns under that OS. In one instance there was an xlock authentication failure 4 seconds before fan1 read 0.0. Other than that, there was nothing obvious to indicate a problem
/var/log/messages. Note though that xlock was running continuously most of this time (due to the idle console), and cycling through whichever programs it runs by default. This is xlockmore -4.17.2.Quoted 8 lines
This presents somewhat of a problem since it means running mondo in a protective mode will trigger unwanted shutdowns at 1-2 hour intervals (more or less). Unfortunately for this class of software 99.99% correct doesn't quite do it.
Any suggestions? This is with RH 7.3 and the current distribution of I2c/lm_sensors. The device is as99127f-i2c-0-2d.
Hmmm...yup, as99127f support is listed as BETA in the docs. We have Asus to thank for that. =/ Perhaps Alex van Kaam (Motherboard Monitor developer) could help us here; IIRC he's contributed to
lm_sensorsin the past.In the meantime...
After casting my marginally-experienced-kernel-hacker's eye over the
lm_sensorssources, I think I might have spotted a fix for the fan issue.The standard caveats apply; this patch may save your bacon, or it may take you from the frying pan into the fire. I will not be responsible for any damage this does to your computer, your health, your sanity, or any of your friends, family, neighbors, or other possessions. ;)
All that being said, just cd to your
lm_sensorssource directory and type "patch -p1 < /path/to/lm_sensors-2.6.4-asus.patch". Then recompile and reinstalllm_sensors.I haven't tried to fix the temp issue--yet. It looks a little more difficult, and that job's probably better suited to a developer with appropriate hardware to test on.
--
Kelledin
"If a server crashes in a server farm and no one pings it, does it still cost four figures to fix?"Name: lm_sensors-2.6.4-asus.patchlm_sensors-2.6.4-asus.patch Type: text/x-diff
Encoding: 7bit
Quoted 19 lines
Quoted 11 lines
I've discovered another bug, this one really problematic. I set up my mondo.conf file and then after a while the system shut down claiming the CPU had overheated. But I was sitting right there and got straight into the BIOS hardware monitor and it showed the temp was ok. So I changed the mondo.conf to just emit warnings instead of shutting down. After an hour or so it claimed the fan was running too slow, but again, I was sitting right there, and within seconds had run sensors, which showed the fan speed to be ok.
Quoted 7 lines
Then I looked at
/var/log/messages, and it said that the temp when it had overheaded had been 255.40 and the fan speed
had been 0.0. That's obviously nonsense. I think maybe
what's happening here is that mondo is reading the proc files just as they're being updated, and so reads an invalid value. Is there any file locking employed? Have you seen this before?
Quoted 2 lines
Yikes! Now that's something I've never seen before...
I followed Kelledin's advice and ran mondo with logging turned on for a long time. After about 1.5 hours it logged 3 cases of fan1 at 0.0, these were single instances roughly 4-6 minutes apart. I also had mondo do:
sensors | logger
on fan warnings and these showed that sensors also read
the fan as 0.0 at that point in time. I have not yet seen the
CPU temp glitch again.
In any case, this indicates that the problem I'm seeing is not in mondo, but is a bug either in i2c/lm_sensors or conceivably, at the bios or hardware level in the A7V266E motherboard. However I don't think it's hardware - motherboard monitor runs on these machines when they are booted to XP and I've not seen any oddball shutdowns under that OS. In one instance there was an xlock authentication failure 4 seconds before fan1 read 0.0. Other than that, there was nothing obvious to indicate a problem /var/log/messages. Note though that xlock was running continuously most of this time (due to the idle console), and cycling through whichever programs it runs by default. This is xlockmore -4.17.2.
This presents somewhat of a problem since it means running mondo in a protective mode will trigger unwanted shutdowns
at 1-2 hour intervals (more or less). Unfortunately for this class of software 99.99% correct doesn't quite do it.
Any suggestions? This is with RH 7.3 and the current distribution of I2c/lm_sensors. The device is as99127f-i2c-0-2d.
Thanks,
David Mathog
[email protected]
Manager, Sequence Analysis Facility, Biology Division, Caltech
Kelledin asked me to forward this to you folks. He says he sent it but its stuck in some mail queue.
Regards,
David Mathog
[email protected]
Manager, Sequence Analysis Facility, Biology Division, Caltech
------------- Forwarded message follows -------------
Quoted 13 lines · you
In any case, this indicates that the problem I'm seeing is not in mondo, but is a bug either in i2c/lm_sensors or conceivably, at the bios or hardware level in the A7V266E motherboard. However I don't think it's hardware - motherboard monitor runs on these machines when they are booted to XP and I've not seen any oddball shutdowns under that OS. In one instance there was an xlock authentication failure 4 seconds before fan1 read 0.0. Other than that, there was nothing obvious to indicate a problem
/var/log/messages. Note though that xlock was running continuously most of this time (due to the idle console), and cycling through whichever programs it runs by default. This is xlockmore -4.17.2.
Quoted 8 lines
This presents somewhat of a problem since it means running mondo in a protective mode will trigger unwanted shutdowns at 1-2 hour intervals (more or less). Unfortunately for this class of software 99.99% correct doesn't quite do it.
Any suggestions? This is with RH 7.3 and the current distribution of I2c/lm_sensors. The device is as99127f-i2c-0-2d.
Hmmm...yup, as99127f support is listed as BETA in the docs. We have Asus to thank for that. =/ Perhaps Alex van Kaam (Motherboard Monitor developer) could help us here; IIRC he's contributed to lm_sensors in the past.
In the meantime...
After casting my marginally-experienced-kernel-hacker's eye over the lm_sensors sources, I think I might have spotted a fix for the fan issue.
The standard caveats apply; this patch may save your bacon, or it may take you from the frying pan into the fire. I will not be responsible for any damage this does to your computer, your health, your sanity, or any of your friends, family, neighbors, or other possessions. ;)
All that being said, just cd to your lm_sensors source directory and type "patch -p1 < /path/to/lm_sensors-2.6.4-asus.patch". Then recompile and reinstall lm_sensors.
I haven't tried to fix the temp issue--yet. It looks a little more difficult, and that job's probably better suited to a developer with appropriate hardware to test on.
--
Kelledin
"If a server crashes in a server farm and no one pings it, does it still cost four figures to fix?"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lm_sensors-2.6.4-asus.patch
Type: text/x-diff
Size: 1547 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20020911/ccd44407/lm_sensors-2.6.4-asus.bin