Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
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: NEW
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: 2018-12-02 02:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


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)


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