From nobody Thu Jul 02 01:34:47 2026 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4grKFB4ppYz6l1YQ for ; Thu, 02 Jul 2026 01:34:54 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4grKFB48Qgz3fxh; Thu, 02 Jul 2026 01:34:54 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782956094; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CjOCiRJCMtQmsXqgzlcwWhp10io031R8adb3Hh6II7A=; b=m684KrZrhIT0xDogsO14cg9TBnROzMVaZUm1bkrf6PgSx7EZYZPYECn/E8Eh7/gYK8OcGa il9FCTzS4llrrZIpFMuinOXDMaRdKNlHAlk7WOdp8h4AK9ZtcIJJyXRIGEJtfs0nH7jU+h rUUvS9z11QIlubCyIyCXNV81cMOgkH04ltrJL7ZmQYeXo9tdoumdmH9TuhjTIYwAoEn50Q uaWcICWGUrtSiAkoT3ifZMjrNR8CRGfRzA//35X3j7O3Al2sk5Hrb4DX/G/xaTLSkpUNAZ tO/RmqJTxw48djwf/suQ5GCrtdYyh7INiLkwcs8+540D6R52r0DmPQl51geSkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782956094; a=rsa-sha256; cv=none; b=R+OTUFkD85bzZe58MDc+etgR6EdHZ/bFbTf9IC2tlKrfmgImd9qxWO9gk1iuSULKbYsPln uzf9LvZ0t54ZmepY+F/QrY/DLHj52JCSY7apWaMFGUDBCufyVuwFF3ZH17LlRt90ZgxRoZ SNxTcY23UJKurTPF4duZTNr2sOG0T/wVo1EzSw5PxXu+U5JH3ZHbMd23LcGAyH5rzHswUB rm8mJfiRkAuBSqgMdtpKzpzMRF5goum8FpEb4MCw5de5obdqnzH9PPECOzWuGV8u4rda2L Gd9HRn4FhfrkWAGRjMCvwD/S+9tICqSgTDdLeHHisK/tlanyHPiDvnP/0Ptv3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782956094; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CjOCiRJCMtQmsXqgzlcwWhp10io031R8adb3Hh6II7A=; b=dDW1MHAqywq/ZaNNgcxpO/FS8cR2Z3lEi/3NRDfFr+rpYKQCmncEd9PvTG4TcoEnQkbtzS b/PYI10Omnpaq2a4D6xxchzmD7CbPbZkwuijlRTV3cxW8DilmRXTBUd3OHoGeeNEjEMZo+ 7dtDabJotdsKMSPHAO7HwZcvBzeWUAy8HLl/op0S9HiNZKcYkEUKJ7wMUnC3UKe0/NI9aa 23opGbcCw0DCvqBlnN65iUgTZnT91AddbQfomUEXeyeALNxD03jdc/5Xk0z0CViQZm75rc cZRX26nWxmp9x5b5a5tqlCbS3/jeP1AiLC5YPNTGRKLpIscKLYcrPo/XKz6x1g== Received: from ltc.des.dev (2a01cb0585070b00922e16fffef1acef.ipv6.abo.wanadoo.fr [IPv6:2a01:cb05:8507:b00:922e:16ff:fef1:acef]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4grKFB1q4HzHHB; Thu, 02 Jul 2026 01:34:54 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 93D87AC173; Thu, 02 Jul 2026 03:34:47 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Rob Norris" Cc: freebsd-hackers@FreeBSD.org, bdrewery@freebsd.org Subject: Re: ccache mount location questions In-Reply-To: <6d71c2d4-0ded-4bed-a6db-ddbf2c83c6b5@app.fastmail.com> (Rob Norris's message of "Thu, 02 Jul 2026 07:00:56 +1000") References: <6d71c2d4-0ded-4bed-a6db-ddbf2c83c6b5@app.fastmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Thu, 02 Jul 2026 03:34:47 +0200 Message-ID: <86jyre898o.fsf@ltc.des.dev> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "Rob Norris" writes: > If you have ccache on a compressed dataset, you should set compression > =3D false in your ccache.conf. That's the default. > Honestly though, the biggest win for me has been file_clone =3D true, > avoiding a full copy out of the cache on every hit. I'm on Linux > though and not sure what mechanism it's using for that > (copy_file_range vs FICLONE), so check that on FreeBSD. The file_clone option uses FICLONE, which only exists on Linux and only works on certain file systems. Ccache 4 does use copy_file_range() though, which is an improvement on all file systems on all platforms that support it, and which in FreeBSD defaults to block cloning if at all possible. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org