Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3061598pxb; Mon, 4 Apr 2022 06:58:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmrmz4lrxepgRrv8xAY3D0lXFzg5eQr1sgkJtWsE5pxtqJIELDkVNYP1+z2AocbF+hpxvU X-Received: by 2002:a17:90a:4897:b0:1c7:5fce:cbcd with SMTP id b23-20020a17090a489700b001c75fcecbcdmr26606262pjh.45.1649080717566; Mon, 04 Apr 2022 06:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649080717; cv=none; d=google.com; s=arc-20160816; b=ha4GssJbjiLc8Bb9R9tKf0A+yTvGx0PqDkYSJqFZj2YdwIXVmLk6cppqNKEoHN3Cdn 4yNFusG0pMewT9x3Xpu5ooCjJM88PsM4hEapfAXu21IrysB8MmsMm1zEdlappA/pOLeV SM0Rn6YPQ11O7CKkmtspmd1/FrBoi8EIGDaA6x0VPONphUEjRITLHGqOnq7/9TZAI4zY Izogi7FQ9b/1+3pM4c3qxKab6PzIQP6ExW3BELWx3ggssjLTIOTKkYe5huThx6xajRlG CD4EwOCaD2pAAqeYn9aD+WrcACqbsUKHLHoIf7ByeRy9+X9/UYlduBuCodabt+AExCKt agmA== 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=pdeAVoT8WrUyzro2PiZcbaPSqi9ISMyf0NB3t0SMW6U=; b=fqANepXIqqByDA/qXWvX7WtDHafhIEcq36H8oz6DqOf+psTRYntjghJTHVzUmqWxwd /KiNQCj6lDlwh4tl09pK8DgozfNwvBUg6hzLVtLnDe6sdwkdBmAykccNC48O7r0qG7gI mxOMR8yUCtNAgpWRHgCCVay3pVN58ipsiegsAqM0+vI2+OCDbd902Xa7sooc6DQvYDaH LjzkeyoK+dOAMWOzkt0Kygp0wMjdastg88bHwdpmr2iJsplRzM7r+klJl/J3eL/Zx/a0 q5O8Wxle9GpM6tXUJJfEtjwyrArq4i0XKDdkaoZMSWbtdDk/SI5sAUs+NG5X1k3wfV1G Xb+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QU2xvgez; 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 m3-20020a655643000000b003820d3f6c4dsi10337617pgs.105.2022.04.04.06.58.10; Mon, 04 Apr 2022 06:58:37 -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=QU2xvgez; 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 S237129AbiDAQL1 (ORCPT + 99 others); Fri, 1 Apr 2022 12:11:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349657AbiDAQI5 (ORCPT ); Fri, 1 Apr 2022 12:08:57 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8A35AFFB4C for ; Fri, 1 Apr 2022 08:32:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1648827172; 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=pdeAVoT8WrUyzro2PiZcbaPSqi9ISMyf0NB3t0SMW6U=; b=QU2xvgezHd9YYkY5KAuyxDzltk1KtGErqyFDctfXAsvT0US+Ka4U+fN2bFUFGnfXQ/dZr0 UgrT87Yt5a2iNjHuwKVVVwTGa0+MlKcnEXouD5hsrbs3uMGqRfeYh2tKX2HTAiGIL/gcMr INAFKRc6fJqcj1RtbTeVyK7QWIM6h4M= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-675-f1SZsWzrO9u-FqfNpxy4BA-1; Fri, 01 Apr 2022 11:32:51 -0400 X-MC-Unique: f1SZsWzrO9u-FqfNpxy4BA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3725F80281D; Fri, 1 Apr 2022 15:32:51 +0000 (UTC) Received: from nyarly.redhat.com (ovpn-116-139.gru2.redhat.com [10.97.116.139]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E3FA47C4E; Fri, 1 Apr 2022 15:32:47 +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 v4 6/7] nfsrahead: User documentation Date: Fri, 1 Apr 2022 12:32:07 -0300 Message-Id: <20220401153208.3120851-7-tbecker@redhat.com> In-Reply-To: <20220401153208.3120851-1-tbecker@redhat.com> References: <20220401153208.3120851-1-tbecker@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,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 | 3 ++ tools/nfsrahead/nfsrahead.man | 72 +++++++++++++++++++++++++++++++++++ 3 files changed, 86 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 60a1102a..845ea0d5 100644 --- a/tools/nfsrahead/Makefile.am +++ b/tools/nfsrahead/Makefile.am @@ -3,6 +3,9 @@ nfsrahead_SOURCES = main.c nfsrahead_LDFLAGS= -lmount nfsrahead_LDADD = ../../support/nfs/libnfsconf.la +man5_MANS = nfsrahead.man +EXTRA_DIST = $(man5_MANS) + udev_rulesdir = /usr/lib/udev/rules.d/ udev_rules_DATA = 99-nfs.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