From: "Richard W.M. Jones" Subject: Re: fstrim has no effect on a just-mounted filesystem Date: Tue, 11 Mar 2014 22:59:32 +0000 Message-ID: <20140311225932.GW1346@redhat.com> References: <20140311213932.GA19176@redhat.com> <531F8456.2020404@redhat.com> <20140311220013.GV1346@redhat.com> <531F8953.1030702@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-ext4@vger.kernel.org To: Eric Sandeen Return-path: Received: from mx1.redhat.com ([209.132.183.28]:43594 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755759AbaCKW7f (ORCPT ); Tue, 11 Mar 2014 18:59:35 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s2BMxYUT008076 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 11 Mar 2014 18:59:34 -0400 Content-Disposition: inline In-Reply-To: <531F8953.1030702@redhat.com> Sender: linux-ext4-owner@vger.kernel.org List-ID: On Tue, Mar 11, 2014 at 05:08:19PM -0500, Eric Sandeen wrote: > blktrace is probably the place to start. Do you see discard > requests? then ext4 is doing its job. If not, we can trace > ext4 to see why it's not issuing them, assuming there really > is work to do. At the moment I can't get this to work. The script I'm using is: ---------------------------------------------------------------------- set -e set -x trace-cmd record -e all -o /tmp/trace & pid=$! fstrim /sysroot kill $pid; sleep 2 trace-cmd report -i /tmp/trace ---------------------------------------------------------------------- However the last trace-cmd gives an error: trace-cmd: No such file or directory opening '/tmp/trace' I'll try again tomorrow morning. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/