From: Alex S. <ml...@os...> - 2010-02-19 10:29:34
|
Sandon Van Ness wrote: > I am trying to monitor the disk temps on my raid array but the problem I > am seeing is that smartctl takes a long time to run: > I think its normal behavior. You may run strace -r smarctl <args> which calls are time expensive. But question is if you really need to poll temperature every minute? :) > # time smartctl -A -d areca,8 /dev/sg4 | grep -i temp > 190 Airflow_Temperature_Cel 0x0022 069 053 045 Old_age > Always - 31 (Lifetime Min/Max 24/32) > 194 Temperature_Celsius 0x0022 031 047 000 Old_age > Always - 31 (0 21 0 0) > > real 0m0.502s > user 0m0.020s > sys 0m0.340s > > Sure .5s might not seem like much but this really adds up if you are > polling say 20 drives and you want to poll them every minute. It also > causes a lot of CPU usage on the machine just for polling temps. Is > there anyway to poll just the temp (no other values) or anything else I > can do to try to speeds this up and thus lower the amount of resources > it takes to monitor my disks? > > It seems like some of this is specific with my areca controller as > running this command on another machine of mine runs much quicker: > > myth ~ # time smartctl -A -d ata /dev/sdb | grep -i temp > 194 Temperature_Celsius 0x0022 035 066 000 Old_age > Always - 35 (Lifetime Min/Max 0/22) > > real 0m0.143s > user 0m0.008s > sys 0m0.000s > > > And it takes almost no %sys time. I have verified this slow and high CPU > usage behavior on two machines (one using an ARC-1231 and the other an > ARC-1280). > > Any suggestions would be appreciated. > > Thanks! > Sandon > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Smartmontools-support mailing list > Sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartmontools-support > > |