[Samba] oplock not granted

Thierry ITTY thierry.itty at besancon.org
Wed Apr 2 16:05:50 GMT 2003


Hello

I just moved a win nt file server to linux/samba
I've performance problem with the new server thought it's a more powerful
machine (and os ;-) ): programs loaded from shares take (much) longer to start

A network trace shows up that the throughput needed to achieve the program
run (double clic to start then exit) from the linux server is more than 3
times the one needed to run from the win$ server
there are no network problems
the ratio is the same from any win nt server to any linux server (i tried
with 2 servers of each kind, i just have to copy a directory) 

I'm thinking about an oplock problem (the files are opened read only, they
are windows executables)

the network trace (ethereal) shows up that oplocks are requested but not
granted from linux servers

I had a level 10 debug log on the samba server (the one below is a 2.0.10,
the other is a 2.2.7) which shows (for what i'm able to read at this level
:-] ) that an oplock is requested (open_file_shared ... oplock request = 3)
but not granted (smb_flg = 136 - bit 5 (0x20) is not set)

smb.conf includes the following lines for the given share
  oplocks = yes          
  level2 oplocks = yes   
  locking = yes          

is oplock a right clue ?
can this problem come from somewhere else ? 
what other investigation tools can i use ?
what else can i try ?


[2003/04/02 15:18:48, 10] smbd/open.c:open_file_shared(829)
                                     
  open_file_shared: fname = rh/reshum1.exe, share_mode = 20, ofun = 1, mode
= 644, oplock request = 3            
[2003/04/02 15:18:48, 8] lib/util.c:is_in_path(2430)
                                     
  is_in_path: rh/reshum1.exe
                                     
[2003/04/02 15:18:48, 8] lib/util.c:is_in_path(2435)
                                     
  is_in_path: no name list.
                                     
[2003/04/02 15:18:48, 3] lib/util.c:unix_clean_name(522)
                                     
  unix_clean_name [rh/reshum1.exe]
                                     
[2003/04/02 15:18:48, 5] locking/locking_shm.c:shm_get_share_modes(229)
                                     
  get_share_modes Read share mode 0x8020 pid=25736
                                     
[2003/04/02 15:18:48, 5] locking/locking_shm.c:shm_get_share_modes(254)
                                     
  get_share_modes: file with dev 801 inode 326419 -> 1 entries
                                     
[2003/04/02 15:18:48, 4] smbd/open.c:open_file_shared(1024)
                                     
  calling open_file with flags=0x0 flags2=0x0 mode=0644
                                     
[2003/04/02 15:18:48, 3] smbd/files.c:fd_get_already_open(130)
                                     
  Re-used file_fd_struct dev = 801, inode = 326419, ref_count = 2
                                     
  dos_mode: rh/reshum1.exe
                                     
[2003/04/02 15:19:18, 8] lib/util.c:is_in_path(2430)
                                     
  is_in_path: rh/reshum1.exe
                                     
[2003/04/02 15:19:18, 8] lib/util.c:is_in_path(2435)
                                     
  is_in_path: no name list.
                                     
[2003/04/02 15:19:18, 8] smbd/dosmode.c:dos_mode(167)
                                     
  dos_mode returning
                                     
[2003/04/02 15:19:18, 5] smbd/nttrans.c:reply_ntcreate_and_X(959)
                                     
  reply_ntcreate_and_X: fnum = 4307, open name = rh/reshum1.exe
                                     
[2003/04/02 15:19:18, 5] lib/util.c:show_msg(423)
                                     
  size=103
                                     
  smb_com=0xa2
                                     
  smb_rcls=0
                                     
  smb_reh=0
                                     
  smb_err=0
                                     
  smb_flg=136
                                     
  smb_flg2=1
                                     
[2003/04/02 15:19:18, 5] lib/util.c:show_msg(431)
                                     
  smb_tid=1
                                     
  smb_pid=512
                                     
  smb_uid=100
                                     
  smb_mid=32768
                                     
  smt_wct=34         



                
			- * - * - * - * - * - * -
Bien sûr que je suis perfectionniste !
Mais ne pourrais-je pas l'être mieux ?
	Thierry ITTY
eMail : Thierry.Itty at Besancon.org		FRANCE


More information about the samba mailing list