[Samba] slow browsing problem

Bart scarfboy at gmail.com
Sat Dec 22 13:27:45 GMT 2007


I was looking into what was causing the lag when I open my samba
(3.0.27a) shares from windows (XP, SP2). I see a lot of consecutive
directory opening. Process Monitor seems to suggests that windows
is being stupid about alternate data streams: it tries to create
directoryname:{4c8cc155-6c1e-11d1-8e41-00c04fb9386d}, fails, and
tries another sixty-ish times before failing and doing the same with
every other directory entry, which can add up to seconds in terms of time.


It seems that ADS support is planned for future Sambas, but in the
meantime, does anyone know of some workaround, server-side or client-side?
Or is this caused by another issue?


Bits of Process Monitor log, for reference: (mildly edited for readability):

(Note that BUFFER OVERFLOW is not an error.
 I'd remove the lines, but the functions called may be relevant)


12:20:26.8111613 AM     CreateFile      O:\technical    SUCCESS
12:20:26.8129029 AM     ReadFile        O:\technical    INVALID DEVICE REQUEST
12:20:26.8130925 AM     QueryInformationVolume  O:\technical    BUFFER OVERFLOW
12:20:26.8132141 AM     QueryAllInformationFile O:\technical    BUFFER OVERFLOW
12:20:26.8156088
AM      CreateFile
O:\technical:{4c8cc155-6c1e-11d1-8e41-00c04fb9386d}     PATH
NOT FOUND
12:20:26.8159856 AM     CloseFile       O:\technical    SUCCESS
12:20:26.8175923 AM     CreateFile      O:\technical    SUCCESS
12:20:26.8191648 AM     ReadFile        O:\technical    INVALID DEVICE REQUEST
12:20:26.8192031 AM     QueryInformationVolume  O:\technical    BUFFER OVERFLOW
12:20:26.8192252 AM     QueryAllInformationFile O:\technical    BUFFER OVERFLOW
12:20:26.8228748
AM      CreateFile
O:\technical:{4c8cc155-6c1e-11d1-8e41-00c04fb9386d}     PATH
NOT FOUND
12:20:26.8235760 AM     CloseFile       O:\technical    SUCCESS
12:20:26.8252307 AM     CreateFile      O:\technical    SUCCESS
12:20:26.8271502 AM     ReadFile        O:\technical    INVALID DEVICE REQUEST
12:20:26.8272061 AM     QueryInformationVolume  O:\technical    BUFFER OVERFLOW
12:20:26.8272290 AM     QueryAllInformationFile O:\technical    BUFFER OVERFLOW
12:20:26.8291879
AM      CreateFile
O:\technical:{4c8cc155-6c1e-11d1-8e41-00c04fb9386d}     PATH
NOT FOUND
12:20:26.8294594 AM     CloseFile       O:\technical    SUCCESS
12:20:26.8319192 AM     CreateFile      O:\technical    SUCCESS
12:20:26.8342349 AM     ReadFile        O:\technical    INVALID DEVICE REQUEST
12:20:26.8342734 AM     QueryInformationVolume  O:\technical    BUFFER OVERFLOW
12:20:26.8342952 AM     QueryAllInformationFile O:\technical    BUFFER OVERFLOW

....and so on.


Regards,
--Bart


More information about the samba mailing list