NFS Timeout with large files.
Hi all,
I am facing a timeout problem with nfs while transferring large files. However i encounter no problem with smaller files.
The entire thing works fine with another nfs server.
Any hints on what could be the problem ??
Signature · 2 lines
Regards, Upakul Barkakaty
Hello, Upakul
I got same experience.
U-boot NFS command do not retry to send a command again. so, when the packet is lost, It will cause timeout.
with this patch, it should fix.
but this is very old code. so, I don't know, it can applys to current one.
Regards
--------
Hiroshi Ito
Media Lab. Inc.,
URL http://www.mlb.co.jp ( Sorry, Japanese only. ) TEL +81-3-5294-7255 FAX +81-3-5294-7256
From: "Upakul Barkakaty" <[email protected]>
Subject: [U-Boot-Users] NFS Timeout with large files.
Date: Wed, 30 Jan 2008 11:55:18 +0530
Quoted 22 lines
Hi all,
I am facing a timeout problem with nfs while transferring large files. However i encounter no problem with smaller files.
The entire thing works fine with another nfs server.
Any hints on what could be the problem ??
Signature · 11 lines
Regards, Upakul Barkakaty ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
-------------- next part --------------
commit cbba3261e3cf434e36aa64efe0d36e430f4e5152
Author: <[email protected]> Date: Wed Aug 30 15:48:36 2006 +0900
nfs comand retrys read when timeouts are caused.
net/nfs.c +6 -1
@@ -34,7 +34,8 @@#if ((CONFIG_COMMANDS &CFG_CMD_NET ) && (CONFIG_COMMANDS &CFG_CMD_NFS ))#define HASHES_PER_LINE 65/* Number of "loading" hashes per line */ -#define NFS_TIMEOUT 60 +#define NFS_RETRY_COUNT 30 +#define NFS_TIMEOUT 2static int fs_mounted =0 ;static unsigned long rpc_id =0 ;
@@ -587,6 +588,10 @@ Interfaces of U-BOOTstatic void NfsTimeout (void ) { +if ( NfsTimeoutCount++ <NFS_RETRY_COUNT ) { +NfsSend (); +return ; + }puts ("Timeout\n" ); NetState =NETLOOP_FAIL ;return ;
Quoted 69 lines · Hiroshi Ito
Hello, Upakul
I got same experience.
U-boot NFS command do not retry to send a command again. so, when the packet is lost, It will cause timeout.
with this patch, it should fix.
but this is very old code. so, I don't know, it can applys to current one.Regards
--------
Hiroshi Ito
Media Lab. Inc.,
URL http://www.mlb.co.jp ( Sorry, Japanese only. ) TEL +81-3-5294-7255 FAX +81-3-5294-7256From: "Upakul Barkakaty" <[email protected]>
Subject: [U-Boot-Users] NFS Timeout with large files.
Date: Wed, 30 Jan 2008 11:55:18 +0530Quoted 13 lines
Hi all,
I am facing a timeout problem with nfs while transferring large files. However i encounter no problem with smaller files.
The entire thing works fine with another nfs server.
Any hints on what could be the problem ??
--
Regards,
Upakul BarkakatyQuoted 9 lines
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-userscommit
cbba3261e3cf434e36aa64efe0d36e430f4e5152Author: <[email protected]> Date: Wed Aug 30 15:48:36 2006 +0900nfs comand retrys read when timeouts are caused.
net/nfs.c +2
-1@@ -34,7 +34,8 @@#if ((CONFIG_COMMANDS &CFG_CMD_NET ) && (CONFIG_COMMANDS &CFG_CMD_NFS ))#define HASHES_PER_LINE 65/* Number of "loading" hashes per line */ -#define NFS_TIMEOUT 60 +#define NFS_RETRY_COUNT 30 +#define NFS_TIMEOUT 2static int fs_mounted =0 ;static unsigned long rpc_id =0 ;
net/nfs.c Interfaces of U-BOOT · line 597
Quoted 10 lines
net/nfs.c +4
-0@@ -587,6 +588,10 @@ Interfaces of U-BOOTstatic void NfsTimeout (void ) { +if ( NfsTimeoutCount++ <NFS_RETRY_COUNT ) { +NfsSend (); +return ; + }puts ("Timeout\n" ); NetState =NETLOOP_FAIL ;return ;
Thanks for the info, Hiroshi.
Signature · 2 lines
Regards, Upakul Barkakaty
Dear Hiroshi Ito,
Quoted 6 lines · in message <[email protected]> you wrote:
U-boot NFS command do not retry to send a command again. so, when the packet is lost, It will cause timeout.
with this patch, it should fix.
but this is very old code. so, I don't know, it can applys to current one.
We'll make it fit, if necessary. Could you please re-post this as a proper patch (see http://www.denx.de/wiki/UBoot/Patches); please especially make sure to include your signed-off-by line.
Thanks.
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Remember, an int is not always 16 bits. I'm not sure, but if the 80386 is one step closer to Intel's slugfest with the CPU curve that is aymptotically approaching a real machine, perhaps an int has been implemented as 32 bits by some Unix vendors...? - Derek Terveer
PATCH 1/1 NFS Timeout with large files.
Retry to send NFS packet before reaching timeout.
---
net/nfs.c +6 -1
@@ -34,7 +34,8 @@#if ((CONFIG_COMMANDS &CFG_CMD_NET ) && (CONFIG_COMMANDS &CFG_CMD_NFS ))#define HASHES_PER_LINE 65/* Number of "loading" hashes per line */ -#define NFS_TIMEOUT 60 +#define NFS_RETRY_COUNT 30 +#define NFS_TIMEOUT 2static int fs_mounted =0 ;static unsigned long rpc_id =0 ;
@@ -587,6 +588,10 @@ Interfaces of U-BOOTstatic void NfsTimeout (void ) { +if ( NfsTimeoutCount++ <NFS_RETRY_COUNT ) { +NfsSend (); +return ; + }puts ("Timeout\n" ); NetState =NETLOOP_FAIL ;return ;
Wolfgang Denk
AppliedPATCH 1/1 NFS Timeout with large files.
Quoted 3 lines · In message <[email protected]> you wrote:
Retry to send NFS packet before reaching timeout.
Signed-off-by Hiroshi Ito <[email protected]>
Applied, thanks a lot.
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Space is big. You just won't believe how vastly, hugely, mind-
bogglingly big it is. I mean, you may think it's a long way down the
road to the drug store, but that's just peanuts to space.
-- The Hitchhiker's Guide to the Galaxy