From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GPQ1E8NVuF5paQAA0tVLHw (envelope-from ) for ; Sun, 10 May 2020 19:28:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +JF4OdBVuF47cAAAbx9fmQ (envelope-from ) for ; Sun, 10 May 2020 19:28:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9FC8B940C73 for ; Sun, 10 May 2020 19:28:14 +0000 (UTC) Received: from localhost ([::1]:59322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXrcV-0000Lo-7t for larch@yhetil.org; Sun, 10 May 2020 15:28:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXrcJ-0000KI-6z for guix-patches@gnu.org; Sun, 10 May 2020 15:28:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38899) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXrcI-0003K6-SM for guix-patches@gnu.org; Sun, 10 May 2020 15:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jXrcI-0004Vm-PO for guix-patches@gnu.org; Sun, 10 May 2020 15:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41180] [PATCH] Add cachefilesd service. Resent-From: Jean-Baptiste Note Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 10 May 2020 19:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41180 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41180@debbugs.gnu.org Cc: Mathieu Othacehe Received: via spool by 41180-submit@debbugs.gnu.org id=B41180.158913887217315 (code B ref 41180); Sun, 10 May 2020 19:28:02 +0000 Received: (at 41180) by debbugs.gnu.org; 10 May 2020 19:27:52 +0000 Received: from localhost ([127.0.0.1]:50444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXrc7-0004VC-UT for submit@debbugs.gnu.org; Sun, 10 May 2020 15:27:52 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:55081) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXrc6-0004Uy-9X for 41180@debbugs.gnu.org; Sun, 10 May 2020 15:27:51 -0400 Received: by mail-wm1-f66.google.com with SMTP id h4so15775416wmb.4 for <41180@debbugs.gnu.org>; Sun, 10 May 2020 12:27:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=l26tBP/1uR/JngwBEc2a/dKAIaPeQcq3cZZ1EKp2S2M=; b=KJ6QL3qCq8y1tjbcIZ+4kTTDWBgdq70tWKoVnMLph/yQHzb3EEfJWrQkkYAIbyOz/O bjhH2OHEK+Hr2JfltnZoqx9+QhfR1DWULCykPrE3uNx5Xx6dUnAprQb7hmE+56ER4nOH 7/s736J7XplXC3oMV8QA+3Ms0pHWH8qfdWdho6hd1PFVQzEl8A1Xq7hpG9Zu4HSnqVvU ssROV/bCfGdNmXP1HdIp9qFkqWBkAAz7tiz6fD4eVnxvs0QDXWRyv4BaO6IywYzOQQH1 GA8DsfB6O0Nuq/uEMWIH9ImULYrZnKze5LA4IW+6jeSHjbkgoPKASUXysS527ab78coN shyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=l26tBP/1uR/JngwBEc2a/dKAIaPeQcq3cZZ1EKp2S2M=; b=CHn6W38WBuBtAlouMviMVt1jMslD4sxPx4hunAYVCoL7pUPXHCSpnRGYmJ667HwN31 xq1Cy4e1Zcw2Iod/PHwf22z1fdn7UksaPhvYAvHAjdYnXt3DtSnulaCHTCMJ1HL0EHDc 2VuABh61dxMBjGQi4VMKHzxgpvnV8ij+1WT2YAJP3ED+ZLqcgDYXzrCrYVqwv8lQ2jxq Dx5dwdwVyqgkhkGUGyLkfNFmaf1o0m1Hev36rc7mN1YUXPTkPi7hm3QDp2FZMROOBxbV Yc3FHGIKypnIWKK8hBZJQhK8w4o9mKm7h15iD0PlHJhMvoAzPs0klU1qMvZ5a/Hexg4K GWRg== X-Gm-Message-State: AGi0PuZrJHXDpvKDgg+ctOt7a7QRa47jaKBt+MyoWmHiq6FhVxwDeat2 IngMvty2zMG/Ep/YXeKlbKw= X-Google-Smtp-Source: APiQypLLXNcT4sd6PGleTBE9GcTC8UOTdagZrhj7tCNXaRGCdZBpJcqEY4p9TKgME/QRAxiLPZSnOw== X-Received: by 2002:a1c:e906:: with SMTP id q6mr8252493wmc.62.1589138864359; Sun, 10 May 2020 12:27:44 -0700 (PDT) Received: from guixrules ([2a01:e35:2e0b:a6b0:e2ce:c3ff:fe74:cec8]) by smtp.gmail.com with ESMTPSA id u16sm14228946wrq.17.2020.05.10.12.27.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2020 12:27:43 -0700 (PDT) From: Jean-Baptiste Note References: <87v9l3zjg7.fsf@m4x.org> Date: Sun, 10 May 2020 19:27:42 +0000 In-Reply-To: <87v9l3zjg7.fsf@m4x.org> (Jean-Baptiste Note's message of "Sun, 10 May 2020 19:19:36 +0000") Message-ID: <87o8qvzj2p.fsf@m4x.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -0.5 (/) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 X-Spam-Score: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=KJ6QL3qC; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Scan-Result: default: False [-2.11 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.53906389550426]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; R_DKIM_REJECT(1.00)[gmail.com:s=20161025]; HAS_ATTACHMENT(0.00)[]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.08), country: US(-0.00), ip: 209.51.188.17(-0.54)]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; DKIM_TRACE(0.00)[gmail.com:-]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; SIGNED_PGP(-2.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:+,4:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[jean-baptiste.note@m4x.org,guix-patches-bounces@gnu.org]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[m4x.org:email]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain,text/x-patch]; PREVIOUSLY_DELIVERED(0.00)[41180@debbugs.gnu.org]; HAS_LIST_UNSUB(-0.01)[]; DNSWL_BLOCKED(0.00)[209.51.188.17:from]; DMARC_NA(0.00)[m4x.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_COUNT_SEVEN(0.00)[9]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: GopZUFG4iDkL --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Documentation patch. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-doc-Add-documentation-for-cachefilesd-service.patch Content-Transfer-Encoding: quoted-printable From=20b169047ad64996860e6eb154bb4d20ad80463b47 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Note Date: Sun, 10 May 2020 18:43:08 +0000 Subject: [PATCH 2/2] doc: Add documentation for cachefilesd-service. * doc/guix.texi (Linux Services): Add a new subsection and document the cachefilesd service and its configuration. =2D-- doc/guix.texi | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 0cba0ee1ec..4aaec43739 100644 =2D-- a/doc/guix.texi +++ b/doc/guix.texi @@ -25724,6 +25724,41 @@ parameters, can be done as follow: @end lisp @end deffn =20 +@cindex cachefilesd +@cindex cachefiles +@cindex fscache +@subsubheading cachefilesd Service + +The cachefilesd service allows one to load start @code{cachefilesd} for +caching network filesystem data on local disks. This is especially +useful for NFS and AFS shares, reducing read latency. + +@deffn {Scheme Variable} cachefilesd-service-type +The service type for starting cachefilesd. For example starting the +cachefiles daemon can be done as follow: + +@lisp +(use-modules (gnu) (gnu services)) +(use-package-modules linux) +(use-service-modules linux) + +(operating-system + ... + (services + (cons* + (service cachefilesd-service-type + (cachefilesd-configuration + (dir "/var/cache/fscache") ; the default value + (syslog? #f) ; don't require syslogd + (secctx "cachefiles_kernel_t") + (tag "mycache") + (brun 10) + (bcull 7) + (bstop 3))) + %base-services))) +@end lisp +@end deffn + @node Miscellaneous Services @subsection Miscellaneous Services =20 =2D-=20 2.26.2 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEPxcq3dp4FVY5UpckkC0pVsuz75YFAl64Va4ACgkQkC0pVsuz 75YRNg/9FtMmMlfwnaGw8WDWqCr9SXmEF9fUE8pcw5HLitsWSDveoIjbgVRbWbWg Kwe5g+O248FwVrfT3yKznWTWj3Dfa44wpnMswDTulK9rTjTG4OE2Z7DpQd94IVVI Q+x6i2/tKNPxoxNmJE3JdYFUNVo72ocBhygR6+Lb/6Bh3iw3Tx5PYy1xuDFGGVIj KYiwl4NdVVjQ0mW2mjmH/vdjBaU4xZ0fqV4xHzE43m8ypGFY8kaP+Cnx9GB5mw+L n40nlxfordb7txlhSN7QK4rTAMoxFax1wbfVGWiSrqG2vlLy1GJVgZZMSaS9e9tg 096iC+kvF+xbpkRIkbU1rppMX4N6ANIGCchRHjhY1TVk+WXHF5yBB7PxO8pcB6cA 0OkGLVMKe+56g+EVoBcvI/tWGoKcP1fr6z7kYK8qs5QM0321SpbDNbpvgNURVV3p fHHCkK511/pkSTK5I2wNgyp10IkJgD4B90UqVzehiiaGscdMLc3ft5jEQg7ZB+SG WVbw/mWUAtZkluyem8PsTNsrRGfawVYULHwJt60XLrqNopz/zwEUt4fsbTllnG4d /wGx75GD67wCDnd6gjSFc8TDrEZA01Rh0B3mV+DY/w0qft2blCKoB813IVhxd4p4 gCOCUNEKBrbNE063No8nONY484hgT6QefFmHUBktDshogQYxCIA= =w2wH -----END PGP SIGNATURE----- --==-=-=--