From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755127Ab3IMUyT (ORCPT ); Fri, 13 Sep 2013 16:54:19 -0400 Received: from cantor2.suse.de ([195.135.220.15]:43360 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751907Ab3IMUyS (ORCPT ); Fri, 13 Sep 2013 16:54:18 -0400 Date: Fri, 13 Sep 2013 22:54:15 +0200 From: Jan Kara To: Marcus Sundman Cc: Jan Kara , "Theodore Ts'o" , Dave Chinner , linux-kernel@vger.kernel.org Subject: Re: Debugging system freezes on filesystem writes Message-ID: <20130913205415.GA10668@quack.suse.cz> References: <20130226231703.GA22674@quack.suse.cz> <5231BA3C.2090704@hibox.fi> <20130912131051.GA14664@quack.suse.cz> <5231C5FF.3060504@hibox.fi> <20130912143941.GB14664@quack.suse.cz> <5231D8DD.5010703@hibox.fi> <20130912163530.GD14664@quack.suse.cz> <523200EB.7000202@hibox.fi> <20130912204647.GA6826@quack.suse.cz> <5232B219.5020603@hibox.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5232B219.5020603@hibox.fi> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 13-09-13 09:35:05, Marcus Sundman wrote: > On 12.09.2013 23:46, Jan Kara wrote: > >On Thu 12-09-13 20:59:07, Marcus Sundman wrote: > >>On 12.09.2013 19:35, Jan Kara wrote: > >>>On Thu 12-09-13 18:08:13, Marcus Sundman wrote: > >>>>And can I somehow "reset" whatever it is that is making it worse so > >>>>that it becomes good again? That way I could spend maybe 1 hour once > >>>>every few months to get it back to top speed. > >>>>Any other ideas how I could make this (very expensive and fairly new > >>>>ZenBook) laptop usable? > >>> Well, I believe if you used like 70% or less of the disk and regularly > >>>(like once in a few days) run fstrim command, I belive the disk performance > >>>should stay at a usable level. > >>At 128 GB it is extremely small as it is, and I'm really struggling > >>to fit all on it. Most of my stuff is on my NAS (which has almost 10 > >>TB space), but still I need several code repositories and the > >>development environment and a virtual machine etc on this tiny 128 > >>GB thing. > > I see. I have like 70 GB disk and 50% of it are free :) But I have test > >machines with much larger drives where I have VMs etc. This one is just > >for email and coding. > > > >>So, if I used some other filesystem, might that allow me to use a > >>larger portion of the SSD without this degradation? Or with a much > >>slower rate of degradation? > > You might try f2fs. That is designed for low end flash storage so it > >might work better than ext4. But it is a new filesystem so backup often. > > > >>And at some point it will become unusable again, so what can I do > >>then? If I move everything to my NAS (and maybe even re-create the > >>filesystem?) and move everything back, might that get rid of the FTL > >>fragmentation? > > Yes, that should get rid of it. But since you have only a few GB free, > >I'm afraid the fragmentation will reappear pretty quickly. But I guess it's > >worth a try. > > > >>Or could I somehow defragment the FTL without moving away everything? > > I don't know about such way. > > How about triggering the garbage collection on the drive, is that possible? No, I don't know about any way to do that. Honza -- Jan Kara SUSE Labs, CR