Greetings, I don't know how common an issue this is as I haven't found much in the list archives that was helpful to me, so I'm hoping for some pointers. FYI, we have samba 2.3.3a-6 running on the 2.4.18-10 kernel. There seems to be an issue with smbfs mounts at times where connectivity may be lost (e.g. Win share becomes unavailable) causing local processes such as lsof or ps, among others, to hang. We've tried passing the "-o sockopt=SO_KEEPALIVE" parameter, but that doesn't seem to have made any difference. How do we set the keepalive time for these smbmounts? Does it use the value in smb.conf? Are we missing something else? The man page for smb.conf seems to suggest using either the IPTOS_LOWDELAY or IPTOS_LOWDELAY/TCP_NODELAY in a local network, and then suggests IPTOS_THROUGHPUT for WANs (it doesn't say if only this flag, or in addition to the previous). We haven't tried either because the document isn't clear. This needs to work in both a LAN and WAN. Are we missing something fundamental in trying to make this stable? Is this even achievable, or is this inherent to this type of connectivity? Regards, Richard Duran __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com
On Wed, 16 Oct 2002 11:43:30 -0700 (PDT), Richard Duran <duranr@yahoo.com> wrote:>There seems to be an issue with smbfs mounts at times >where connectivity may be lost (e.g. Win share becomes >unavailable) causing local processes such as lsof or >ps, among others, to hang.http://www.hojdpunkten.ac.se/054/samba/ -- giulioo@pobox.com
Thank you for the URL. That will be a good reference in the future, but for now, I feel that some questions remain unanswered. 1. Does smbmount use a keep alive time setting? 2. Does smbmount use the smb.conf file? Regards, -Richard Duran --- Giulio Orsero <giulioo@pobox.com> wrote:> On Wed, 16 Oct 2002 11:43:30 -0700 (PDT), Richard > Duran <duranr@yahoo.com> > wrote: > > >There seems to be an issue with smbfs mounts at > times > >where connectivity may be lost (e.g. Win share > becomes > >unavailable) causing local processes such as lsof > or > >ps, among others, to hang. > http://www.hojdpunkten.ac.se/054/samba/ > > -- > giulioo@pobox.com > -- > To unsubscribe from this list go to the following > URL and read the > instructions:http://lists.samba.org/mailman/listinfo/samba __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com
> I posted the url because it has smbfs patches for > "receive timeout > ..avoiding D state for offline servers" which seemed > your problem. > Don't know the answer to you questions. But, if you > rephrase them to use > "smbfs" in place of "smbmount" (which is an helper), > I'd say > 1. with patch > 2. no > > -- > giulioo@pobox.comThank you for clearing that up. Since we are running kernel 2.4.18, and this patch appears to apply to 2.4.4, is it safe to assume that this patch need not be applied? Regards, -Richard Duran __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com
On Thu, 17 Oct 2002, Richard Duran wrote:> 1. Does smbmount use a keep alive time setting?No.> 2. Does smbmount use the smb.conf file?Yes, for some things (debug level, workgroup name, and possibly something more). The patch you are looking for is in 2.4.20-preX. But it has nothing to do with keepalive, it adds a timeout to all attempts to send. /Urban