From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3ECDC352A3 for ; Thu, 13 Feb 2020 06:21:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8A4972173E for ; Thu, 13 Feb 2020 06:21:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729526AbgBMGVM (ORCPT ); Thu, 13 Feb 2020 01:21:12 -0500 Received: from len.romanrm.net ([91.121.86.59]:49850 "EHLO len.romanrm.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbgBMGVM (ORCPT ); Thu, 13 Feb 2020 01:21:12 -0500 Received: from natsu (natsu.40.romanrm.net [IPv6:fd39:aa:c499:6515:e99e:8f1b:cfc9:ccb8]) by len.romanrm.net (Postfix) with SMTP id 785AB40394; Thu, 13 Feb 2020 06:21:10 +0000 (UTC) Date: Thu, 13 Feb 2020 11:21:10 +0500 From: Roman Mamedov To: Chris Murphy Cc: Btrfs BTRFS Subject: Re: 5.6-rc1, fstrim reports different value 1 minute later Message-ID: <20200213112110.7100baf2@natsu> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Wed, 12 Feb 2020 23:08:03 -0700 Chris Murphy wrote: > Host: kernel 5.5.3, qemu-kvm, Btrfs, backing file is raw with +C 5.6. > Guest: kernel 5.6.0-rc1, / is Btrfs > > Boot and login, and immediately run these commands: > > [root@localhost ~]# df -h > /dev/vda4 96G 4.4G 91G 5% / > # fstrim -v / > /: 91 GiB (97633062912 bytes) trimmed > > 1 minute later > > [root@localhost ~]# fstrim -v / > /: 3.5 GiB (3747549184 bytes) trimmed > [root@localhost ~]# > > There's no activity happening in this one minute period. Reboot, and > it's reproducible again. 91G trimmed the first time then 3.5G the > second. Seems like new and unusual behavior. No kernel messages at all > in either host or guest. For completeness, what would be returned the 3rd time you trim? -- With respect, Roman