RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1519701 - Why nfsiostat only shows 256k when the nfs mount wsize=1m and rsize=1m?
Summary: Why nfsiostat only shows 256k when the nfs mount wsize=1m and rsize=1m?
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nfs-utils
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Yongcheng Yang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-01 08:47 UTC by zhouweigang09
Modified: 2021-02-15 07:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-15 07:31:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description zhouweigang09 2017-12-01 08:47:48 UTC
Description of problem:
My nfs client is RHEL7.2,and mount nfs3 server with rsize=1048576,wsize=1048576,but from nfsiostat output ,we find that the size only=256k, not 1M.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.mount the nfs3 server with rsize=1048576,wsize=1048576;
129.115.73.183:/fs1 on /mnt1 type nfs (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=129.115.73.183,mountvers=3,mountport=2050,mountproto=tcp,local_lock=none,addr=129.115.73.183)
2.test with dd : 
[root@node1 ~]# dd if=/dev/zero of=/mnt1/2 bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 12.6896 s, 84.6 MB/s
3.nfsiostat show ops:
[root@node1 /]# nfsiostat 2 /mnt1

129.115.73.183:/fs1 mounted on /mnt1:

   op/s		rpc bklog
   4.63	   0.00
read:            ops/s		   kB/s		  kB/op		retrans		avg RTT (ms)	avg exe (ms)
		  0.000	  0.000	  0.000       0 (0.0%)	  0.000	  0.000
write:           ops/s		   kB/s		  kB/op		retrans		avg RTT (ms)	avg exe (ms)
		  4.618	1183.495	256.289       0 (0.0%)	 31.397	4438.427
Actual results:
nfsiostat show ops=1024k

Expected results:
nfsiostat show ops=256k

Additional info:
In the centos6.5 nfs3 client, the nfsiostat show ops=1024k.

Comment 2 zhouweigang09 2017-12-01 08:57:19 UTC
Sorry,the true results are: 

Actual results:
nfsiostat show ops=256k

Expected results:
nfsiostat show ops=1024k

Comment 3 Yongcheng Yang 2017-12-01 09:18:51 UTC
Please try it with the latest nfs-utils version.

Seems I cannot reproduce your problem:

# showed as 1024.301 kB/op
^^^^^^^^^^^^^^^^^^^^^^^^^^
[root@~]# mount nfs_server:/export_test /mnt/ -o vers=3,rsize=1048576,wsize=1048576
[root@~]# cat /proc/mounts | grep mnt
nfs_server:/export_test /mnt nfs rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.0.1,mountvers=3,mountport=20048,mountproto=udp,local_lock=none,addr=192.168.0.1 0 0
[root@~]# dd if=/dev/zero of=/mnt/testfile bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 10.831 s, 99.1 MB/s
[root@~]# nfsiostat 

nfs_server:/export_test mounted on /mnt:

   op/s         rpc bklog
  13.49    0.00
read:            ops/s             kB/s           kB/op         retrans         avg RTT (ms)    avg exe (ms)
                  0.000   0.000   0.000       0 (0.0%)    0.000   0.000
write:           ops/s             kB/s           kB/op         retrans         avg RTT (ms)    avg exe (ms)
                 13.299 13621.870       1024.301       0 (0.0%)  18.848 4380.977
[root@~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.48.el7.x86_64
[root@~]#

Comment 4 zhouweigang09 2017-12-01 09:37:11 UTC
(In reply to Yongcheng Yang from comment #3)
> Please try it with the latest nfs-utils version.
> 
> Seems I cannot reproduce your problem:
> 
> # showed as 1024.301 kB/op
> ^^^^^^^^^^^^^^^^^^^^^^^^^^
> [root@~]# mount nfs_server:/export_test /mnt/ -o
> vers=3,rsize=1048576,wsize=1048576
> [root@~]# cat /proc/mounts | grep mnt
> nfs_server:/export_test /mnt nfs
> rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,
> timeo=600,retrans=2,sec=sys,mountaddr=192.168.0.1,mountvers=3,
> mountport=20048,mountproto=udp,local_lock=none,addr=192.168.0.1 0 0
> [root@~]# dd if=/dev/zero of=/mnt/testfile bs=1M count=1024
> 1024+0 records in
> 1024+0 records out
> 1073741824 bytes (1.1 GB) copied, 10.831 s, 99.1 MB/s
> [root@~]# nfsiostat 
> 
> nfs_server:/export_test mounted on /mnt:
> 
>    op/s         rpc bklog
>   13.49    0.00
> read:            ops/s             kB/s           kB/op         retrans     
> avg RTT (ms)    avg exe (ms)
>                   0.000   0.000   0.000       0 (0.0%)    0.000   0.000
> write:           ops/s             kB/s           kB/op         retrans     
> avg RTT (ms)    avg exe (ms)
>                  13.299 13621.870       1024.301       0 (0.0%)  18.848
> 4380.977
> [root@~]# rpm -q nfs-utils
> nfs-utils-1.3.0-0.48.el7.x86_64
> [root@~]#
My centos65 using nfs-utils-1.2.3-39,but has not this problem:
[root@centos65-2 14:30:48 ~]# rpm -q nfs-utils
nfs-utils-1.2.3-39.el6.x86_64
``````````````````````````````
   op/s		rpc bklog
 400.00 	   0.00
read:             ops/s		   kB/s		  kB/op		retrans		avg RTT (ms)	avg exe (ms)
		  0.000 	  0.000 	  0.000        0 (0.0%) 	  0.000 	  0.000
write:            ops/s		   kB/s		  kB/op		retrans		avg RTT (ms)	avg exe (ms)
		400.000 	408890.062 	1022.225        0 (0.0%) 	 11.325 	1803.550

Comment 5 Rahul Sharma 2018-03-15 08:31:10 UTC
The issue is reproducible with rhel7 nfs client (from nfs-utils-1.3.0-0.48)
# mount|grep nfs
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
10.xx.xxx.xxx:/srcfs on /nfsmount type nfs4 (rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.xx.xxx.xxx,local_lock=none,addr=10.xxx.xxx.xxx)

[root@host1~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.48.el7_4.2.x86_64
[root@host1 ~]#
Tracing the read requests: shows [offset, length:  0, 262144] for read requests

Using RHEL6 nfs-utils to access the same share above and using the same mount options shows [offset, length: 9306112, 1048576)

So this works fine with: 
[root@host2~]# rpm -q nfs-utils
nfs-utils-1.2.3-54.el6.x86_64
[root@host21 ~]#
(as also observed by zhouweigang09)

Comment 8 RHEL Program Management 2021-02-15 07:31:38 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


Note You need to log in before you can comment on or make changes to this bug.