From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com [10.5.110.39]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8006219EFA for ; Mon, 15 May 2017 08:08:51 +0000 (UTC) Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8493261D25 for ; Mon, 15 May 2017 08:08:49 +0000 (UTC) Received: by mail-wm0-f54.google.com with SMTP id v15so36434133wmv.1 for ; Mon, 15 May 2017 01:08:49 -0700 (PDT) References: From: Zdenek Kabelac Message-ID: Date: Mon, 15 May 2017 10:08:46 +0200 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [linux-lvm] on discards Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: LVM general discussion and development , Xen Dne 15.5.2017 v 05:16 Xen napsal(a): > On discards, > > I have a thin pool that filled up when there was enough space, because the > filesystem hadn't issued discards. > > I have ext4 mounted with the discard option, I hope, because it is in the list > of default mount options of tune2fs: > > Default mount options: user_xattr acl discard > > What can I do to ensure that it won't happen again? > > Is the filesystem really mounted with discard? > > It doesn't say so anywhere. > Hi I'd not suggest to mount fs with discard - but rather run 'fstrim' in your cron once a while. Standalone 'small trim' on deleted file is quite inefficient and will not resolve aggregation of continuous blocks for proper trimming. For thin-pool - min size of trim is i.e. whole 64K chunk, - when it sits on SSD you need to even trim much multiple pool chunks to free something on your SSD. When you run 'fstrim' whole region of unused blocks is trimmed - to it's always biggest possible chunk. Regards Zdenek