[opensuse-project] openSUSE 11.3, disk expert needed (SSD + hdparm/wiper.sh error: /usr/sbin/rdev needed but not found)
I'd like to ask for feedback. How do you treat your SSD running openSUSE 11.3? By now it is recommended (http://en.opensuse.org/SDB:SSD_discard_%28trim%29_support) to run wiper.sh for discarding free space weekly. This is at least true as long there's no native TRIM-support which is compatible to modern SSDs. openSUSE 11.3 is shipping with hdparm updated to version 9.36. The script /sbin/wiper.sh is included there. Am I the only one experiencing this error: wiper.sh: Linux SATA SSD TRIM utility, version 3.1, by Mark Lord. wiper.sh: This tool is DANGEROUS! Please read and understand wiper.sh: /usr/share/doc/packages/hdparm/README.wiper wiper.sh: before going any further. /usr/sbin/rdev: needed but not found, aborting. How do you deal with it? rdev (as far as I understand) doesn't come with openSUSE anymore. Additionally it does only return the name of the root device "/dev/sdXX". Possible solution: Add the following two lines at line 260 of /sbin/wiper.sh (in diff): 261,262d260 < elif [ "$RDEV" == "" -a `$GAWK '{if ($2 ~ /^\/$/) print $1}' /etc/mtab` != "" ]; then < rootdev=`$GAWK '{if ($2 ~ /^\/$/) print $1}' /etc/mtab` ## openSUSE This will make the script reading root device from /etc/mtab. I only tried to run the script in dry mode. Is there any harm with that solution? Should I go real with it? I guess it's only a minor issue. Btw if it's of any interested: I own a OCZ Vertex 2 Extended. I tried to bring this upstream. But the bug tracker on hdparm.sourceforge.net doesn't look like very much populated... Greetings Johannes -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
(Intentional top post)
Johannes,
openSUSE 11.3 has hdparm 9.28.
I don't know where you got 9.36, but it is not supported for 11.3
It is in factory, but I have not had a chance to test that yet.
Greg
On Wed, Jan 12, 2011 at 11:29 AM, Johannes Nohl
I'd like to ask for feedback. How do you treat your SSD running openSUSE 11.3? By now it is recommended (http://en.opensuse.org/SDB:SSD_discard_%28trim%29_support) to run wiper.sh for discarding free space weekly. This is at least true as long there's no native TRIM-support which is compatible to modern SSDs.
openSUSE 11.3 is shipping with hdparm updated to version 9.36. The script /sbin/wiper.sh is included there. Am I the only one experiencing this error:
wiper.sh: Linux SATA SSD TRIM utility, version 3.1, by Mark Lord. wiper.sh: This tool is DANGEROUS! Please read and understand wiper.sh: /usr/share/doc/packages/hdparm/README.wiper wiper.sh: before going any further. /usr/sbin/rdev: needed but not found, aborting.
How do you deal with it? rdev (as far as I understand) doesn't come with openSUSE anymore. Additionally it does only return the name of the root device "/dev/sdXX".
Possible solution: Add the following two lines at line 260 of /sbin/wiper.sh (in diff):
261,262d260 < elif [ "$RDEV" == "" -a `$GAWK '{if ($2 ~ /^\/$/) print $1}' /etc/mtab` != "" ]; then < rootdev=`$GAWK '{if ($2 ~ /^\/$/) print $1}' /etc/mtab` ## openSUSE
This will make the script reading root device from /etc/mtab.
I only tried to run the script in dry mode. Is there any harm with that solution? Should I go real with it? I guess it's only a minor issue. Btw if it's of any interested: I own a OCZ Vertex 2 Extended.
I tried to bring this upstream. But the bug tracker on hdparm.sourceforge.net doesn't look like very much populated...
Greetings Johannes -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
-- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer CNN/TruTV Aired Forensic Imaging Demo - http://insession.blogs.cnn.com/2010/03/23/how-computer-evidence-gets-retriev... The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
On Wed, Jan 12, 2011 at 05:29:58PM +0100, Johannes Nohl wrote:
I'd like to ask for feedback. How do you treat your SSD running openSUSE 11.3?
Like a normal disk, not worrying about any TRIM crud or anything else like that. You should not have to ever send those types of commands to the disk unless you feel like potentially causing problems :) good luck, greg k-h -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
2011/1/12 Greg KH
On Wed, Jan 12, 2011 at 05:29:58PM +0100, Johannes Nohl wrote:
I'd like to ask for feedback. How do you treat your SSD running openSUSE 11.3?
Like a normal disk, not worrying about any TRIM crud or anything else like that. You should not have to ever send those types of commands to the disk unless you feel like potentially causing problems :)
Great, but why does http://en.opensuse.org/SDB:SSD_discard_%28trim%29_support suggest to use a tool like wiper.sh then? I would prefer to not interact with the disk by intention at all.
good luck,
Usually "good luck" is going together with "as I told you before" :) Hm. I can't estimate the risk of such disk related stuff... So I will wait until the disk really slows down. Thanks -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
On Wed, Jan 12, 2011 at 06:33:26PM +0100, Johannes Nohl wrote:
2011/1/12 Greg KH
: On Wed, Jan 12, 2011 at 05:29:58PM +0100, Johannes Nohl wrote:
I'd like to ask for feedback. How do you treat your SSD running openSUSE 11.3?
Like a normal disk, not worrying about any TRIM crud or anything else like that. You should not have to ever send those types of commands to the disk unless you feel like potentially causing problems :)
Great, but why does http://en.opensuse.org/SDB:SSD_discard_%28trim%29_support suggest to use a tool like wiper.sh then? I would prefer to not interact with the disk by intention at all.
I do not know at all. But realize, these disks are designed to work in systems that do not have TRIM support at all in them (i.e. some other operating system), so not running these commands on your Linux system is just fine. thanks, greg k-h -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
On Wed, Jan 12, 2011 at 12:43 PM, Greg KH
On Wed, Jan 12, 2011 at 06:33:26PM +0100, Johannes Nohl wrote:
2011/1/12 Greg KH
: On Wed, Jan 12, 2011 at 05:29:58PM +0100, Johannes Nohl wrote:
I'd like to ask for feedback. How do you treat your SSD running openSUSE 11.3?
Like a normal disk, not worrying about any TRIM crud or anything else like that. You should not have to ever send those types of commands to the disk unless you feel like potentially causing problems :)
Great, but why does http://en.opensuse.org/SDB:SSD_discard_%28trim%29_support suggest to use a tool like wiper.sh then? I would prefer to not interact with the disk by intention at all.
I do not know at all. But realize, these disks are designed to work in systems that do not have TRIM support at all in them (i.e. some other operating system), so not running these commands on your Linux system is just fine.
thanks,
greg k-h
Greg, Windows 7 has near real-time trim support and lots of laptops run that by now. A kernel developer traced windows 7 with a SATA bus analyzer to see if Windows 7 was doing the same thing as the linux kernel or not. I believe to his surprise, Windows 7 was more sophisticated in its handling. As to linux kernel's "mount --discard" implementation, it is highly non-optimized and has no real world net gain use cases. In theory there are some NDA only pre-production units that show it as a net benefit. But I've been hearing that for a couple years now, and from the same people each time. Thus the need for wiper.sh in a linux environment. It's been in openSUSE since 11.2. opensuse 11.4 should have a new kernel based batched discard (2.6.37 required), but it offers little that wiper.sh doesn't already have. The latest util-linux has a small userspace app to call the new ioctl. A cron job or similar will still be need to call the new userspace app. The main advantage of the new kernel code is eventually the DM and MD portions of the block layer will add trim range translation support, but until that happens, wiper.sh is superior from a performance perspective because it handles bigger trim range payloads and it handles more translations! fyi: The performance difference between wiper.sh and the new kernel patched discard support is not enough for both to be supported for the long term in my opinion, but in a opensource world, you never know. Redhat people wrote the new kernel logic, so they will likely ensure it is supported long term. Greg -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
On Wed, Jan 12, 2011 at 01:21:26PM -0500, Greg Freemyer wrote:
On Wed, Jan 12, 2011 at 12:43 PM, Greg KH
wrote: On Wed, Jan 12, 2011 at 06:33:26PM +0100, Johannes Nohl wrote:
2011/1/12 Greg KH
: On Wed, Jan 12, 2011 at 05:29:58PM +0100, Johannes Nohl wrote:
I'd like to ask for feedback. How do you treat your SSD running openSUSE 11.3?
Like a normal disk, not worrying about any TRIM crud or anything else like that. You should not have to ever send those types of commands to the disk unless you feel like potentially causing problems :)
Great, but why does http://en.opensuse.org/SDB:SSD_discard_%28trim%29_support suggest to use a tool like wiper.sh then? I would prefer to not interact with the disk by intention at all.
I do not know at all. But realize, these disks are designed to work in systems that do not have TRIM support at all in them (i.e. some other operating system), so not running these commands on your Linux system is just fine.
thanks,
greg k-h
Greg,
Windows 7 has near real-time trim support and lots of laptops run that by now.
Yes, but Vista and XP doesn't, and that still is the majority of systems out there right now. So no manufacturer creates a device that will slowly fail when running on those machines. thanks, greg k-h -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
On Wed, Jan 12, 2011 at 1:29 PM, Greg KH
On Wed, Jan 12, 2011 at 01:21:26PM -0500, Greg Freemyer wrote:
On Wed, Jan 12, 2011 at 12:43 PM, Greg KH
wrote: On Wed, Jan 12, 2011 at 06:33:26PM +0100, Johannes Nohl wrote:
2011/1/12 Greg KH
: On Wed, Jan 12, 2011 at 05:29:58PM +0100, Johannes Nohl wrote:
I'd like to ask for feedback. How do you treat your SSD running openSUSE 11.3?
Like a normal disk, not worrying about any TRIM crud or anything else like that. You should not have to ever send those types of commands to the disk unless you feel like potentially causing problems :)
Great, but why does http://en.opensuse.org/SDB:SSD_discard_%28trim%29_support suggest to use a tool like wiper.sh then? I would prefer to not interact with the disk by intention at all.
I do not know at all. But realize, these disks are designed to work in systems that do not have TRIM support at all in them (i.e. some other operating system), so not running these commands on your Linux system is just fine.
thanks,
greg k-h
Greg,
Windows 7 has near real-time trim support and lots of laptops run that by now.
Yes, but Vista and XP doesn't, and that still is the majority of systems out there right now. So no manufacturer creates a device that will slowly fail when running on those machines.
thanks,
greg k-h
Fail: no. Slowly see a performance degradation; yes In fact afaik, the only reason ATA-8 introduced trim was to eliminate the well known slow performance degradation of SSDs. I believe most of the SSD manufacturers support it now. If it didn't help, they wouldn't waste their time on it. -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
On Wed, Jan 12, 2011 at 12:33 PM, Johannes Nohl
2011/1/12 Greg KH
: On Wed, Jan 12, 2011 at 05:29:58PM +0100, Johannes Nohl wrote:
I'd like to ask for feedback. How do you treat your SSD running openSUSE 11.3?
Like a normal disk, not worrying about any TRIM crud or anything else like that. You should not have to ever send those types of commands to the disk unless you feel like potentially causing problems :)
Great, but why does http://en.opensuse.org/SDB:SSD_discard_%28trim%29_support suggest to use a tool like wiper.sh then? I would prefer to not interact with the disk by intention at all.
It's a wiki. Anyone can advise anything. In this case it was me (Greg F, not Greg k-h) I still think its a good idea, even if Greg k-h doesn't.
good luck,
Usually "good luck" is going together with "as I told you before" :)
Hm. I can't estimate the risk of such disk related stuff... So I will wait until the disk really slows down.
The danger is that wiper.sh / hdparm will tell the drive to wipe the wrong sectors. Always possible, but I have not seen any error reports of that happening at all. The only way it could in my mind is if wiper.sh ignores a kernel translation layer. ie. the kernel has at least 3 translations it handles: - normal disk partition access (just an offset is needed for this) - translated via LVM (more complex) - translated via mdraid (very complex) In theory wiper.sh is aware of those and either explicitly supports various configurations of those or it explicitly does NOT. If one is not handled correctly, but wiper.sh thinks it is, then it could map the logical sector ranges to the wrong physical sector ranges and thus cause the wrong sectors to be wiped. Again, I've seen zero reports of that on opensuse or otherwise. (I have not scoured the web looking for reports, but I do pay attention to the issue.)
Thanks
Greg F -- To unsubscribe, e-mail: opensuse-project+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-project+help@opensuse.org
participants (3)
-
Greg Freemyer
-
Greg KH
-
Johannes Nohl