From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f44.google.com ([209.85.214.44]:44248 "EHLO mail-it0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750836AbdLKGLU (ORCPT ); Mon, 11 Dec 2017 01:11:20 -0500 Received: by mail-it0-f44.google.com with SMTP id b5so13276698itc.3 for ; Sun, 10 Dec 2017 22:11:19 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20170831070558.GB5783@rus.uni-stuttgart.de> <20170912162843.GA32233@rus.uni-stuttgart.de> <20170914133824.5cf9b59c@jupiter.sol.kaishome.de> <20170914172434.39eae89d@jupiter.sol.kaishome.de> <59BBB15E.8010002@sarach.com.pl> <59BBDFA6.4020500@sarach.com.pl> <20170915190826.1f0be8a9@jupiter.sol.kaishome.de> <23033.512.820691.680916@tree.ty.sabi.co.uk> From: Timofey Titovets Date: Mon, 11 Dec 2017 09:10:39 +0300 Message-ID: Subject: Re: defragmenting best practice? To: Dave Cc: Linux fs Btrfs Content-Type: text/plain; charset="UTF-8" Sender: linux-btrfs-owner@vger.kernel.org List-ID: 2017-12-11 8:18 GMT+03:00 Dave : > On Tue, Oct 31, 2017 someone wrote: >> >> >> > 2. Put $HOME/.cache on a separate BTRFS subvolume that is mounted >> > nocow -- it will NOT be snapshotted > > I did exactly this. It servers the purpose of avoiding snapshots. > However, today I saw the following at > https://wiki.archlinux.org/index.php/Btrfs > > Note: From Btrfs Wiki Mount options: within a single file system, it > is not possible to mount some subvolumes with nodatacow and others > with datacow. The mount option of the first mounted subvolume applies > to any other subvolumes. > > That makes me think my nodatacow mount option on $HOME/.cache is not > effective. True? > > (My subjective performance results have not been as good as hoped for > with the tweaks I have tried so far.) > -- > To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html True, for magic dirs, that you may want mark as no cow, you need to use chattr, like: rm -rf ~/.cache mkdir ~/.cache chattr +C ~/.cache -- Have a nice day, Timofey.