Skip to content

Commit f64f308

Browse files
committed
nfs: bump max IO size to 16MB
From issue#145 ``` JAVA's TCP offload support only kicks in if the buffer size is >= 4*default huge page size. Default huge page size on x86-64 is 2MB, therefore at least a 8MB buffer is needed. ``` Fixes: #145 Acked-by: Paul Millar Target: master
1 parent eeffe25 commit f64f308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/dcache/nfs/v4/NFSv4Defaults.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public interface NFSv4Defaults {
3131
/**
3232
* maximal read/write buffer size.
3333
*/
34-
public static final long NFS4_MAXIOBUFFERSIZE = 1024*1024*4;
34+
public static final long NFS4_MAXIOBUFFERSIZE = 1024*1024*16; // 16MB
3535

3636
// theoretically, there is no limit on file size
3737
public final static long NFS4_MAXFILESIZE = Long.MAX_VALUE;

0 commit comments

Comments
 (0)