Benches macOS

2

Slow SMB File Service

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

We have 3 Windows PC's 2x XP Pro and 1 Win2K. They use the 3D CAD software Unigraphics NX3. We used one as workstation and file server for the CAD work. Then backed up daily over the network to the server with retrospect. After a hardware issue with the workstation and file server PC i moved the file server to our OSX Server G4 Dual 1.25 GHZ with 2 GB Ram. The server is fast if we open a single big file and work and save. The performance problem is coming up wen we open multiple files (up to 500) and make changes on them and then save all together. A single file about 200KB to 1 MB. The windows workstation and file Server PC was much faster on this then the OSX Server. I set the log to minimum and the max user connections to 50 for SMB. How can i improve the speed?

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    Peter Scordamaglia

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    This can be many different things. Such small files could possibly benefit by turning off delayed ack AND/OR by adding this 'large readwrite = no' to your smb.conf file.

    To turn off delayed acks, either add the following line to /etc/sysctl.conf (this is the file that is read on boot to set sysctl variables):

    net.inet.tcp.delayed_ack=0

    This simply tells the TCP stack in the kernel to not delay packet acks. The reason the slow down occurs is that when you are not sending anything to the Samba server, but attempting to copy a huge file from it, your computer will queue up a bunch of acks, and then send them after a bit. This causes the Samba server to stop sending files as fast, and then you end up going only a few kilobytes per second.

    If you want instant gratification, open up a terminal window and run this

    sudo sysctl -w net.inet.tcp.delayed_ack=0

    this will ask for YOUR password. Type it in and see how it goes.

    This is the same as what is in /etc/sysctl.conf, but the setting will be lost after a reboot.

    (A good discussion of this can be seen in a
    discussion on
    MacOSXHints)

    Peter

    PowerMac G5 Dual 2.5Ghz Mac OS X (10.4.3) Mac OS X Server

  2. 0

    Tim Stahl

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Wow, all I have to say is me and my tech's here owe you a batch of cookies 😉

    Macintosh 512k Mac OS 8.6 or Earlier