Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Use 32K as the default NFSv3 read and write data sizes on aa...



details:   https://anonhg.NetBSD.org/src/rev/3b0e90882fbe
branches:  trunk
changeset: 950294:3b0e90882fbe
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Jan 24 12:51:32 2021 +0000

description:
Use 32K as the default NFSv3 read and write data sizes on aarch64, matching
i386 and amd64.

diffstat:

 sbin/mount_nfs/mount_nfs.8       |  7 ++++---
 sys/arch/aarch64/include/param.h |  8 +++++++-
 2 files changed, 11 insertions(+), 4 deletions(-)

diffs (50 lines):

diff -r 0393aa909710 -r 3b0e90882fbe sbin/mount_nfs/mount_nfs.8
--- a/sbin/mount_nfs/mount_nfs.8        Sun Jan 24 11:55:57 2021 +0000
+++ b/sbin/mount_nfs/mount_nfs.8        Sun Jan 24 12:51:32 2021 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: mount_nfs.8,v 1.50 2020/10/03 18:29:02 wiz Exp $
+.\"    $NetBSD: mount_nfs.8,v 1.51 2021/01/24 12:51:32 jmcneill Exp $
 .\"
 .\" Copyright (c) 1992, 1993, 1994, 1995
 .\"    The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"    @(#)mount_nfs.8 8.3 (Berkeley) 3/29/95
 .\"
-.Dd October 3, 2020
+.Dd January 24, 2021
 .Dt MOUNT_NFS 8
 .Os
 .Sh NAME
@@ -356,7 +356,8 @@
 .Pp
 The default size for NFS version 3 is platform dependent:
 on
-.Nx Ns /amd64
+.Nx Ns /aarch64 ,
+.Nx Ns /amd64 ,
 and
 .Nx Ns /i386 ,
 the default is 32K, for other platforms it is 8K.
diff -r 0393aa909710 -r 3b0e90882fbe sys/arch/aarch64/include/param.h
--- a/sys/arch/aarch64/include/param.h  Sun Jan 24 11:55:57 2021 +0000
+++ b/sys/arch/aarch64/include/param.h  Sun Jan 24 12:51:32 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.14 2020/02/01 09:21:49 skrll Exp $ */
+/* $NetBSD: param.h,v 1.15 2021/01/24 12:51:32 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -131,6 +131,12 @@
 
 #define MCLBYTES               (1 << MCLSHIFT) /* size of a m_buf cluster */
 
+#ifndef NFS_RSIZE
+#define NFS_RSIZE              32768   /* Default NFS read data size */
+#endif
+#ifndef NFS_WSIZE
+#define NFS_WSIZE              32768   /* Default NFS write data size */
+#endif
 
 #ifndef MSGBUFSIZE
 #define MSGBUFSIZE             65536   /* default message buffer size */



Home | Main Index | Thread Index | Old Index