[Samba] Samba Performance

Simon.Harris at nationwide.co.uk Simon.Harris at nationwide.co.uk
Thu Jan 8 16:01:59 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----

********************************************************************
The contents of this email are intended exclusively for the
addressee. If you are not the addressee you must not read
use or disclose the email contents ; you should notify us
immediately [ by clicking "Reply" ] and delete this email.

Nationwide monitors e-mails to ensure its systems operate
effectively and to minimise the risk of viruses.  Whilst it has
taken reasonable steps to scan this email, it does not
accept liability for any virus that may be contained in it.
********************************************************************

Samba 2.2.8a (not upgrade) running on Solaris 9. The system is relatively
new, nothing has changed apart from more data being thrown at it!

When we have certain processes running on the clinet, the a smbd process
gets high CPU and all shares go slow! Files that took seconds now take
minutes. When the process stops the CPU goes down and all returns to normal.
Not sure why such a process is creating this as it's not transferring data
or anything...

A farley simple smb.conf:
# Global parameters
[global]
        netbios name = UXHSMSVC01
        server string =
        encrypt passwords = Yes
        username map = /etc/sfw/smbusers
        log level = 1
        log file = /var/samba/%m.log
        show add printer wizard = No
        socket address = 10.192.34.61

[mfs_cell_1]
        comment = xxxxxxxxxxxxxxxxxxxxx - Cell 1
        path = /mfs/Scan_Cell_1/export
        guest account =
        valid users = mfssvc
        read only = No

[mfs_cell_2]
        comment = xxxxxxxxxxxxxxxxxxxxx - Cell 2
        path = /mfs/Scan_Cell_2/export
        guest account =
        valid users = mfssvc
        read only = No

[mfs_cell_3]
        comment = xxxxxxxxxxxxxxxxxxxxx - Cell 3
        path = /mfs/Scan_Cell_3/export
        guest account =
        valid users = mfssvc
        read only = No

[nlife]
        comment = xxxxxxxxxxx Life
        path = /nlife/export
        guest account =
        valid users = nlifesvc,svcnlifehsm
        read only = No

Turned-up debug to 3 and the log of this client is filled with the following
messages for many thousands of files.

I assume much of this is just samba routines being called/answered but not
sure what is normal...

[2004/01/08 13:59:32, 3] smbd/process.c:(846)
  Transaction 651797 of length 130
[2004/01/08 13:59:32, 3] smbd/process.c:(685)
  switch message SMBntcreateX (pid 25371)
[2004/01/08 13:59:32, 3] smbd/sec_ctx.c:(329)
  setting sec ctx (113, 1) - sec_ctx_stack_ndx = 0
[2004/01/08 13:59:32, 3] smbd/sec_ctx.c:(334)
  1 user groups:
  1
[2004/01/08 13:59:32, 3] smbd/vfs.c:(574)
  vfs_ChDir to /mfs/Scan_Cell_1/export
[2004/01/08 13:59:32, 3] lib/util.c:(387)
  unix_clean_name [/DATA/MORTGAGEA/DRIVE13/V4/indexes/indexxx]
[2004/01/08 13:59:32, 3] smbd/dosmode.c:(111)
  unix_mode(Data/MortgageA/Drive13/V4/INDEXES/INDEXXX) returning 0744
[2004/01/08 13:59:32, 3] lib/util.c:(387)
  unix_clean_name [Data/MortgageA/Drive13/V4/INDEXES/INDEXXX]
[2004/01/08 13:59:32, 2] smbd/open.c:(246)
  mfssvc opened file Data/MortgageA/Drive13/V4/INDEXES/INDEXXX read=Yes
write=N
o (numopen=1)
[2004/01/08 13:59:32, 3] smbd/process.c:(846)
  Transaction 651798 of length 110
[2004/01/08 13:59:32, 3] smbd/process.c:(685)
  switch message SMBtrans2 (pid 25371)
[2004/01/08 13:59:32, 3] smbd/sec_ctx.c:(329)
  setting sec ctx (113, 1) - sec_ctx_stack_ndx = 0
[2004/01/08 13:59:32, 3] smbd/sec_ctx.c:(334)
  1 user groups:
  1
[2004/01/08 13:59:32, 3] smbd/vfs.c:(574)
  vfs_ChDir to /mfs/Scan_Cell_2/export
[2004/01/08 13:59:32, 3] smbd/trans2.c:(1698)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2004/01/08 13:59:32, 3] lib/util.c:(387)
  unix_clean_name [/Data/MortgageA/Drive14/V3/DATA]
[2004/01/08 13:59:32, 3] lib/util.c:(387)
  unix_clean_name [Data/MortgageA/Drive14/V3/DATA]
[2004/01/08 13:59:32, 3] smbd/trans2.c:(1730)
  call_trans2qfilepathinfo Data/MortgageA/Drive14/V3/DATA level=1004 call=5
tot
al_data=0
[2004/01/08 13:59:32, 3] smbd/process.c:(846)
  Transaction 651799 of length 113
[2004/01/08 13:59:32, 3] smbd/process.c:(685)
  switch message SMBtrans2 (pid 25371)
[2004/01/08 13:59:32, 3] smbd/sec_ctx.c:(329)
  setting sec ctx (113, 1) - sec_ctx_stack_ndx = 0
[2004/01/08 13:59:32, 3] smbd/sec_ctx.c:(334)
  1 user groups:
  1
[2004/01/08 13:59:32, 3] smbd/vfs.c:(574)
  vfs_ChDir to /mfs/Scan_Cell_1/export
[2004/01/08 13:59:32, 3] smbd/trans2.c:(1698)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2004/01/08 13:59:32, 3] lib/util.c:(387)
  unix_clean_name [/DATA/MORTGAGEA/DRIVE13/V4/indexes]
[2004/01/08 13:59:32, 3] lib/util.c:(387)
  unix_clean_name [Data/MortgageA/Drive13/V4/INDEXES]
[2004/01/08 13:59:32, 3] smbd/trans2.c:(1730)
  call_trans2qfilepathinfo Data/MortgageA/Drive13/V4/INDEXES level=1004
call=5
total_data=0
[2004/01/08 13:59:32, 3] smbd/process.c:(846)
  Transaction 651800 of length 125
[2004/01/08 13:59:32, 3] smbd/process.c:(685)
  switch message SMBtrans2 (pid 25371)
[2004/01/08 13:59:32, 3] smbd/sec_ctx.c:(329)
  setting sec ctx (113, 1) - sec_ctx_stack_ndx = 0
[2004/01/08 13:59:32, 3] smbd/sec_ctx.c:(334)
  1 user groups:
  1
[2004/01/08 13:59:32, 3] smbd/vfs.c:(574)
  vfs_ChDir to /mfs/Scan_Cell_2/export
[2004/01/08 13:59:32, 3] smbd/trans2.c:(896)
  call_trans2findfirst: dirtype = 22, maxentries = 1366,
close_after_first=1, c
lose_if_end = 1 requires_resume_key = 1 level = 260, max_data_bytes = 16384
[2004/01/08 13:59:32, 3] lib/util.c:(387)
  unix_clean_name [/Data/MortgageA/Drive14/V3/DATA/5590.REM]
[2004/01/08 13:59:32, 3] lib/util.c:(387)
  unix_clean_name [Data/MortgageA/Drive14/V3/DATA/5590.REM]
[2004/01/08 13:59:32, 3] lib/util.c:(387)
  unix_clean_name [Data/MortgageA/Drive14/V3/DATA]
[2004/01/08 13:59:32, 3] smbd/dir.c:(492)
  creating new dirptr 257 for path Data/MortgageA/Drive14/V3/DATA,
expect_close
 = 1
[2004/01/08 13:59:32, 3] smbd/error.c:(113)
  error packet at smbd/trans2.c(1042) cmd=50 (SMBtrans2)
NT_STATUS_NO_SUCH_FILE
[2004/01/08 13:59:32, 3] smbd/process.c:(846)
  Transaction 651801 of length 127
[2004/01/08 13:59:32, 3] smbd/process.c:(685)
  switch message SMBtrans2 (pid 25371)
[2004/01/08 13:59:32, 3] smbd/sec_ctx.c:(329)
  setting sec ctx (113, 1) - sec_ctx_stack_ndx = 0
[2004/01/08 13:59:32, 3] smbd/sec_ctx.c:(334)
  1 user groups:
  1
[2004/01/08 13:59:32, 3] smbd/vfs.c:(574)
  vfs_ChDir to /mfs/Scan_Cell_1/export
[2004/01/08 13:59:32, 3] smbd/trans2.c:(896)
  call_trans2findfirst: dirtype = 22, maxentries = 1366,
close_after_first=1, c
lose_if_end = 1 requires_resume_key = 1 level = 260, max_data_bytes = 16384
[2004/01/08 13:59:32, 3] lib/util.c:(387)
  unix_clean_name [/DATA/MORTGAGEA/DRIVE13/V4/indexes/indexxx]
[2004/01/08 13:59:32, 3] lib/util.c:(387)
  unix_clean_name [Data/MortgageA/Drive13/V4/INDEXES/INDEXXX]
[2004/01/08 13:59:32, 3] lib/util.c:(387)
  unix_clean_name [Data/MortgageA/Drive13/V4/INDEXES]
[2004/01/08 13:59:32, 3] smbd/dir.c:(492)
  creating new dirptr 257 for path Data/MortgageA/Drive13/V4/INDEXES,
expect_cl
ose = 1
[2004/01/08 13:59:32, 3] smbd/process.c:(846)
  Transaction 651802 of length 110
[2004/01/08 13:59:32, 3] smbd/process.c:(685)
  switch message SMBtrans2 (pid 25371)
[2004/01/08 13:59:32, 3] smbd/sec_ctx.c:(329)
  setting sec ctx (113, 1) - sec_ctx_stack_ndx = 0
[2004/01/08 13:59:32, 3] smbd/sec_ctx.c:(334)
  1 user groups:
  1
[2004/01/08 13:59:32, 3] smbd/vfs.c:(574)
  vfs_ChDir to /mfs/Scan_Cell_1/export
[2004/01/08 13:59:32, 3] smbd/reply.c:(2590)
  send_file_readX fnum=7361 max=200 nread=200
[2004/01/08 13:59:32, 3] smbd/process.c:(846)
  Transaction 651804 of length 125
[2004/01/08 13:59:32, 3] smbd/process.c:(685)
  switch message SMBtrans2 (pid 25371)
[2004/01/08 13:59:32, 3] smbd/sec_ctx.c:(329)
  setting sec ctx (113, 1) - sec_ctx_stack_ndx = 0
[2004/01/08 13:59:32, 3] smbd/sec_ctx.c:(334)
  1 user groups:
  1
[2004/01/08 13:59:33, 3] smbd/vfs.c:(574)
  vfs_ChDir to /mfs/Scan_Cell_1/export
[2004/01/08 13:59:33, 3] lib/util.c:(387)
  unix_clean_name [/DATA/MORTGAGEA/DRIVE13/V0/indexes/updating]
[2004/01/08 13:59:33, 3] smbd/dosmode.c:(111)
  unix_mode(Data/MortgageA/Drive13/V0/INDEXES/updating) returning 0744
[2004/01/08 13:59:33, 3] lib/util.c:(387)
  unix_clean_name [Data/MortgageA/Drive13/V0/INDEXES/updating]
[2004/01/08 13:59:33, 3] smbd/open.c:(176)
  Error opening file Data/MortgageA/Drive13/V0/INDEXES/updating. (No such
file
or directory) (local_flags=0) (flags=0)
[2004/01/08 13:59:33, 3] smbd/error.c:(94)
  error string = No such file or directory
[2004/01/08 13:59:33, 3] smbd/error.c:(113)
  error packet at smbd/nttrans.c(889) cmd=162 (SMBntcreateX)
NT_STATUS_OBJECT_N
AME_NOT_FOUND
[2004/01/08 13:59:33, 3] smbd/process.c:(846)
  Transaction 651833 of length 110
[2004/01/08 13:59:33, 3] smbd/process.c:(685)
  switch message SMBtrans2 (pid 25371)
[2004/01/08 13:59:33, 3] smbd/sec_ctx.c:(329)
  setting sec ctx (113, 1) - sec_ctx_stack_ndx = 0
[2004/01/08 13:59:33, 3] smbd/sec_ctx.c:(334)
  1 user groups:
  1

There is a lot more in-between all this!

Cheers,

Simon



-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.1.1 (C) 1997 Pretty Good Privacy, Inc.

iQEVAwUBP/1+924wJNdvwuyFAQEexgf/S7p6lQnvoZ7HqDov5wtjGKI04sB3e9I8
TdoqK8bRFNeWcmuGYDt3HNjyB5Qyu7ge22iSneg8tGtNyzlhZHhUy7GGfqHKH6Wc
Lic2XEuKJvKV8eEjnQai0YJRqKEsuml5Y28L9LhI40HjsVQ30Zw8mDYnVsJac9U/
W5jexFHxiyJyGxSqZkqhuy6SR+uri48pXp0TTZv8kKxoG9cAwxSwKCoF5/qd8O75
JoNlYSzNsqpe6apoDbnmzKVT/Mnc740XWh/untDyXXvemqBjGCY7OQKT2eS/ENlp
a523oTE5HvxfB1v/zSroAIxWM4fCxdAEDv+IHWBF4g4jACFV3eX0Tw==
=g1h7
-----END PGP SIGNATURE-----


More information about the samba mailing list