Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jun 1999 20:10:09 -0400
From:      "Christopher J. Michaels" <cjm2@earthling.net>
To:        "Alfred Perlstein" <bright@rush.net>
Cc:        "FreeBSD Mailing List (E-mail)" <questions@FreeBSD.ORG>
Subject:   RE: Poor Samba performance on 3.2-STABLE.
Message-ID:  <001d01beac8c$467abb80$0200000a@shithead.weeble.dyndns.org>
In-Reply-To: <Pine.BSF.3.96.990601174057.9491y-100000@cygnus.rush.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Here is some of the info you requested.  I don't know exactly what you want
from ktrace.  Just browsing one share produced a ktrace.out that was almost
700KB in size, and I'm not going to send THAT to the list.  ;^)

system/user time?  Are you refering to the cpu states that are listed in the
top output?  If not, what do you mean?

Thanks again,
-Chris

This top output is while doing a copy to the FreeBSD machine.

********* top output:
last pid: 45882;  load averages:  0.04,  0.23,  0.40    up 1+08:54:43
19:51:09
45 processes:  1 running, 44 sleeping
CPU states:  0.0% user,  0.0% nice,  3.1% system,  3.9% interrupt, 93.0%
idle
Mem: 20M Active, 19M Inact, 16M Wired, 5348K Cache, 7621K Buf, 532K Free
Swap: 144M Total, 896K Used, 143M Free, 1% Inuse

  PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
45675 root       2   0  3148K  1484K select   0:02  2.20%  2.20% smbd
  224 root       2   0  1412K   856K select   1:17  0.00%  0.00% ppp
  251 root       2   0  8276K  4864K poll     1:02  0.00%  0.00% squid
  252 root       2   0  1188K   672K select   0:07  0.00%  0.00% sshd1
 3044 moch       2   0  1192K   788K select   0:02  0.00%  0.00%
screen-3.7.6
  113 root       2   0  1764K   940K select   0:02  0.00%  0.00% named
42316 moch       2   0  1468K  1144K select   0:02  0.00%  0.00%
irc-2.8.2-EPIC
  311 cjm2       2   0  1068K   596K select   0:01  0.00%  0.00% fetchmail
  170 root      10   0  1004K   492K nanslp   0:01  0.00%  0.00% cron
  177 root       2   0  1304K   600K select   0:01  0.00%  0.00% sendmail
  214 root       2   0   976K   596K select   0:01  0.00%  0.00% dhcpd
  108 root       2   0   820K   436K select   0:01  0.00%  0.00% syslogd
  146 daemon     2   0   788K   392K sbwait   0:01  0.00%  0.00% rwhod
45742 root       2   0  1224K   824K select   0:01  0.00%  0.00% sshd1
  293 nobody    -6   0   748K   252K piperd   0:00  0.00%  0.00% unlinkd
45459 root       2   0  1384K   872K select   0:00  0.00%  0.00% nmbd
  167 root       2   0   892K   476K select   0:00  0.00%  0.00% inetd

********** samba config file: (the actual shares are defined in other config
files, but all that are in those config files are the share definitions,
nothing that would impact the speed of samba).


# Global Samba Options...
[Global]
#
# Browser Options
netbios name 		= CARTMAN
netbios aliases		= PRINTSRV
workgroup		= WEEBLE
server string		= Samba %v Server.
#
# Browser elections
local master            = yes
preferred master        = yes
os level                = 33
domain master           = no
wins support            = yes
wins proxy              = no
dns proxy               = yes
#
# Network Options
interfaces		= 10.0.0.1/255.255.255.0
bind interfaces only	= no
socket options		= TCP_NODELAY
keep alive		= 60
dead time		= 5
#
# User Authentication
encrypt passwords	= yes
smb passwd file		= /usr/local/etc/smbpasswd
password level		= 0
username level		= 0
username map		= /usr/local/etc/smb.map
domain logons		= yes
map to guest		= Bad User
null passwords		= yes
guest account		= nobody
logon path		= \\%L\%U\PROFILE
logon script		= logon.bat

#
# Loggin Behavior
log file		= /var/log/%m.smb
max log size		= 5000
debug level		= 1
syslog			= 0
#
# Disk and Filesystem Related Options
mangled stack		= 25
getwd cache		= yes
read size		= 4096
read raw		= yes
write raw		= yes
#
# Global Printer Service Options
load printers		= no
lpq cache time		= 15
#
# Misc Options
unix realname		= yes
lock directory		= /var/tmp
status			= yes
message command		= tcsh -f -c '/usr/bin/wall %s;rm %s' &
time server		= yes
#
# Global Service Options
#
browsable		= yes
allow hosts		= 127.0.0., 10.0.0.
valid users		= @nobody, @operator, @staff, @guest, @user
invalid users		= daemon, operator, bin, games, news, man, uucp, xten, pop,
ftp, ircd
public			= yes
revalidate		= no
follow symlinks		= yes
wide links		= no
writable		= no
available		= yes
create mask		= 0755
directory mask		= 0755
mangled names		= yes
mangling char		= $
mangled map		= (*.html *.htm) (*;1 *)
case sensitive		= no
default case		= lower
preserve case		= yes
short preserve case	= yes
mangle case		= no
delete readonly		= yes
hide dot files		= yes
dos filetimes		= yes
locking			= yes
strict locking		= no
share modes		= yes
oplocks			= yes
printable		= no
printing		= bsd
dos filetime resolution	= yes
fake directory create times = yes
map archive		= no
map hidden		= no
map system		= no
#
# Include server specific configuration files
include			= /usr/local/etc/smb.conf.%L



-----Original Message-----
From: Alfred Perlstein [mailto:bright@rush.net]
Sent: Tuesday, June 01, 1999 6:45 PM
To: Christopher Michaels
Cc: FreeBSD Mailing List (E-mail)
Subject: Re: Poor Samba performance on 3.2-STABLE.


On Tue, 1 Jun 1999, Christopher Michaels wrote:

> Hello, I have a samba problem, which I will be going to www.samba.org for,
> but I wanted to ask here also, incase someone else has run into this.
>
> Background:
> I installed 3.2-RELEASE and upgraded to -STABLE this weekend.  I was
running
> 2.2.8 before this.  In both instances Samba-2.0.3 was running on the box.
> Network performance was never stellar with samba but it was acceptable and
> problems were sporadic.
>
> Problem:
> To put it bluntly, my samba performance sucks.  And it is not a network or
> disk I/O limitation.  I have 100BaseTX (half-duplex) cards in both
machines.
> One is a windows 98 machine and one is FreeBSD 3.2-STABLE.  When I try and
> copy files from the 98 machine to the BSD machine via samba I am getting
> ~400KB/sec.  If I transfer files via FTP I get anywhere from 2-5MB/sec.
>
> Now I realize that the lower end of my FTP performance is disk I/O.  I
also
> realize that samba incurs some overhead and smb performance is never as
good
> as raw FTP performance.  But it should not be over 5x slower, and wasn't
in
> the past.
>
> I am using the exact same samba config file as before.
>
> Also, I don't know if this is relevant, when I look at trafshow, or just
> look at the hub, it appears to be sending in chunks.  It'll do a small
burst
> of info, then stop for a good second, then send, then stop, etc...

Without info such as:

top(1) cpu usage,
actual samba config,
ktrace(1) info,
system/user time.

how the heck can we help you? :)

-Alfred




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001d01beac8c$467abb80$0200000a>