i am using three computer, named A,B,C , A and B all are linux and C is windowsXP A is a samba(3.0.25) server ip 10.10.1.39 and B(kernel 2.6.21) B do the operations sequence B: mount -t cifs //10.10.1.39/sdb /mnt/sdb B:service smb start (share name is sdb) and B use samba(3.0.25) and have two NIC (10.10.1.151 and 10.10.2.151) C mapped B's shared volume //10.10.1.151/sdb to Z:\ //10.10.2.151/sdb to Y:\ now, i begin to read the same file named x.dat from Z and Y added speed come from these two process is very slow! i traced the oplock and i can see the client(B) first get the pSMB of OplockLevel=1 , and get the pSMB of OplockLevel=0 after seconds. this means when two and more process read the same file in above box, B can not cache files! why?
jra, This is something we discussed and would be nice to be able to avoid on server side. lonat, Is the file opened both times with the same flags (if so a client optimization is possible)?
*** Bug 4650 has been marked as a duplicate of this bug. ***
(In reply to comment #0) > i am using three computer, named A,B,C , A and B all are linux and C is > windowsXP > A is a samba(3.0.25) server ip 10.10.1.39 and B(kernel 2.6.21) > > B do the operations sequence > B: mount -t cifs //10.10.1.39/sdb /mnt/sdb > B:service smb start (share name is sdb) > and B use samba(3.0.25) and have two NIC (10.10.1.151 and 10.10.2.151) > > C mapped B's shared volume > //10.10.1.151/sdb to Z:\ > //10.10.2.151/sdb to Y:\ > > now, i begin to read the same file named x.dat from Z and Y > > added speed come from these two process is very slow! > > i traced the oplock and i can see the client(B) first get the pSMB of > OplockLevel=1 , and get the pSMB of OplockLevel=0 after seconds. > > this means when two and more process read the same file in above box, B can not > cache files! why? > (In reply to comment #1) > jra, > This is something we discussed and would be nice to be able to avoid on server > side. > > lonat, > Is the file opened both times with the same flags (if so a client optimization > is possible)? > hi steven Too long time be lapsed when i get your kindness reply. +_+ Because of C client using WINXP, and we use standard "copy" and "paste", we can not know whether the same flag be used by two processes.
hi steven Too long time be lapsed when i get your kindness reply. +_+ Because of C client using WINXP, and we use standard "copy" and "paste", we can not know whether the same flag be used by two processes.
Lonat, I was trying to recreate the problem but not sure how exactly did you do! What was used to read the file on the Windows XP box (C)? And I was wondering if it is possible to recreate this problem using C and D i.e. two different boxes that mount a the same share from B.
I guess the crux of this bug is a request to implement some sort of filehandle caching? That would be a nice to have, but there are a number of structural changes that would need to go into place first. Still no response to Shirish's query in more than 2 years however. At this point, I'm going to go ahead and close this bug WONTFIX. Please reopen if you wish to pursue it further.