Networking Forums

Networking Forums > Computer Networking > Linux Networking > nfs and 2.4 / 2.6 compatibility

Reply
Thread Tools Display Modes

nfs and 2.4 / 2.6 compatibility

 
 
Gabriele Brugnoni
Guest
Posts: n/a

 
      12-01-2005, 11:39 AM
Hello,

I've a server running a Debian Linux with kernel 2.4.27
Since some days ago, i used a Suse 9.1 Linux desktop pc that mounts a nfs
shared directory from server, and was working fine. The kernel of this
desktop PC was 2.6.5

I've upgraded the desktop PC with a Suse 9.3 linux, based on a kernel 2.6.11
and after this upgrade all nfs operations are very slow.

For example, my 2.4.27 server share the directory /home/myshare.

On desktop PC, the /home/myshare is mounted on /mnt/myshare.

With the previous version of kernel, read and write operations on this mount
point was very fast.

After the kernel upgrade, write operation are very slow, data read seems
slower than previous kernel, and often i have several files like:

..nfs002115f300000008

on the directories.
Here is an example:
# ls -la
-rw-r--r-- 1 dve dve 1100 2005-11-15 10:02 Makefile
-rwxr-xr-x 1 dve dve 81292 2005-11-14 18:28 .nfs002115f300000008*
-rwxr-xr-x 1 dve dve 102399 2005-11-15 18:44 .nfs0022a8e900000002*
-rwxr-xr-x 1 dve dve 81292 2005-11-14 18:32 .nfs0022a8ea00000009*
-rwxr-xr-x 1 dve dve 64614 2005-11-09 16:30 .nfs002545d000000002*
-rwxr-xr-x 1 dve dve 64790 2005-11-09 16:34 .nfs0025fe2a00000003*
-rwxr-xr-x 1 dve dve 81284 2005-11-14 16:54 .nfs002614dc00000007*
-rwxr-xr-x 1 dve dve 108063 2005-11-23 13:53 .nfs002614e400000001*
-rwxr-xr-x 1 dve dve 108287 2005-11-23 15:05 .nfs0026190d00000002*
-rwxr-xr-x 1 dve dve 108363 2005-11-23 15:53 .nfs0026191600000005*
-rwxr-xr-x 1 dve dve 108287 2005-11-23 15:09 .nfs0026191900000003*
-rwxr-xr-x 1 dve dve 108363 2005-11-23 15:55 .nfs0026191b00000006*
-rwxr-xr-x 1 dve dve 108319 2005-11-23 15:24 .nfs00261ef700000004*
-rwxr-xr-x 1 dve dve 108767 2005-11-28 16:18 .nfs0026202d00000002*


All other files seems good, and no messages appears on client/server log.
Another thing: when writing a big file i notice that the CPU usage is very
low, but the writing program take a long time to write the file. (For
example a simple cp of a local file to a remote directory).

Does anybody have an idea on what kind of problem may be that ?


Thank you

Gabriele
 
Reply With Quote
 
 
 
 
EricT
Guest
Posts: n/a

 
      12-02-2005, 08:49 PM
Gabriele Brugnoni wrote:
> Hello,
>
> I've a server running a Debian Linux with kernel 2.4.27
> Since some days ago, i used a Suse 9.1 Linux desktop pc that mounts a nfs
> shared directory from server, and was working fine. The kernel of this
> desktop PC was 2.6.5
>
> I've upgraded the desktop PC with a Suse 9.3 linux, based on a kernel 2.6.11
> and after this upgrade all nfs operations are very slow.
>
> For example, my 2.4.27 server share the directory /home/myshare.
>
> On desktop PC, the /home/myshare is mounted on /mnt/myshare.
>
> With the previous version of kernel, read and write operations on this mount
> point was very fast.
>
> After the kernel upgrade, write operation are very slow, data read seems
> slower than previous kernel, and often i have several files like:
>
> .nfs002115f300000008
>
> on the directories.
> Here is an example:
> # ls -la
> -rw-r--r-- 1 dve dve 1100 2005-11-15 10:02 Makefile
> -rwxr-xr-x 1 dve dve 81292 2005-11-14 18:28 .nfs002115f300000008*
> -rwxr-xr-x 1 dve dve 102399 2005-11-15 18:44 .nfs0022a8e900000002*
> -rwxr-xr-x 1 dve dve 81292 2005-11-14 18:32 .nfs0022a8ea00000009*
> -rwxr-xr-x 1 dve dve 64614 2005-11-09 16:30 .nfs002545d000000002*
> -rwxr-xr-x 1 dve dve 64790 2005-11-09 16:34 .nfs0025fe2a00000003*
> -rwxr-xr-x 1 dve dve 81284 2005-11-14 16:54 .nfs002614dc00000007*
> -rwxr-xr-x 1 dve dve 108063 2005-11-23 13:53 .nfs002614e400000001*
> -rwxr-xr-x 1 dve dve 108287 2005-11-23 15:05 .nfs0026190d00000002*
> -rwxr-xr-x 1 dve dve 108363 2005-11-23 15:53 .nfs0026191600000005*
> -rwxr-xr-x 1 dve dve 108287 2005-11-23 15:09 .nfs0026191900000003*
> -rwxr-xr-x 1 dve dve 108363 2005-11-23 15:55 .nfs0026191b00000006*
> -rwxr-xr-x 1 dve dve 108319 2005-11-23 15:24 .nfs00261ef700000004*
> -rwxr-xr-x 1 dve dve 108767 2005-11-28 16:18 .nfs0026202d00000002*
>
>
> All other files seems good, and no messages appears on client/server log.
> Another thing: when writing a big file i notice that the CPU usage is very
> low, but the writing program take a long time to write the file. (For
> example a simple cp of a local file to a remote directory).
>
> Does anybody have an idea on what kind of problem may be that ?
>
>
> Thank you
>
> Gabriele


this might be a nfs version change (1 to 2) between SuSE 9.1 and 9.3. I
do not think it is a kernel matter.

Check wich server version you are running and configure the client
version as needed within the mount options (nfsvers=x).

greetz,
Eric
 
Reply With Quote
 
Gabriele Brugnoni
Guest
Posts: n/a

 
      12-05-2005, 06:33 AM
EricT wrote:
>
> this might be a nfs version change (1 to 2) between SuSE 9.1 and 9.3. I
> do not think it is a kernel matter.
>
> Check wich server version you are running and configure the client
> version as needed within the mount options (nfsvers=x).
>
> greetz,
> Eric



Thank you Eric,

After having checked the nfs versions supported in 2.4.27 (patched to
supports the window size of 32K),
i've tried the followings options in fstab:

rw,rsize=32768,wsize=32768,nfsvers=3


Things seems to works fine now (i hope).

Regards,
Gabriele

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WPA-PSK compatibility Tatar Wireless Networks 1 03-17-2009 04:49 PM
Compatibility between 802.16 and 802.11 kaavla@gmail.com Wireless Internet 1 05-24-2005 05:50 PM
Compatibility Nick Broadband Hardware 6 01-19-2005 10:45 PM
SP2 & MN-500 Compatibility Todd Broadband Hardware 4 10-17-2004 11:37 AM
Compatibility with SP2? Ken Broadband Hardware 2 09-12-2004 04:08 PM



1 2 3 4 5 6 7 8 9 10 11