LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-05-2013, 04:23 PM   #1
Thaler
LQ Newbie
 
Registered: Aug 2013
Posts: 4

Rep: Reputation: Disabled
CIFS Unexpected lookup error -112


Several of these errors show up and videos from the share load slow--about 30 seconds delay.

I've kinda pegged it to network interruptions. On the other hand a problem like this happened with a mysql site where pages would load similarly slow and that solution was adding TCP_NODELAY to the mysql config file.

Now, I've added

Code:
[global]
socket options = TCP_NODELAY
to /etc/samba/smb.conf to no effect and this cifs guide says cifs doesn't even look at smb.conf. This is a client cifs mounting a Windows share.

http://pserver.samba.org/samba/ftp/c...ient-guide.pdf

Would there be some place else to add socket options? In /proc or the fstab file? I've looked and hadn't found it yet.

Thanks.
 
Old 08-06-2013, 12:04 PM   #2
Thaler
LQ Newbie
 
Registered: Aug 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
It looks like there is no way to add socket options manually or by fstab for cifs client.

On Mon, Aug 24, 2009 at 9:50 AM, Jeff Layton<jlayton <at> redhat.com> wrote:
> On Sun, 23 Aug 2009 20:21:10 -0400
> Timothy Normand Miller <theosib <at> gmail.com> wrote:
>
>> Hi, everyone.
>>
>> I've noticed that the cifs client for Linux is slow over gigabit
>> ethernet. It seems to max out at about 10 megs/sec, while the drives
>> can go a lot faster. Also, if I mount the same network share from a
>> Mac, it's a lot faster. When _sharing_ via samba, one can set the
>> TCP_NODELAY option (among others), which fixes the problem. But with
>> the cifs client, I find that there appears to be no way to set the
>> option. When mounting manually, you can use "-o sockopt=TCP_NODELAY",
>> and you can also put that into /etc/fstab. Either way, the option
>> appears to be ignored.
>>
>
> Yeah. The sockopt= option is completely ignored. I proposed a patch
> to remove it not too long ago...




http://permalink.gmane.org/gmane.lin...tems.cifs/5175
 
Old 08-07-2013, 07:38 AM   #3
Thaler
LQ Newbie
 
Registered: Aug 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
The fix for our slow site wasn't TCP_NODELAY in the MySQL my.cnf file, it was:
[mysqld]
skip-name-resolve
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cifs "mount error 13 = Permission denied" CIFS SUCKS humbletech99 Linux - Networking 45 04-06-2020 05:31 AM
CIFS VFS Unexpected SMB Signature ostrosky.jeremiah Mandriva 0 03-13-2012 12:14 AM
[SOLVED] 10.112.112.112 gateway in my wireless router - what does it mean? igadoter Linux - Networking 15 09-08-2010 02:15 PM
cifs + autofs failed to lookup (program) UltraSoul Linux - Software 0 06-22-2008 09:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration