LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-11-2014, 12:19 PM   #16
badtlc
LQ Newbie
 
Registered: Feb 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by nini09 View Post
TCP setting on Windows and Linux could cause the issue. Following link tell you how to tuning TCP setting on Linux. You should pay attention on congestion avoidance algorithm and timestamp.
http://thesimplecomputer.info/advent...-tuning-page2/
I have disabled time stamps and increased TCP windows previously with no change in throughput. I don't think it is a TCP setting issue, at least I hope not. Maybe the RTT is large enough I didn't set them properly.
 
Old 02-11-2014, 01:00 PM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
Have you check the transfer speed with the share mounted yet?
 
Old 02-11-2014, 02:25 PM   #18
badtlc
LQ Newbie
 
Registered: Feb 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Have you check the transfer speed with the share mounted yet?
I have not. My spare time at home has been greatly limited lately but I'm hoping to by this weekend at the latest.
 
Old 02-11-2014, 02:41 PM   #19
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
On Linux, you mentioned CPU usage is low. Is this per thread/core number or entire CPU number? Is all core used during transmission?
 
Old 02-12-2014, 09:06 AM   #20
badtlc
LQ Newbie
 
Registered: Feb 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nini09 View Post
On Linux, you mentioned CPU usage is low. Is this per thread/core number or entire CPU number? Is all core used during transmission?
It tops out around 15% total but I'm not sure if that is at lowest or highest speed. Either way, CPU is nowhere near getting tested.
 
Old 02-12-2014, 09:12 AM   #21
badtlc
LQ Newbie
 
Registered: Feb 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
]

mount -t cifs //windows/share /media/windows_mountpoint (create a mount point of your own choosing)

P.S I believe that Thunar also uses gvfs which could be the same reason why it is slow.
Ok, i'm working on this now. My linux box isn't resolving shares by name right now since it is on bcast. is it ok to use IP such as "//ip of windows machine/share"?

EDIT: I'm trying to use IP instead of computer name but it isn't letting me access the folder. the windows share requires user/pw and I think the terminal is trying to use "root" as the username instead of the correct username. ARg...

Last edited by badtlc; 02-12-2014 at 09:16 AM.
 
Old 02-12-2014, 09:24 AM   #22
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
try:

mount -t cifs //windows/share /media/windows_mountpoint -o username=my_user_name,password=my_password
 
Old 02-12-2014, 09:37 AM   #23
badtlc
LQ Newbie
 
Registered: Feb 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
try:

mount -t cifs //windows/share /media/windows_mountpoint -o username=my_user_name,password=my_password
OK, mount command worked. Now how do I test the file transfer? Can I use Thunar for the transfer or does it need to be command line?
 
Old 02-12-2014, 09:38 AM   #24
badtlc
LQ Newbie
 
Registered: Feb 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
YES! Used thunar and transfer speeds are 10.8 MB/s+!!! Thank you so much.

Now what the heck did this do in a nutshell? Mount as CIFS instead of whatever is default?
 
Old 02-12-2014, 10:00 AM   #25
badtlc
LQ Newbie
 
Registered: Feb 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
Also, what is the best way to setup this network? Do I need to setup the linux box as a WINS server and direct all windows machines to it? Does it matter?

My machines are DHCP so this mount command I'm using right now is only temporary. The windows machine also goes on and off a lot so I don't want the mount always connected. Is there a way to set cifs as the default method when mounting a network share through Thunar or something? I'd like to not have to do the command line mount every time I need to send files.

Also, this command only gives me read access to the windows share. how do i get write access?
 
Old 02-12-2014, 11:53 AM   #26
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
WINS in a nutshell is a centralized netbios "DNS". linux can not automatically map netbios names to IP addresses so it would be the easiest method vs using a real DNS. Assuming you are using a typical home/SOHO router you could always configure it's DHCP server to provide the same IP for a particular MAC assuming it has that capability.

I do not know if you can change the built in smb client to use mount.cifs.

Check out autofs. It is designed to automatically mount shares on demand.

Try using the options file_mode=0777,dir_mode=0777 for read/write access.

If you want to hide the username,password from world view you can use a credentials file.

As I tried to describe in my other posts you are using two different clients to talk to the windows box i.e. mount.cifs vs the file browsers gvfs. gvfs it appears has some bugs.

Last edited by michaelk; 02-12-2014 at 11:58 AM.
 
Old 02-12-2014, 01:34 PM   #27
badtlc
LQ Newbie
 
Registered: Feb 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
With WINS setup properly, I should be able to ping a PC by name instead of IP, correct? I know this is possible but not sure what all I need to do so that linux resolves by name instead of IP. My router DHCP is configurable, but I prefer not having static IPs for my own silly reasons.
 
Old 02-12-2014, 01:59 PM   #28
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
Just requires a bit more config changes for linux to resolve netbios names to IP. Search for more info.
http://www.linuxquestions.org/questi...-samba-271336/
 
Old 02-12-2014, 02:54 PM   #29
badtlc
LQ Newbie
 
Registered: Feb 2014
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Just requires a bit more config changes for linux to resolve netbios names to IP. Search for more info.
http://www.linuxquestions.org/questi...-samba-271336/
I have done all that. The win7 box shows up in my wins.dat file. So my WINS server appears to be working but i cannot ping the win7 machine by name, just IP. I have searched and can't figure out what setting I'm missing.
 
Old 02-12-2014, 03:37 PM   #30
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
Just make sure all core/thread be involved.
 
  


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
transfer speeds Eppo Linux - Hardware 3 01-03-2011 04:44 PM
Transfer Speeds jackpal Linux - Networking 5 02-05-2008 07:51 PM
CoLo transfer speeds blizunt7 Linux - Networking 3 04-19-2007 12:02 AM
Very slow transfer speeds via LAN TBomb Linux - Networking 6 07-26-2005 08:34 AM
How can i get higher transfer speeds on my small LAN? Klas Linux - Networking 3 03-18-2004 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:38 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