Xia, Arandar
2009-Apr-27 07:48 UTC
[Samba] Poor performance when accessing Linux from Windows XP because of too many QUERY_FILE_INFO requests
Dear all, My question is described as follows. Server: Linux Samba-3.3.1 Client: Windows XP with SP3 Step1: connect to the samba server. Step2: select a directory name ?test?. (The directory is created before testing.) The client will send a lot of QUERY_FILE_INFO requests. According to data captured by Wireshark, I find the following phenomenon: The client repeats exactly the same queries many times before giving up. The whole network log repeats exactly the same sequence, only the FID is different every time. In my test FID changes from 0x3002 to 0x306a. If I use a Linux client, this does not happen. This problem makes the access to my samba server be very slow. Could anyone help me to find the reason and give a solution? The following data is only a part of community data. No. Source Destination Protocol Info 26 client server SMB Trans2 Request, QUERY_PATH_INFO, Query File Basic Info, Path: 27 server client SMB Trans2 Response, QUERY_PATH_INFO 28 client server SMB Trans2 Request, FIND_FIRST2, Pattern: \test 29 server client SMB Trans2 Response, FIND_FIRST2, Files: test 30 client server SMB NT Create AndX Request, Path: \test 31 server client SMB NT Create AndX Response, FID: 0x3002 32 client server SMB Trans2 Request, QUERY_FILE_INFO, FID: 0x3002, Query File Internal Info 33 server client SMB Trans2 Response, QUERY_FILE_INFO 34 client server SMB Trans2 Request, QUERY_FILE_INFO, FID: 0x3002, Query File Basic Info 35 server client SMB Trans2 Response, QUERY_FILE_INFO 36 client server SMB Trans2 Request, QUERY_FILE_INFO, FID: 0x3002, Query File Standard Info 37 server client SMB Trans2 Response, QUERY_FILE_INFO 38 client server SMB Trans2 Request, QUERY_FS_INFO, Query FS Volume Info 39 server client SMB Trans2 Response, QUERY_FS_INFO 40 client server SMB Trans2 Request, QUERY_FILE_INFO, FID: 0x3002, Query File Basic Info 41 server client SMB Trans2 Response, QUERY_FILE_INFO 42 client server SMB Trans2 Request, QUERY_FILE_INFO, FID: 0x3002, Query File Standard Info 43 server client SMB Trans2 Response, QUERY_FILE_INFO 44 client server SMB Trans2 Request, QUERY_FILE_INFO, FID: 0x3002, Query File EA Info 45 server client SMB Trans2 Response, QUERY_FILE_INFO 46 client server SMB NT Create AndX Request, Path: \test:{4c8cc155-6c1e-11d1-8e41-00c04fb9386d}:$DATA 47 server client SMB NT Create AndX Response, Error: STATUS_OBJECT_PATH_NOT_FOUND 48 client server SMB Close Request, FID: 0x3002 49 server client SMB Close Response 50 client server SMB NT Create AndX Request, Path: \test 51 server client SMB NT Create AndX Response, FID: 0x3004 52 client server SMB Trans2 Request, QUERY_FILE_INFO, FID: 0x3004, Query File Internal Info 53 server client SMB Trans2 Response, QUERY_FILE_INFO 54 client server SMB Trans2 Request, QUERY_FILE_INFO, FID: 0x3004, Query File Basic Info 55 server client SMB Trans2 Response, QUERY_FILE_INFO 56 client server SMB Trans2 Request, QUERY_FILE_INFO, FID: 0x3004, Query File Standard Info 57 server client SMB Trans2 Response, QUERY_FILE_INFO 58 client server SMB Trans2 Request, QUERY_FILE_INFO, FID: 0x3004, Query File Basic Info 59 server client SMB Trans2 Response, QUERY_FILE_INFO 60 client server SMB Trans2 Request, QUERY_FILE_INFO, FID: 0x3004, Query File Standard Info 61 server client SMB Trans2 Response, QUERY_FILE_INFO 62 client server SMB Trans2 Request, QUERY_FILE_INFO, FID: 0x3004, Query File EA Info 63 server client SMB Trans2 Response, QUERY_FILE_INFO 64 client server SMB NT Create AndX Request, Path: \test:{4c8cc155-6c1e-11d1-8e41-00c04fb9386d}:$DATA 65 server client SMB NT Create AndX Response, Error: STATUS_OBJECT_PATH_NOT_FOUND 66 client server SMB Close Request, FID: 0x3004 67 server client SMB Close Response Best Regards! ------------------------------ Xia Zeyi arandar.xia@chn.fujixerox.com
Volker Lendecke
2009-Apr-27 08:39 UTC
[Samba] Poor performance when accessing Linux from Windows XP because of too many QUERY_FILE_INFO requests
On Mon, Apr 27, 2009 at 03:48:43PM +0800, Xia, Arandar wrote:> This problem makes the access to my samba server be very slow. > Could anyone help me to find the reason and give a solution?Sorry, but that's most likely just Windows behaviour. Are you sure that it is that that makes access slow? Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20090427/a06f7a88/attachment.bin
Volker Lendecke
2009-Apr-27 09:55 UTC
[Samba] Poor performance when accessing Linux from Windows XP because of too many QUERY_FILE_INFO requests
On Mon, Apr 27, 2009 at 05:48:17PM +0800, Xia, Arandar wrote:> > Windows Vista as client or Windows Vista as server for your XP client? > Windows Vista is also as a client. Linux is the server.Please connect from XP as a client to your Vista box and compare the traffic generated.> > What *exactly* is slow? > Sorry. > Samba service is slow. Sometimes I need to wait a while > for a simple action to be done on the client side.I very much doubt that has to do with those many requests. It very likely is something different. But as you are not answering the question what *exactly* is slow, nobody can tell.> What I really care is whether such behavior of Windows XP > is normal and how to solve the problem if it is abnormal.See my initial reply: This is very likely just normal Windows XP behaviour. What is missing for you here? Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20090427/180d30d2/attachment.bin
Xia, Arandar
2009-Apr-27 10:32 UTC
[Samba] Poor performance when accessing Linux from Windows XP because of too many QUERY_FILE_INFO requests
> Please connect from XP as a client to your Vista box and compare the traffic generated.If using Vista as the server, the requests are different. But the client will still send a lot of other requests.> I very much doubt that has to do with those many requests. > It very likely is something different. But as you are not answering the question what *exactly* is slow, nobody can tell.If using default file system, I think it is fast enough to make you ignore the time spent on these requests. But if using other VFS slower than the default file system, I have to find out what do these requests really for. Because they seem to be unnecessary and make my Samba service slow.> See my initial reply: This is very likely just normal Windows XP behaviour. What is missing for you here?Thanks for your help. // Zeyi -----Original Message----- From: Volker Lendecke [mailto:Volker.Lendecke@SerNet.DE] Sent: 2009?4?27? 17:56 To: Xia, Arandar Cc: samba@lists.samba.org Subject: Re: [Samba] Poor performance when accessing Linux from Windows XP because of too many QUERY_FILE_INFO requests On Mon, Apr 27, 2009 at 05:48:17PM +0800, Xia, Arandar wrote:> > Windows Vista as client or Windows Vista as server for your XP client? > Windows Vista is also as a client. Linux is the server.Please connect from XP as a client to your Vista box and compare the traffic generated.> > What *exactly* is slow? > Sorry. > Samba service is slow. Sometimes I need to wait a while > for a simple action to be done on the client side.I very much doubt that has to do with those many requests. It very likely is something different. But as you are not answering the question what *exactly* is slow, nobody can tell.> What I really care is whether such behavior of Windows XP > is normal and how to solve the problem if it is abnormal.See my initial reply: This is very likely just normal Windows XP behaviour. What is missing for you here? Volker
mzalfres@wp.pl
2009-Apr-27 11:26 UTC
Odp: RE: [Samba] Poor performance when accessing Linux from Windows XPbecause of too many QUERY_FILE_INFO requests
Xia, I have just looked at your problem - I got something similar recently and solution was in client PC networking card settings. QUERY_FILE_INFO requests were not the problem. My card was capable of 1Gb, while it was set to fixed 100MB Full duplex. This for some reason caused transfer from windows to linux samba terribly slow, while anything else was working OK. Solution was to put the NIC in auto negotiation mode. Now our domain works like a charm on linux PDC. :) ---------------------------------------------------- Oceniaj innych i poka? swoje ulubione ciuchy! Zobacz jak inspiruje ulica! http://klik.wp.pl/?adr=http%3A%2F%2Fstreetmoda.pl%2F%3Fsrc01%3D85ae5&sid=708