problems:
1. I'm trying to copy several 100+GB worth of files from my MacPro to my newly setup FreeBSD server and the write performance is very slow. It's varying between 21 to 22 Mbytes/sec.
2. During copying my MacPro connection would completely die. And this lines would show up on /var/log/messages
I previously was using FreeBSD10.2-stable (custom kernel/buildworld upgrade instead of freebsd-update) and never had these problems. I replaced FreeBSD with Ubuntu 16.04 server (not the desktop version so no GUI) and I'm pretty sure the write performance and network is much more stable as well. I went back to FreeBSD 10.3 yesterday since I realized I prefer FreeBSD over Ubuntu and I'm not willing to test other Linux distributions.
Server (FreeBSD 10.3 updated to recent via freebsd-update):
- AMD A4 3Ghz socket FM2
- 4GB RAM
- dual Intel gigabit NIC PCIexpress (shows up as emX)
- boot USB3 stick (connected to USB2 port though as I get issues during boot-up ig plugged in on built-in USB3 port. The USB3 is provided natively by the AMD chipset.)
- 8 HDDs setup as RAIDZ (5x 2TB and 3x 1TB)
Client (MacPro running OS X El Capitan 10.11.6)
MacPro connected to Samba server via a dedicated Gigabit port using quality (got it from work and they used this on our datacenter) crossover cable.
Configuration:
/boot/loader.conf
/etc/sysctl.conf
/usr/local/etc/smb4.conf
edit1: Reinstalled FreeBSD 10.3 and upgrading sytem via buildkernel/buildworld. I will report back the results once done.
1. I'm trying to copy several 100+GB worth of files from my MacPro to my newly setup FreeBSD server and the write performance is very slow. It's varying between 21 to 22 Mbytes/sec.
2. During copying my MacPro connection would completely die. And this lines would show up on /var/log/messages
Code:
Sep 4 09:42:12 myserver kernel: em1: link state changed to DOWN
Sep 4 09:42:15 myserver kernel: em1: link state changed to UP
Sep 4 09:42:15 myserver devd: Executing '/etc/rc.d/dhclient quietstart em1'
Sep 4 09:42:24 myserver kernel: em1: link state changed to DOWN
Sep 4 09:42:26 myserver kernel: em1: link state changed to UP
Sep 4 09:42:26 myserver devd: Executing '/etc/rc.d/dhclient quietstart em1'
I previously was using FreeBSD10.2-stable (custom kernel/buildworld upgrade instead of freebsd-update) and never had these problems. I replaced FreeBSD with Ubuntu 16.04 server (not the desktop version so no GUI) and I'm pretty sure the write performance and network is much more stable as well. I went back to FreeBSD 10.3 yesterday since I realized I prefer FreeBSD over Ubuntu and I'm not willing to test other Linux distributions.
Server (FreeBSD 10.3 updated to recent via freebsd-update):
- AMD A4 3Ghz socket FM2
- 4GB RAM
- dual Intel gigabit NIC PCIexpress (shows up as emX)
- boot USB3 stick (connected to USB2 port though as I get issues during boot-up ig plugged in on built-in USB3 port. The USB3 is provided natively by the AMD chipset.)
- 8 HDDs setup as RAIDZ (5x 2TB and 3x 1TB)
Client (MacPro running OS X El Capitan 10.11.6)
MacPro connected to Samba server via a dedicated Gigabit port using quality (got it from work and they used this on our datacenter) crossover cable.
Configuration:
/boot/loader.conf
Code:
=> cat /boot/loader.conf
hw.pci.do_power_nodriver=3
/etc/sysctl.conf
Code:
=> cat /etc/sysctl.conf
# $FreeBSD: releng/10.3/etc/sysctl.conf 112200 2003-03-13 18:43:50Z mux $
#
# This file is read when going to multi-user and its contents piped thru
# ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details.
#
# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
###########################################
security.bsd.see_other_gids=0
security.bsd.see_other_uids=0
/usr/local/etc/smb4.conf
Code:
=> cat /usr/local/etc/smb4.conf
[global]
load printers = no
workgroup = myserver.local
bind interfaces only = yes
interfaces = em0 em1
hosts allow = 192.168.1.0/24 192.168.2.0/24
host deny = all
security = user
log file = /var/log/samba4/log.%m
max log size = 1000
interfaces = em0 em1
passdb backend = tdbsam
aio read size = 16384
aio write behind = true
aio write size = 16384
dns proxy = no
min receivefile size=16384
socket options=IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536 TCP_NODELAY
use sendfile=true
unix extensions = no
nt acl support = yes
inherit acls = no
map acl inherit = yes
vfs objects = zfsacl
[smb-storage]
path = /Volumes/storage
public = no
writable = yes
printable = no
create mask = 0664
directory mask = 0775
edit1: Reinstalled FreeBSD 10.3 and upgrading sytem via buildkernel/buildworld. I will report back the results once done.