Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 10672

CreateFile() taking a long time for small files on disk (sometimes)

$
0
0

Ever since upgrading a server of mine from Server 2008 R2 to Server 2012, I've been having trouble with shared files not serving quickly at times.  I've traced the problem all the way back to the local machine.  CreateFile() can take up to a minute to return for small (few KB) files on disk, but it doesn't happen all the time.  It happens more when the file is being requested by a lot of clients via network shares.

Here is an example.  The top shows an example of a long request while the bottom shows a normal request.

I'm curious if anyone might know the cause for this sort of issue.  I would think read cache alone would prevent this sort of thing from happening, and even if it had to come from disk each time I don't understand how it could take so long.  The disks are basically unloaded during these times.

This problem only seems to occur for files being served over the network.  If I start randomly loading a copy of these files with even 128 different threads, I don't get any sort of weird contention issues if the file is local and not shared.  Maximum service times peak at 0.009s.  SMB must be blocking the files somehow?  As soon as the file is shared across the network, I start having the weird blocking issue even for local file requests on the server when the requests are to the local path of those shared files.





Viewing all articles
Browse latest Browse all 10672

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>