[Samba] Delay after some time...

Sascha tdy_shadow at yahoo.com
Fri Jul 1 06:33:45 GMT 2005


Hi list!

We have a problem with our samba server (version
3.0.14a-1 running on SuSE Enterprise OS). After some
time of inactivity (about 15 min) the clients get some
delay when they reconnect to a share. When the want to
open a document it takes about 5-10 secs until it
opens. After first reconnect everything work fine.

Which parameter could i change to fix this problem?
I already tried deadtime, keepalive, SO_KEEPALIVE and
serval other. 

Server hardware: Intel Xeon 2,8 GHz, 2,5 GB RAM, 2
giga nics and SAN hdd.

server:~ # hdparm -Tt /dev/sdb

/dev/sdb:
 Timing buffer-cache reads:   128 MB in  0.20 seconds
=640.00 MB/sec
 Timing buffered disk reads:  64 MB in  0.78 seconds =
82.05 MB/sec
 
Here is my config.

[global]
        workgroup = test
        netbios name = server
#       server string = server
        name resolve order = wins host bcast
        socket options = TCP_NODELAY IPTOS_LOWDELAY
SO_SNDBUF=8192 SO_RCVBUF=8192 SO_KEEPALIVE
        interfaces = eth0 eth1
        wins support = yes

        load printers = no
        show add printer wizard = no

        case sensitive = no
        max xmit = 8192
        getwd cache = yes
        oplocks = yes
        keepalive = 120

        os level = 64
        preferred master = yes
        local master = yes
        domain master = yes
        domain logons = yes
        admin users = @administrator

        security = user
        encrypt passwords = yes
        log file = /var/log/samba/log.%m
        log level = 3
        max log size = 5000
        hosts allow = 127.0.0.1
xxx.xxx.xxx.xxx/255.255.255.0

        unix password sync = yes
        passwd program = /usr/bin/passwd %u
        smbpasswd file = /etc/samba/smbpasswd
        passwd chat = *New*password* %n\n
*Re-enter*new*password* %n\n *Password*changed*

        logon drive = I:
        #logon path = \\%N\profiles\%U
        logon script = %U.bat

Heres the part of the config:

[2005/07/01 08:30:13, 3]
smbd/process.c:switch_message(886)
  switch message SMBtrans2 (pid 15341) conn 0x8405500
[2005/07/01 08:30:13, 3]
passdb/lookup_sid.c:fetch_sid_from_uid_cache(159)
  fetch sid from uid cache 501 ->
S-1-5-21-3195058373-2722275582-569894479-2002
[2005/07/01 08:30:13, 3]
passdb/lookup_sid.c:fetch_sid_from_gid_cache(233)
  fetch sid from gid cache 500 ->
S-1-5-21-3195058373-2722275582-569894479-2001
[2005/07/01 08:30:13, 3]
passdb/lookup_sid.c:fetch_sid_from_gid_cache(233)
  fetch sid from gid cache 500 ->
S-1-5-21-3195058373-2722275582-569894479-2001
[2005/07/01 08:30:13, 3]
smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (501, 500) - sec_ctx_stack_ndx = 0
[2005/07/01 08:30:13, 3]
smbd/trans2.c:call_trans2setfilepathinfo(3267)
  call_trans2setfilepathinfo(8) attrib.exe (fnum 6226)
info_level=1004 totdata=40
[2005/07/01 08:30:13, 3]
smbd/notify_kernel.c:kernel_check_notify(99)
  kernel_check_notify: kernel change notify on .
fd[0]=29 (signals_received=2)
[2005/07/01 08:30:13, 3]
smbd/error.c:error_packet(105)
  error string = Interrupted system call
[2005/07/01 08:30:13, 3]
smbd/error.c:error_packet(129)
  error packet at smbd/notify.c(55) cmd=160
(SMBnttrans) NT code 0x0000010c
[2005/07/01 08:30:13, 3]
smbd/notify_kernel.c:kernel_remove_notify(144)
  kernel_remove_notify: fd=-1
[2005/07/01 08:30:13, 3]
smbd/notify_kernel.c:kernel_check_notify(99)
  kernel_check_notify: kernel change notify on .
fd[0]=21 (signals_received=1)
[2005/07/01 08:30:13, 3]
smbd/error.c:error_packet(105)
  error string = Interrupted system call
[2005/07/01 08:30:13, 3]
smbd/error.c:error_packet(129)
  error packet at smbd/notify.c(55) cmd=160
(SMBnttrans) NT code 0x0000010c
[2005/07/01 08:30:13, 3]
smbd/notify_kernel.c:kernel_remove_notify(144)
  kernel_remove_notify: fd=-1
[2005/07/01 08:30:13, 3]
smbd/process.c:process_smb(1091)
  Transaction 1148 of length 88
[2005/07/01 08:30:13, 3]
smbd/process.c:switch_message(886)
  switch message SMBnttrans (pid 15341) conn 0x8405500
[2005/07/01 08:30:13, 3]
passdb/lookup_sid.c:fetch_sid_from_uid_cache(159)
  fetch sid from uid cache 501 ->
S-1-5-21-3195058373-2722275582-569894479-2002
[2005/07/01 08:30:13, 3]
passdb/lookup_sid.c:fetch_sid_from_gid_cache(233)
  fetch sid from gid cache 500 ->
S-1-5-21-3195058373-2722275582-569894479-2001
[2005/07/01 08:30:13, 3]
passdb/lookup_sid.c:fetch_sid_from_gid_cache(233)
  fetch sid from gid cache 500 ->
S-1-5-21-3195058373-2722275582-569894479-2001
[2005/07/01 08:30:13, 3]
smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (501, 500) - sec_ctx_stack_ndx = 0
[2005/07/01 08:30:13, 3]
smbd/nttrans.c:call_nt_transact_notify_change(1840)
  call_nt_transact_notify_change
[2005/07/01 08:30:13, 3]
smbd/notify_kernel.c:kernel_register_notify(189)
  kernel change notify on . (ntflags=0x3 flags=0x1e)
fd=21
[2005/07/01 08:30:13, 3]
smbd/nttrans.c:call_nt_transact_notify_change(1852)
  call_nt_transact_notify_change: notify change called
on directory name = .
[2005/07/01 08:30:13, 3]
smbd/process.c:process_smb(1091)
  Transaction 1149 of length 88
[2005/07/01 08:30:13, 3]
smbd/process.c:switch_message(886)
  switch message SMBnttrans (pid 15341) conn 0x8405500
[2005/07/01 08:30:13, 3]
passdb/lookup_sid.c:fetch_sid_from_uid_cache(159)
  fetch sid from uid cache 501 ->
S-1-5-21-3195058373-2722275582-569894479-2002
[2005/07/01 08:30:13, 3]
passdb/lookup_sid.c:fetch_sid_from_gid_cache(233)
  fetch sid from gid cache 500 ->
S-1-5-21-3195058373-2722275582-569894479-2001
[2005/07/01 08:30:13, 3]
passdb/lookup_sid.c:fetch_sid_from_gid_cache(233)
  fetch sid from gid cache 500 ->
S-1-5-21-3195058373-2722275582-569894479-2001
[2005/07/01 08:30:13, 3]
smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (501, 500) - sec_ctx_stack_ndx = 0
[2005/07/01 08:30:13, 3]
smbd/nttrans.c:call_nt_transact_notify_change(1840)
  call_nt_transact_notify_change
[2005/07/01 08:30:13, 3]
smbd/notify_kernel.c:kernel_register_notify(189)
  kernel change notify on . (ntflags=0x3 flags=0x1e)
fd=29
[2005/07/01 08:30:13, 3]
smbd/nttrans.c:call_nt_transact_notify_change(1852)
  call_nt_transact_notify_change: notify change called
on directory name = .
[2005/07/01 08:30:14, 3]
smbd/process.c:process_smb(1091)
  Transaction 1150 of length 90
[2005/07/01 08:30:14, 3]
smbd/process.c:switch_message(886)
  switch message SMBtrans2 (pid 15341) conn 0x8405500
[2005/07/01 08:30:14, 3]
passdb/lookup_sid.c:fetch_sid_from_uid_cache(159)
  fetch sid from uid cache 501 ->
S-1-5-21-3195058373-2722275582-569894479-2002
[2005/07/01 08:30:14, 3]
passdb/lookup_sid.c:fetch_sid_from_gid_cache(233)
  fetch sid from gid cache 500 ->
S-1-5-21-3195058373-2722275582-569894479-2001
[2005/07/01 08:30:14, 3]
passdb/lookup_sid.c:fetch_sid_from_gid_cache(233)
  fetch sid from gid cache 500 ->
S-1-5-21-3195058373-2722275582-569894479-2001
[2005/07/01 08:30:14, 3]
smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (501, 500) - sec_ctx_stack_ndx = 0
[2005/07/01 08:30:14, 3]
smbd/trans2.c:call_trans2findfirst(1351)
  call_trans2findfirst: dirtype = 22, maxentries =
1366, close_after_first=0, close_if_end = 2
requires_resume_key = 4 level = 0x104, max_data_bytes
= 16384
[2005/07/01 08:30:14, 3] smbd/dir.c:dptr_create(476)
  creating new dirptr 256 for path ./, expect_close =
1
[2005/07/01 08:30:24, 3]
smbd/process.c:process_smb(1091)
  Transaction 1151 of length 45
[2005/07/01 08:30:24, 3]
smbd/process.c:switch_message(886)
  switch message SMBclose (pid 15341) conn 0x8405500
[2005/07/01 08:30:24, 3]
passdb/lookup_sid.c:fetch_sid_from_uid_cache(159)
  fetch sid from uid cache 501 ->
S-1-5-21-3195058373-2722275582-569894479-2002
[2005/07/01 08:30:24, 3]
passdb/lookup_sid.c:fetch_sid_from_gid_cache(233)
  fetch sid from gid cache 500 ->
S-1-5-21-3195058373-2722275582-569894479-2001
[2005/07/01 08:30:24, 3]
passdb/lookup_sid.c:fetch_sid_from_gid_cache(233)
  fetch sid from gid cache 500 ->
S-1-5-21-3195058373-2722275582-569894479-2001
[2005/07/01 08:30:24, 3]
smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (501, 500) - sec_ctx_stack_ndx = 0
[2005/07/01 08:30:24, 3]
smbd/reply.c:reply_close(2887)
  close fd=30 fnum=6226 (numopen=3)
[2005/07/01 08:30:24, 2]
smbd/close.c:close_normal_file(272)
  admin closed file attrib.exe (numopen=2)

Im very appreciate for any help.
Best regards.


		
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 


More information about the samba mailing list