Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2004 09:10:58 -0800 (PST)
From:      tom hensel <tom@replic8.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/62168: bad performance using samba-devel with macos x clients
Message-ID:  <200401311710.i0VHAwqj019952@www.freebsd.org>
Resent-Message-ID: <200401311720.i0VHKHxF028173@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         62168
>Category:       misc
>Synopsis:       bad performance using samba-devel with macos x clients
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 31 09:20:17 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     tom hensel
>Release:        4.9-STABLE, 5.2-CURRENT
>Organization:
>Environment:
FreeBSD server.rpdnet.com 4.9-STABLE FreeBSD 4.9-STABLE #0: Wed Jan 28 10:10:19 GMT 2004     root@server.whatever.com:/usr/obj/usr/src/sys/SERVER  i386

as well as a 5.2-CURRENT i386 machine not accesible remotely right now,
userland and kernel built about 10 days ago.
>Description:
two freebsd machines, 4.9-STABLE and 5.2-CURRENT, running samba-devel built from the same revision of the port. as long as samba is being accessed from windows clients (tested 2000 sp5 and sp6, xp sp1, xp pre-sp2) the performance is very good (up to 8mb/s on 100mbit ethernet). accessing samba using macos x (tested with 10.1, 10.2, 10.3) results in very bad performance on reading as well as writing; while i haven't measured the exact bandwidth the macos x window showing the transfer status reads about 128kb every second or so. it's always incrementing in 128kb blocks.

the 4.9-STABLE machine runs ports/net/netatalk to provide fileserver service as a workaround, performance is very good (about 8mb/s).
once tested on the 5.2-CURRENT machine a older version of netatalk perfomed good, too.

i played around with a lot of diffrent things trying to solve the problem, like switching the nic (fxp in both cases) to full-duplex and back, enabling and disabling offloading (ifconfig fxp0 link0), diffrent interface buffer sizes and stuff (smb.conf) as well as some esoteric things like trying diffrent switches, cables, kernels, userlands and so on :)

last try was adapating the port to build samba-3.0.2rc1 which changelog reads some mightbe performance-related changes, resulting in samba-3.0.2rc1 installed on both machines. while this version seems to work stable in general there is absolutely no changes when it comes to  performance.

>How-To-Repeat:
get a freebsd machine. build ports/net/samba-devel, set up a smb.conf and run it. get a macos x client. access the samba server (Apple-K, smb://yourserver). try to read some larger files (maybe write some to the server before for testing) and experience poor performance. get a windows machine for comparison. access the samba server. try to read some larger files and experience good performance.

>Fix:
tried a lot, no fix yet.
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401311710.i0VHAwqj019952>