Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp620972pxb; Thu, 24 Mar 2022 04:00:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyONcQMjAFZ6s4VMpsNRN+fX7H8Yas0eTiMuxjc3M5cDpR1Gpyp/ihRUJjZ1qpMswoub8GA X-Received: by 2002:a17:90b:33c8:b0:1c7:443:3fcc with SMTP id lk8-20020a17090b33c800b001c704433fccmr17650492pjb.109.1648119645574; Thu, 24 Mar 2022 04:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648119645; cv=none; d=google.com; s=arc-20160816; b=U24i08TPDYigqEhFvHmvRavRYQrcHHRBNjYfcDIaWYVTQ4/4cEiev42f0857BDyaHO LdVP4iImvW3PLBOC14zgQjg/6z8gHqqozj/wj6nBDul9kT+1Yn5zIyAaZntiQbJKRuCC vqJLmvdy67tMO0M38uWJKMJIZnJzFwM+Khx43uIAa2JYcEZAJzmAQbOOR8kaugYGKxov LwFhJ7rVa7kgkkIA05SuXshVzPERmw7tYNIxNcmMAF/yAMPMo0TY2dAtry+Qb2/klr/d Y87JYc8lYnt2/PnXfHQl0KtRVJAWOGEWw+r06/Pkk2zjmY/sXrn2tCZasGuLWPv9ibn9 OwoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=A4WjIFYPYYr7HjXVjEDRv4oz08cl5gveTsATjw52Amg=; b=EvBPrAcD3Te9Ru7OOkhSdEhuA7ZiWAnJ03jOhhOq/YgfLiMpajwK9cvjSXdfjbHz7z S6zOvvP93lrICGIASFRpIBdmNP1pa6FImWl7dxUKPCRc7nHtIxS5T7FKUS6QRhY81lfa 2Fe01wC+Kbo4y3MWdkkK/OTGHjEOTaB2X6mwqOUPIVex5QYRYYvaIr8Ku9d0BxCsenPV ooZR37V/Jz6DQRvYh0QEbA761TJo6CM1koZbn4ofkS2g7qpjRy266cP1jEn6ZQ6Yfq8g jn71zFLBCkoZ6nMQX0a+p3G6GZmR2NMN/qA/VaPo2LNo2x516gGP2kWtxnAe6K9s/IkJ mFKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=F0J4XMqm; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j2-20020a17090aeb0200b001c61582eda2si2264837pjz.165.2022.03.24.04.00.14; Thu, 24 Mar 2022 04:00:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=F0J4XMqm; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344336AbiCWUUz (ORCPT + 99 others); Wed, 23 Mar 2022 16:20:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344602AbiCWUUy (ORCPT ); Wed, 23 Mar 2022 16:20:54 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BA7B41F608 for ; Wed, 23 Mar 2022 13:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1648066763; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A4WjIFYPYYr7HjXVjEDRv4oz08cl5gveTsATjw52Amg=; b=F0J4XMqmc/DhbMlgjbJNTD4OoX/d19LtJY5wWvoc945ZxaI8ucQ2skX8BX8krJiOay55D1 tUkAje1xW+ZM73UhLgJ1dII2KjTcwASmSGoX9N063Kwtj1MusOpJgVN40KCI+DGb/xdZer zYbNGFIqtMdcaliETjv7/Ff5IT8/qoA= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-382-8TutiKXLMk-fcC3WlvWycA-1; Wed, 23 Mar 2022 16:19:20 -0400 X-MC-Unique: 8TutiKXLMk-fcC3WlvWycA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2799729ABA28; Wed, 23 Mar 2022 20:19:20 +0000 (UTC) Received: from nyarly.redhat.com (ovpn-116-121.gru2.redhat.com [10.97.116.121]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A42F1401E24; Wed, 23 Mar 2022 20:19:16 +0000 (UTC) From: Thiago Becker To: linux-nfs@vger.kernel.org Cc: steved@redhat.com, trond.myklebust@hammerspace.com, anna.schumaker@netapp.com, kolga@netapp.com, Thiago Becker Subject: [PATCH RFC v3 6/6] nfsrahead: User documentation Date: Wed, 23 Mar 2022 17:18:41 -0300 Message-Id: <20220323201841.4166549-7-tbecker@redhat.com> In-Reply-To: <20220323201841.4166549-1-tbecker@redhat.com> References: <20220323201841.4166549-1-tbecker@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Add the man page for nfsrahead, and add the new section to nfs.conf. Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1946283 Signed-off-by: Thiago Becker --- systemd/nfs.conf.man | 11 ++++++ tools/nfsrahead/Makefile.am | 2 + tools/nfsrahead/nfsrahead.man | 72 +++++++++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 tools/nfsrahead/nfsrahead.man diff --git a/systemd/nfs.conf.man b/systemd/nfs.conf.man index be487a11..e74083e9 100644 --- a/systemd/nfs.conf.man +++ b/systemd/nfs.conf.man @@ -294,6 +294,17 @@ Only .B debug= is recognized. +.TP +.B nfsrahead +Recognized values: +.BR nfs , +.BR nfsv4 , +.BR default . + +See +.BR nfsrahead (5) +for deatils. + .SH FILES .TP 10n .I /etc/nfs.conf diff --git a/tools/nfsrahead/Makefile.am b/tools/nfsrahead/Makefile.am index d0b5d170..7342dcba 100644 --- a/tools/nfsrahead/Makefile.am +++ b/tools/nfsrahead/Makefile.am @@ -3,6 +3,8 @@ nfsrahead_SOURCES = main.c nfsrahead_LDFLAGS= -lmount nfsrahead_LDADD = ../../support/nfs/libnfsconf.la +man5_MANS = nfsrahead.man + udev_rulesdir = /etc/udev/rules.d udev_rules_DATA = 99-nfs_bdi.rules diff --git a/tools/nfsrahead/nfsrahead.man b/tools/nfsrahead/nfsrahead.man new file mode 100644 index 00000000..5488f633 --- /dev/null +++ b/tools/nfsrahead/nfsrahead.man @@ -0,0 +1,72 @@ +.\" Manpage for nfsrahead. +.nh +.ad l +.TH man 5 "08 Mar 2022" "1.0" "nfsrahead man page" +.SH NAME + +nfsrahead \- Configure the readahead for NFS mounts + +.SH SYNOPSIS + +nfsrahead [-F] [-d] + +.SH DESCRIPTION + +\fInfsrahead\fR is a tool intended to be used with udev to set the \fIread_ahead_kb\fR parameter of NFS mounts, according to the configuration file (see \fICONFIGURATION\fR). \fIdevice\fR is the device number for the NFS backing device as provided by the kernel. + +.SH OPTIONS +.TP +.B -F +Send messages to +.I stderr +instead of +.I syslog + +.TP +.B -d +Increase the debugging level. + +.SH CONFIGURATION +.I nfsrahead +is configured in +.IR /etc/nfs.conf , +in the section titled +.IR nfsrahead . +It accepts the following configurations. + +.TP +.B nfs= +The readahead value applied to NFSv3 mounts. + +.TP +.B nfs4= +The readahead value applied to NFSv4 mounts. + +.TP +.B default= +The default configuration when none of the configurations above is set. + +.SH EXAMPLE CONFIGURATION +[nfsrahead] +.br +nfs=15000 # readahead of 15000 for NFSv3 mounts +.br +nfs4=16000 # readahead of 16000 for NFSv4 mounts +.br +default=128 # default is 128 + +.SH SEE ALSO + +.BR mount.nfs (8), +.BR nfs (5), +.BR nfs.conf (5), +.BR udev (7), +.BR bcc-readahead (8) + +.SH BUGS + +No known bugs. + +.SH AUTHOR + +Thiago Rafael Becker -- 2.35.1