Archive for July, 2009

S.M.A.R.T. data visualization

Today, I got worried about two consecutive changes of the ‘ECC Recovered Errors’ parameter reported by SMART on my desktop machine:

Device: /dev/disk/by-id/scsi-SATA_ST3200827AS_4ND2DF00, SMART Usage Attribute: 195 Hardware_ECC_Recovered changed from 67 to 66


Device: /dev/disk/by-id/scsi-SATA_ST3200827AS_4ND2DF00, SMART Usage Attribute: 195 Hardware_ECC_Recovered changed from 66 to 65

That prompted me to see if there have been any similar events recently. Two lines of shell script were more than enough to reassure me that nothing bad was going on:

grep ECC /var/log/messages | egrep -o 'from [[:digit:]]+' | cut -f2 -d' ' > data

And then with gnuplot:

gnuplot> plot 'data' with lines

I got this:


SMART values graph

SMART values graph

C++ static analysis

Yesterday I was looking for a free C++ static analysis tool that I could use on Wesnoth code base and found cppcheck. It’s actually quite nice and supports running tests in parallel (much appreciated quality in the increasingly multi-core world). I’m yet to compare it with other tools, but thanks to cppcheck I’ve already fixed this, this and this.

Sadly, compared to Java there are very few similar tools that support C++…