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=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 709C3C433E0 for ; Wed, 23 Dec 2020 18:13:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 231EA22286 for ; Wed, 23 Dec 2020 18:13:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726958AbgLWSNO (ORCPT ); Wed, 23 Dec 2020 13:13:14 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:42248 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725957AbgLWSNO (ORCPT ); Wed, 23 Dec 2020 13:13:14 -0500 Received: from callcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 0BNICO40016733 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 23 Dec 2020 13:12:25 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id 8D087420280; Wed, 23 Dec 2020 13:12:24 -0500 (EST) Date: Wed, 23 Dec 2020 13:12:24 -0500 From: "Theodore Y. Ts'o" To: Matteo Croce Cc: linux-ext4@vger.kernel.org Subject: Re: discard and data=writeback Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Dec 23, 2020 at 01:47:33AM +0100, Matteo Croce wrote: > As an extra test I extracted the archive with data=ordered, remounted > with data=writeback and timed the rm -rf and viceversa. > The mount option is the one that counts, the one using during > extraction doesn't matter. Hmm... that's really surprising. At this point, the only thing I can suggest is to try using blktrace to see what's going on at the block layer when the I/O's and discard requests are being submitted. If there are no dirty blocks in the page cache, I don't see how data=ordered vs data=writeback would make a difference to how mount -o discard processing would take place. Cheers, - Ted