From owner-freebsd-bugs@FreeBSD.ORG Sat Jan 31 09:20:20 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC0D016A4CE for ; Sat, 31 Jan 2004 09:20:20 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E816843D45 for ; Sat, 31 Jan 2004 09:20:17 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i0VHKHFR028174 for ; Sat, 31 Jan 2004 09:20:17 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i0VHKHxF028173; Sat, 31 Jan 2004 09:20:17 -0800 (PST) (envelope-from gnats) Resent-Date: Sat, 31 Jan 2004 09:20:17 -0800 (PST) Resent-Message-Id: <200401311720.i0VHKHxF028173@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, tom hensel Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2754516A4CE for ; Sat, 31 Jan 2004 09:11:00 -0800 (PST) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB9DB43D55 for ; Sat, 31 Jan 2004 09:10:58 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i0VHAwdL019953 for ; Sat, 31 Jan 2004 09:10:58 -0800 (PST) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id i0VHAwqj019952; Sat, 31 Jan 2004 09:10:58 -0800 (PST) (envelope-from nobody) Message-Id: <200401311710.i0VHAwqj019952@www.freebsd.org> Date: Sat, 31 Jan 2004 09:10:58 -0800 (PST) From: tom hensel To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.0 Subject: misc/62168: bad performance using samba-devel with macos x clients X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jan 2004 17:20:20 -0000 >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: