Fixing Windows & OS X Filesharing Slowness (SMB2 / SMB3)

Update 19.Jan 2016

With Windows 10 and El Capitan this seems to work quite well within my little network at the moment.

The original post, try it if you want, YMMV.

I had some issues transferring files from a 10.9.4 Mavericks Mac to a Windows 8.1 desktop PC. The network was good, connection ok, and the account on the PC was valid. When I connected to the SMB share on the desktop PC from the Mac it seemed like it would work fine because a password prompt appeared, then available mountable folders. However the finder window would try updating the share in infinity and would not work. Maybe it worked 1 out of 25 times or so.

I can not claim that I have deep knowledge about the inner workings of SMB. What I do know is that people have some issues with this. Some say its an Apple bug but I don’t know.

To solve this Windows and OS X filesharing issue I had to add two registry DWORD entries using regedit on the Windows PC like so…:

Windows button + R and type regedit

Navigate to:

HKEY_LOCAL_MACHINESystemCurrentControlSetServicesLanmanServerParameters

Right click and select DWORD (32-bit Value)

Regedit DWORD

Create Smb2CreditsMax and give it a decimal value of 16384

Create Smb2CreditsMin and give it a decimal value of 768

Should look something like this (click for bigger) when you are finished. My system do at least.

regedit overview

 

I am not sure what this really does, it solved my Windows and OS X filesharing /directory listing issues at least. I would probably not do this regedit in production or for a customer. If you are reading this and know what this does please leave a comment.

Other Options

You could always force your Mac to use SMB1 instead, giving you slower transfer speeds but it should at least be stable. When connecting to your windows share type cifs://ip-or-servername instead of smb://ip-or-servername

Another option is to create a nsmb.conf file on your Mac. Open a terminal window. We are about to do some “hacking”!

Paste this line, into the terminal window. Make sure you copy the entire line, if you make one single error this won’t work.

echo "[default]" >> ~/Library/Preferences/nsmb.conf; echo "smb_neg=smb1_only" >> ~/Library/Preferences/nsmb.conf

Just remove the file to revert the changes, like so in the terminal window:

rm ~/Library/Preferences/nsmb.conf

Terminal

 

Make sure you have an active account on your Windows computer with a password set. Always check the easy stuff first.

I am mainly publishing this online for my own use. If you decide to follow my instructions please do so but I take no responsibility if you do something stupid. As I said, this worked fine for me but there is nothing that says that this has to work for you. If it does, great! 😉

Windows 10 or OS X? Both Please!

People discuss all the time whether they should use Windows or OS X. A lot of people have their own opinion about which OS is “the best” and discussions can heat up around the Internet when people try to defend their views. I seldom join these discussions anymore because it is impossible to give good arguments for something that is mostly based on personal preference.

Then again, if you are a person that doesn’t have a big interest in computers but still need to decide what system to use this article could perhaps help you with a decision. Or make you more confused than ever 🙂

First of all I am not a regular computer user. I use computers for a lot of things: Photography, Music Production, Gaming, Banking, Communication, Writing, Administration and the list goes on…. Almost any computer today are able to perform these tasks more or less. If this can be accomplished with a single computer, lets say a MacBook Pro. Why do I want to use both OS X and Windows?

I have always built and configured computers myself and I have noticed that it is hard moving away from this hobby. To be able to select precisely the components you want. Creating a system for your needs and not having to buy a pre-configured computer from people thinking they know what you need. Also, building your own computer is fun and you can make them small without having to skimp on the performance these days. Thats a huge reason for me. You also learn a lot during the process and will be able to fix easier problems yourself.

pc

Most of the time I do stuff that a regular laptop can handle perfectly. In fact I mostly use a retina Macbook Pro, the article you read now. Guess what computer I used while writing it?

When it comes to the occasional gaming I just prefer Windows even though we have great alternatives today such as Steam Home Streaming. The whole desktop experience just works better in some applications, the mouse input feels better. I have tried using bootcamp with a Windows install with external keyboard and mouse attached but then the fans spin up making a lot of noise and after a while the GPU starts to throttle and performance goes down, thats a no go.

I also use a Windows PC as my main photo editing computer because the SSD in my laptop fills up fast when shooting RAW files. In a PC I can buy a 3TB hard drive and put it in without having to ask for permission. Using my Mac I have to drag along an external drive.

For most people a laptop is more than enough and you won’t go wrong with selecting one of the offerings from Apple. In the end, if you have special needs I guess you already are aware of that. 😉