Skip to contentSkip to conversation

nfsroot 8k block size

DISCUSSION Aleksey Senin 2 participants 6 messages May 9, 2005 VFS

lore
Share & tools
lore
#0 lore raw

Is there any reason, why when I using nfsroot, I NFS client not using block size larger then 8k, even if I define it on command line :

nfsroot=XXX:/bla/bla/bla,rsize=32768,wsize=32768,v3,tcp

#1 lore raw

må den 09.05.2005 Klokka 14:13 (+0300) skreiv Aleksey Senin:

Quoted 4 lines

Is there any reason, why when I using nfsroot, I NFS client not using block size larger then 8k, even if I define it on command line :

nfsroot=XXX:/bla/bla/bla,rsize=32768,wsize=32768,v3,tcp

Does your server actually support >8k r/wsize?

Cheers,
Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

Yes. If I boot client from the disk with the same kernel, I can mount directory /bla/bla/bla with block size 32k, it meant the command mount -t nfs -o rsize=32768,wsize=32768 XXX:/bla/bla/bla /tmp/client
work fine.
I'm using kernel 2.4.25 on the server side, and kernel 2.4.30 on the client side.

Quoted 5 lines · Trond Myklebust

må den 09.05.2005 Klokka 14:13 (+0300) skreiv Aleksey Senin:

Quoted 3 lines

Is there any reason, why when I using nfsroot, I NFS client not using block size larger then 8k, even if I define it on command line :

Quoted 8 lines
Quoted 1 line

nfsroot=XXX:/bla/bla/bla,rsize=32768,wsize=32768,v3,tcp

Does your server actually support >8k r/wsize?

Cheers,
Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

må den 09.05.2005 Klokka 14:53 (+0300) skreiv Aleksey Senin:

Quoted 6 lines

Yes. If I boot client from the disk with the same kernel, I can mount directory /bla/bla/bla with block size 32k, it meant the command mount -t nfs -o rsize=32768,wsize=32768 XXX:/bla/bla/bla /tmp/client work fine.
I'm using kernel 2.4.25 on the server side, and kernel 2.4.30 on the client side.

Only the 2.6 kernels support 32k by default. knfsd in kernel 2.4.25 only supports 8k r/wsizes unless you have been applying special patches. How are you checking that the block size is indeed being set to 32k on the client?

Note that /etc/fstab will lie: it just repeats your command line. The only way to really check is to use tcpdump or ethereal.

Cheers,
Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw

må den 09.05.2005 Klokka 08:33 (-0400) skreiv Trond Myklebust:

Quoted 9 lines

må den 09.05.2005 Klokka 14:53 (+0300) skreiv Aleksey Senin:

Quoted 6 lines

Yes. If I boot client from the disk with the same kernel, I can mount directory /bla/bla/bla with block size 32k, it meant the command mount -t nfs -o rsize=32768,wsize=32768 XXX:/bla/bla/bla /tmp/client work fine.
I'm using kernel 2.4.25 on the server side, and kernel 2.4.30 on the client side.

Only the 2.6 kernels support 32k by default.

Note: this applies to the knfsd server only. The clients have supported 32k ever since 2.4.0.

Cheers,
Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

I'm looking on the output from 'mount' command and in /proc/mounts file
It shows that nfsroot mounted with 8k block size when I using nfsroot. If client booted from disk it shows 32k.

I applied patches to the kernel on the server side, and it support 32k.

Quoted 9 lines · Trond Myklebust

må den 09.05.2005 Klokka 08:33 (-0400) skreiv Trond Myklebust:

Quoted 7 lines

må den 09.05.2005 Klokka 14:53 (+0300) skreiv Aleksey Senin:

Quoted 4 lines

Yes. If I boot client from the disk with the same kernel, I can mount directory /bla/bla/bla with block size 32k, it meant the command mount -t nfs -o rsize=32768,wsize=32768 XXX:/bla/bla/bla /tmp/client
work fine.
I'm using kernel 2.4.25 on the server side, and kernel 2.4.30 on the client side.

Quoted 9 lines
Quoted 1 line

Only the 2.6 kernels support 32k by default.

Note: this applies to the knfsd server only. The clients have supported 32k ever since 2.4.0.

Cheers,
Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html