Re: Recommended settings for SSD

2013-05-26 Thread Leonidas Spyropoulos
On Sat, May 25, 2013 at 11:33 PM, Harald Glatt m...@hachre.de wrote: Data that already exists will only be compressed on re-write. You can do it with btrfs fi defrag and a script that traverses the fs to call defrag on every file. Another good way is the find command that has been outlined

Re: Recommended settings for SSD

2013-05-26 Thread Harald Glatt
I don't know a better way to check than doing df -h before and after... If you use space_cache you have to clear_cache though to make the numbers be current for sure each time before looking at df. Old kernel can be a problem. You can use the Arch CDs to do it, they usually come with the newest

Re: Recommended settings for SSD

2013-05-26 Thread cwillu
On Sun, May 26, 2013 at 9:16 AM, Harald Glatt m...@hachre.de wrote: I don't know a better way to check than doing df -h before and after... If you use space_cache you have to clear_cache though to make the numbers be current for sure each time before looking at df. Not sure what you're

Re: Recommended settings for SSD

2013-05-25 Thread Leonidas Spyropoulos
On Sat, May 25, 2013 at 4:58 AM, Duncan 1i5t5.dun...@cox.net wrote: Without going back to check the wiki, IIRC it was there that the /sys paths it checks for that detection are listed. Those paths are then based on what the drive itself claims. If it claims to be rotating storage... I

Re: Recommended settings for SSD

2013-05-25 Thread Russell Coker
On Sat, 25 May 2013, Leonidas Spyropoulos artafi...@gmail.com wrote: I decided not to add the discard option and run the daily script from cron (fstrim) as I think there's a performance hit with the discard. It mainly depends on your hardware I think. I experienced a massive performance hit

Re: Recommended settings for SSD

2013-05-25 Thread Martin Steigerwald
Am Samstag, 25. Mai 2013, 03:58:12 schrieb Duncan: Leonidas Spyropoulos posted on Fri, 24 May 2013 23:38:17 +0100 as excerpted: On 24 May 2013 21:07, cwillu cwi...@cwillu.com wrote: No need to specify ssd, it's automatically detected. I'm not so sure it did detected. When I manually

Re: Recommended settings for SSD

2013-05-25 Thread Duncan
Martin Steigerwald posted on Sat, 25 May 2013 14:13:07 +0200 as excerpted: Am Samstag, 25. Mai 2013, 03:58:12 schrieb Duncan: Leonidas Spyropoulos posted on Fri, 24 May 2013 23:38:17 +0100 as excerpted: On 24 May 2013 21:07, cwillu cwi...@cwillu.com wrote: No need to specify ssd, it's

Re: Recommended settings for SSD

2013-05-25 Thread Leonidas Spyropoulos
On Sat, May 25, 2013 at 1:13 PM, Martin Steigerwald mar...@lichtvoll.de wrote: Am Samstag, 25. Mai 2013, 03:58:12 schrieb Duncan: [...] And can be verified by: martin@merkaba:~ grep ssd /proc/mounts /dev/mapper/merkaba-debian / btrfs rw,noatime,compress=lzo,ssd,space_cache 0 0

Re: Recommended settings for SSD

2013-05-25 Thread Harald Glatt
Data that already exists will only be compressed on re-write. You can do it with btrfs fi defrag and a script that traverses the fs to call defrag on every file. Another good way is the find command that has been outlined here:

Re: Recommended settings for SSD

2013-05-25 Thread Martin Steigerwald
Am Samstag, 25. Mai 2013, 14:13:07 schrieb Martin Steigerwald: The SSD is in use for about 2 years. I left about 25 GiB free of the 300 GB it has. merkaba:~ smartctl -a /dev/sda | grep Host 225 Host_Writes_32MiB 0x0032 100 100 000Old_age Always - 261260

Re: Recommended settings for SSD

2013-05-25 Thread Martin Steigerwald
Am Samstag, 25. Mai 2013, 23:29:41 schrieb Leonidas Spyropoulos: On Sat, May 25, 2013 at 1:13 PM, Martin Steigerwald mar...@lichtvoll.de wrote: Am Samstag, 25. Mai 2013, 03:58:12 schrieb Duncan: [...] And can be verified by: martin@merkaba:~ grep ssd /proc/mounts

Re: Recommended settings for SSD

2013-05-24 Thread cwillu
At the moment I am using: defaults,noatime,nodiratime,ssd,subvol=@home No need to specify ssd, it's automatically detected. -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: Recommended settings for SSD

2013-05-24 Thread Leonidas Spyropoulos
On 24 May 2013 21:07, cwillu cwi...@cwillu.com wrote: No need to specify ssd, it's automatically detected. I'm not so sure it did detected. When I manually set it I saw significant improvement. -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to

Re: Recommended settings for SSD

2013-05-24 Thread Duncan
Leonidas Spyropoulos posted on Fri, 24 May 2013 23:38:17 +0100 as excerpted: On 24 May 2013 21:07, cwillu cwi...@cwillu.com wrote: No need to specify ssd, it's automatically detected. I'm not so sure it did detected. When I manually set it I saw significant improvement. Without going back