Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I work on a product that is a headless Debian Linux system with removable Intel X-25M solid state drives. Recently we noticed that the read/write performance of these drives degrades over time, and sure enough the culprit was SSD block problems, as described here. So we did a secure erase of the SSD drive (as described here) and the SSD drives' performance is restored to its original/factory level.

Which is great, but what I'm wondering now is if there is some quick-and-easy way to query hdparm (or some other Linux shell command) so it will print out an indication of how badly degraded the SSD's block-structure currently is. If so, then I could add some logic to my own program to automatically notify the user when a secure-erase would significantly improve his system's performance. As it is, the user just has to sort of guess based on observed I/O performance compared to what it was previously... which isn't the end of the world, but it would be nicer if he just got a warning message "your data SSD is currently 35% scrambled, consider doing a secure-erase to get better SSD performance", or something like that.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Why don't you dig through SMART indicators for harddrive.

smartctl -data -A /dev/sda

It will definitely give you indicators

Again, have considered SSD optimization tweaks in linux

SSD TWEAKS FOR LINUX

share|improve this answer
    
you can install smartctl with "apt-get install smartmontools" –  kaji Jan 12 '12 at 3:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.