LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-21-2007, 04:39 PM   #16
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908

Okay, it sounds like we may have to clarify something. When you use the terms 'upload' and 'download', it would be better to express this in terms of 'client' vs 'server'. The samba server and client components are distinctly different parts. When you are getting slow performance, what host (windows vs linux) is the server, and which is the client? It is possible that the bottleneck is on a windows host. There are four possible scenarios:

1. Linux read of smb mounted file from Windows host.
2. Linux write smb mounted file to Windows host.
3. Windows host writes to linux samba server.
4. Windwos host reads from linux samba server.

Which of these works adequately and which one(s) do not?
Have you verified that the same slow performance exists if the linux host is replaced with a windows host serving the same purpose (different hardware, too, would be best)? Just trying to establish whether there is a linux component to this, and/or whether there is a hardware issue.

--- rod.

Last edited by theNbomr; 02-21-2007 at 04:40 PM.
 
Old 02-22-2007, 04:27 AM   #17
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Original Poster
Rep: Reputation: 31
OK, sorry for being unclear. With Windows host you mean a Windows box acting as server (you can get files from the local hard drive on that Windows box)? Well there is none. The only server is that box.

I don't see any big difference if I'm using either a Linux or a Windows client for accessing that server. So scenario 3 and 4 are the case, with the nuance that instead Windows sometimes also Linux boxes are clients (so far there has never been more than one machine connected to the server at the same time).

I will also try to set up another Samba server an a more powerfull machine, but only this weekend.

So I have

Linux/Windows client -> Samba server (slow but usable, about 2.5 - 3 MB/sec)
Linux/Windows client <- Samba server (really painfully slow)

As said, no big performance difference if I use either Linux or Windows XP as a client, they are both equally slow (which is the reason I suspect the server). Also, there are different Samba clients: one that ships with Ubuntu Edgy the other that comes with Mandriva 2007. Same performance with both ...
 
Old 02-22-2007, 09:21 AM   #18
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Good. Now, since the server is set up with a full-fledged distro, it should be simple enough to enable other services on it, such as ssh, if it isn't already enabled by default. I would like you to try doing scp &/or sftp from the the server to another linux host in both of two scenarios:

1. logged into the server, scp/sftp someBigFile someOtherHost
2. logged into the other linux host, scp/sftp theSlowServer:/someBigFile .

This should tell something about whether the transfer speed is being limited by generic network level problems, or is specific to your Samba server. It may be relatively simple to set up the same sort of test using other services on your slow server, such as HTTP, ftp, NFS, etc. Also, I suggest setting up a test using a network transfer diagnostic tool such as iperf.

--- rod.
 
Old 02-23-2007, 02:20 PM   #19
snuffy115
LQ Newbie
 
Registered: Dec 2006
Posts: 25

Rep: Reputation: 0
Have you tried replacing the Ethernet cable between the slow server and the switch?
Or even just flipping the cable over?

Last edited by snuffy115; 02-23-2007 at 02:22 PM.
 
Old 02-23-2007, 05:11 PM   #20
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Yes, like I suggested in my first reply to this thread. Thanks for reinforcing that, snuffy115. In ethernet networking problems, the hardware has a higher probability of failure than for many other faults.

--- rod.
 
Old 02-24-2007, 08:48 AM   #21
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Original Poster
Rep: Reputation: 31
Let's try the SSH thing. Here sftp gives speeds server->client of about 1MB/sec. The cables seem OK by the way I just unplugged two cables on the machine side (other end stayed in switch) and it didn't change anything. The server still is slow for server->client transfers while the Windows labtop reaches 10MB/sec in both directions to a test "samba server" on my Mandriva box with the cable that was previously on the Ubuntu box.

Last edited by hansalfredche; 02-24-2007 at 08:49 AM.
 
Old 02-24-2007, 08:57 AM   #22
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Original Poster
Rep: Reputation: 31
OK, seems there is something wrong with the network after all, has somebody any clue what the numbers in TcpExt mean?

Quote:
netstat -s
Ip:
543039 total packets received
0 forwarded
0 incoming packets discarded
543039 incoming packets delivered
706746 requests sent out
Icmp:
0 ICMP messages received
0 input ICMP message failed.
ICMP input histogram:
0 ICMP messages sent
0 ICMP messages failed
ICMP output histogram:
Tcp:
0 active connections openings
21 passive connection openings
0 failed connection attempts
1 connection resets received
3 connections established
542423 segments received
706685 segments send out
57252 segments retransmited
0 bad segments received.
16 resets sent
Udp:
134 packets received
0 packets to unknown port received.
0 packet receive errors
61 packets sent
TcpExt:
4 TCP sockets finished time wait in fast timer
758 delayed acks sent
31 delayed acks further delayed because of locked socket
24 packets directly queued to recvmsg prequeue.
31232 packet headers predicted
222094 acknowledgments not containing data received
283240 predicted acknowledgments
42199 times recovered from packet loss due to SACK data
52703 TCP data loss events
60 timeouts after SACK recovery
52954 fast retransmits
420 forward retransmits
1717 retransmits in slow start
130 other TCP timeouts
1971 sack retransmits failed
2 times receiver scheduled too late for direct processing
5 connections reset due to unexpected data
5 connections reset due to early user close
 
Old 05-27-2007, 11:58 AM   #23
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Original Poster
Rep: Reputation: 31
OK, I found the problem finally. It was the network card. Or something that has to do with it. At least replacing it improved the overall network performance and the server now reaches about 4MB/sec in both directions, which is a big improvement.

Big thanks to all who helped.
 
Old 06-15-2007, 05:54 AM   #24
DeanS
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Rep: Reputation: 0
Did anybody find a fix for the high CPU usage of /index_cpu.cgi? I have this running at 78% on a ClarkConnect server. File serving is really suffering, and media streaming is unwatchable.

4516 root 78.0 % /usr/libexec/webmin/proc/index_cpu.cgi

Any ideas what causes this / how to address?

BTW -- I have used other distributions (Puppy Linux, NASLite) and file serving is fine. So, I think that this is not a hardware issue, so must be a config, driver or software issue of ClarkConnect

Last edited by DeanS; 06-15-2007 at 05:57 AM.
 
  


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
Control multiple machine from one machine with help of network spinner_0 Linux - Networking 4 10-27-2005 07:20 AM
network performance question synaptical Linux - Networking 4 10-18-2004 10:03 AM
Pathetic network performance costyn Linux - Hardware 1 08-22-2004 10:36 AM
linux machine does not connect to the network in windows network Bzuco Linux - Networking 2 07-19-2004 04:44 AM
network performance tuning Skunk_Face Linux - Networking 1 04-16-2004 05:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:00 AM.

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