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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22E92C433F5 for ; Thu, 17 Mar 2022 20:36:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229723AbiCQUhR (ORCPT ); Thu, 17 Mar 2022 16:37:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbiCQUhQ (ORCPT ); Thu, 17 Mar 2022 16:37:16 -0400 Received: from vps.thesusis.net (vps.thesusis.net [34.202.238.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A7DE4B873 for ; Thu, 17 Mar 2022 13:35:55 -0700 (PDT) Received: by vps.thesusis.net (Postfix, from userid 1000) id 9AD8B842E3; Thu, 17 Mar 2022 16:35:54 -0400 (EDT) References: <87tuc9q1fc.fsf@vps.thesusis.net> <87tuc7gdzp.fsf@vps.thesusis.net> <87ee34cnaq.fsf@vps.thesusis.net> <5bfd9f15-c696-3962-aaf9-7d0eb4a79694@gmail.com> <87bky5wxt6.fsf@vps.thesusis.net> User-agent: mu4e 1.7.0; emacs 27.1 From: Phillip Susi To: Zygo Blaxell Cc: Andrei Borzenkov , Jan Ziak <0xe2.0x9a.0x9b@gmail.com>, linux-btrfs@vger.kernel.org Subject: Re: Btrfs autodefrag wrote 5TB in one day to a 0.5TB SSD without a measurable benefit Date: Thu, 17 Mar 2022 16:34:51 -0400 In-reply-to: Message-ID: <87wngspb9x.fsf@vps.thesusis.net> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Zygo Blaxell writes: > You can get a 1-byte file reference if you make a reflink of the last > block of a 4097-byte file, or punch a hole in the first 4096 bytes of a > 4097-byte file. This creates a file containing only a reference to the > last byte of the original extent. So the inode only refers to one byte of the extent, but the extent is still always a multiple of 4k right?