xfs
[Top] [All Lists]

Re: very slow file deletion on an SSD

To: Eric Sandeen <sandeen@xxxxxxxxxxx>
Subject: Re: very slow file deletion on an SSD
From: Stefan Ring <stefanrin@xxxxxxxxx>
Date: Sun, 27 May 2012 09:34:46 +0200
Cc: Joe Landman <joe.landman@xxxxxxxxx>, linux-raid <linux-raid@xxxxxxxxxxxxxxx>, xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=TfhXTnBJuQTLtu1DnRgysy3wj7eTWz669wT70qAkCTc=; b=sIC+aRjzd2nnASlYWora2nvwAkIaZHRBxr/0oFhTtsi/obxv7HWyCvKRtqloAUTP/o xMvCCFgvv7Nl5P+sige3gdBBexLLiMC7XIeMnnKz/jBBXCllUXx/21aIFuXY8X8zSi/b lYvsEQ1VlUS9QfgKKncRfR4CSm9cU/zOOFkwP6Ygx+rw+bp+iRRPu81gu/whZuFwCfRb xnQVMaR/xVuXMSZ0+rVNOCMXVt5NmQumxqdbNdlLXOFPw6wrNQtGL3ae/NYpsW+PNPT0 TNUMBF2PpEA8eONFHFMik89Nz/v+2PaOdryTTmjBzl89rD6dgVh1tzOWxutNBfhWOIY6 ovJQ==
In-reply-to: <4FC19408.5020502@xxxxxxxxxxx>
References: <4FBF60D1.80104@xxxxxxxxx> <20120526231838.GR25351@dastard> <4FC16683.9060800@xxxxxxxxx> <20120527000701.GS25351@dastard> <4FC18845.6030301@xxxxxxxxx> <4FC19408.5020502@xxxxxxxxxxx>
>> [root@siFlash test]# xfs_bmap -vp 2.r.96.0
>> xfs_bmap: xfsctl(XFS_IOC_GETBMAPX) iflags=0x4 ["2.r.96.0"]: Cannot allocate 
>> memory
>
> Try filefrag -v maybe, if your e2fsprogs is new enough.
>
> Trying to remember, ENOMEM in bmap rings a bell... but this is possibly 
> indicative of an extremely fragmented file.

True, I've had it happen with extremely fragmented files.

I've started playing around with discard myself only recently, but so
far I like the approach of using fstrim a lot better than the discard
option: http://xfs.org/index.php/FITRIM/discard

<Prev in Thread] Current Thread [Next in Thread>