Re: [Samba] Dynamic Link Aggregation via Samba

2009-10-11 Thread Patrik
Hi Adam,

Do you have any idea why SMB on MAC would be half the speed than AFP? (
As mentioned below). I.e. do you have any recommendations on better
socket options or similar that could yield a higher speed over SMB?

Best, Patrik

>>>>> -Original Message-
>>>>> From: Patrik [mailto:patr...@scientology.net]
>>>>> Sent: Wednesday, 7 October 2009 15:09
>>>>> To: Adam Nielsen
>>>>> Subject: Re: [Samba] Dynamic Link Aggregation via Samba
>>>>>
>>>>> Hi Adam,
>>>>>
>>>>> Thanks for your reply. In regards to speed I meant 600 Megabytes per
>>>>> second. I.e. I bonded 6 Gigabit ports together on my server.
>>>>>
>>>>> AFP stands for AppleTalk Filing Protocol. The protocol that non-Apple
>>>>> networks need to use in order to access data in an AppleTalk server.
>>>>>
>>>>> I have a gigabit NIC (network interface card) in my G5 on my desktop.
>>>>> Gigabit is about 123 Megabytes per second per what I gathered on the
>>>>> net. However when you have more users and traffic you can actually never
>>>>> reach that full spectrum more like 40 MB/s. By adding Network interface
>>>>> cards to my server and bonding them I was able to up the speed via
>>>>> Appletalk up to about 90-100 Megabytes per second stably - closer to
>>>>> home. However via SMB I was not able to get that speed increase.
>>>>>
>>>>> I literally copy the same file just using the other protocol and the
>>>>> speed goes down. Then when I copy the file via AFP I get the expected
>>>>> result.
>>>>>
>>>>> I was told it has to do with the socket options of SMB and how Samba
>>>>> passes packets over to the TCP IP layer etc. So I increased the sendbuff
>>>>> size on my CentOS server but this did not result in the increase I
>>>>> expected. Still about 53 Megabytes per second. So I am looking for any
>>>>> info on how to get max bandwidth over gigabit via Samba. I.e. other
>>>>> settings that I need to tweak? Or maybe settings that I have to change
>>>>> on my G5 in terminal? Any ideas?
>>>>>
>>>>> The server is capable of 250 Megabytes per second write speed that I am
>>>>> trying to connect to. (that is not that fast but still faster than the
>>>>> network speed.)
>>>>>
>>>>> Best, Patrik
>>>>>
>>>>> PS: Are the pgms you mentioned available for Power PCs (the older
>>>>> non-intel based macs? Also would they help me tweak Samba or more for
>>>>> speed checking?
>>>>>
>>>>> Adam Nielsen wrote:
>>>>>   
>>>>>   
>>>>>>> I have run into the following I bonded 6 NICs on my Cent OS server
>>>>>>>   
>>>>>>>   
>>>> into
>>>> 
>>>> 
>>>>>>> a 600MB pipe. I use bond method 4 = dynamic Link aggregation. My Cysco
>>>>>>> Switch supports this apparently.
>>>>>>>
>>>>>>>   
>>>>>>>   
>>>>>> Do you mean your aggregated bandwidth is 600Mbps (megabits/sec) or
>>>>>> 600MBps (megabytes/sec)?  I'm assuming 6 x 10/100 == 600Mbps.
>>>>>>
>>>>>>  
>>>>>> 
>>>>>> 
>>>>>>> I did these changes and still top out at 53 MB/s however via AFP I am
>>>>>>> able to get an average of 90MB/s up to tops 103MB/s. It seems
>>>>>>>   
>>>>>>>   
>>>> really odd
>>>> 
>>>> 
>>>>>>> that I cannot tweak SMB to utilize the pipe properly. Any ideas on
>>>>>>>   
>>>>>>>   
>>>> what
>>>> 
>>>> 
>>>>>>> settings I need to tweak to make this work?
>>>>>>>
>>>>>>>   
>>>>>>>   
>>>>>> I'm afraid I don't know what AFP is, but on a 600Mbps network link your
>>>>>> maximum throughput will be ~60MB/sec, so it seems that 53MB/sec isn't
>>>>>> that bad.  I'm not sure how you can get 100+MB/sec as that's gigabit
>>>>>> 
>>>>>> 
>>>> speed.
>>>> 
>>>> 
>>>>>> You could use a program like ttcp to verify how much data you can move
>>>>>> over your network link, and a program like Bonnie to see how much data
>>>>>> you can read off your disk.  If you have slow disks it won't matter how
>>>>>> much network bandwidth you have available.  (Unless you share a tmpfs
>>>>>> filesystem over Samba for testing.)
>>>>>>
>>>>>> Cheers,
>>>>>> Adam.
>>>>>>
>>>>>>
>>>>>>  
>>>>>> 
>>>>>> 
>>>> 
>>>> 
>>>   
>>>   
>
>   

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Dynamic Link Aggregation via Samba

2009-10-11 Thread Adam Nielsen
> Do you have any idea why SMB on MAC would be half the speed than AFP? (
> As mentioned below). I.e. do you have any recommendations on better
> socket options or similar that could yield a higher speed over SMB?

In my experience SMB/CIFS is usually faster than other options (NFS in
my case) so AFP must be extremely efficient :-)

>> I have a gigabit NIC (network interface card) in my G5 on my desktop.
>> Gigabit is about 123 Megabytes per second per what I gathered on the
>> net. However when you have more users and traffic you can actually never
>> reach that full spectrum more like 40 MB/s. By adding Network interface
>> cards to my server and bonding them I was able to up the speed via
>> Appletalk up to about 90-100 Megabytes per second stably - closer to
>> home. However via SMB I was not able to get that speed increase.

I would start out by running ttcp (you can find the source freely
online) and do a proper benchmark just to see how much network bandwidth
you have available in an ideal case.

>> I literally copy the same file just using the other protocol and the
>> speed goes down. Then when I copy the file via AFP I get the expected
>> result.

Have you tried timing the copy time with a stopwatch and a large file?
Often the speeds reported by the OS can be questionable.

>> I was told it has to do with the socket options of SMB and how Samba
>> passes packets over to the TCP IP layer etc. So I increased the sendbuff
>> size on my CentOS server but this did not result in the increase I
>> expected. Still about 53 Megabytes per second. So I am looking for any
>> info on how to get max bandwidth over gigabit via Samba. I.e. other
>> settings that I need to tweak? Or maybe settings that I have to change
>> on my G5 in terminal? Any ideas?

Probably need to see what ttcp is reporting as available bandwidth
first, vs the real speeds you're getting (which you can work out from
the filesize and the stopwatch if you don't have anything more accurate.)

>> The server is capable of 250 Megabytes per second write speed that I am
>> trying to connect to. (that is not that fast but still faster than the
>> network speed.)

I assume nobody else is accessing the disk while you're performing the
tests?

>> PS: Are the pgms you mentioned available for Power PCs (the older
>> non-intel based macs? Also would they help me tweak Samba or more for
>> speed checking?

Both are open source and will compile anywhere Samba does.  It won't
help you tweak Samba but it will make it clear where you stand and if
you really do have a problem.

Cheers,
Adam.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Dynamic Link Aggregation via Samba

2009-10-06 Thread Adam Nielsen
> I have run into the following I bonded 6 NICs on my Cent OS server into
> a 600MB pipe. I use bond method 4 = dynamic Link aggregation. My Cysco
> Switch supports this apparently.

Do you mean your aggregated bandwidth is 600Mbps (megabits/sec) or
600MBps (megabytes/sec)?  I'm assuming 6 x 10/100 == 600Mbps.

> I did these changes and still top out at 53 MB/s however via AFP I am
> able to get an average of 90MB/s up to tops 103MB/s. It seems really odd
> that I cannot tweak SMB to utilize the pipe properly. Any ideas on what
> settings I need to tweak to make this work?

I'm afraid I don't know what AFP is, but on a 600Mbps network link your
maximum throughput will be ~60MB/sec, so it seems that 53MB/sec isn't
that bad.  I'm not sure how you can get 100+MB/sec as that's gigabit speed.

You could use a program like ttcp to verify how much data you can move
over your network link, and a program like Bonnie to see how much data
you can read off your disk.  If you have slow disks it won't matter how
much network bandwidth you have available.  (Unless you share a tmpfs
filesystem over Samba for testing.)

Cheers,
Adam.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Dynamic Link Aggregation via Samba

2009-10-05 Thread Patrik
Hi,

I have run into the following I bonded 6 NICs on my Cent OS server into
a 600MB pipe. I use bond method 4 = dynamic Link aggregation. My Cysco
Switch supports this apparently.

However I only get increased bandwidth from my MAC by connecting via
AFP. However when I connect via SMB I don't. I was told to change the
sockect options to the following on my smb.conf file on my fileserver:

socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
SO_SNDBUFF=2048000 SO_RCVBUFF=2048000

large readwrite=yes
read raw= yes
write raw= yes

I did these changes and still top out at 53 MB/s however via AFP I am
able to get an average of 90MB/s up to tops 103MB/s. It seems really odd
that I cannot tweak SMB to utilize the pipe properly. Any ideas on what
settings I need to tweak to make this work?

Any help would be appreciated.

Best, Patrik
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba