05
Juli
2025

samba.conf aufgebessert für ssd

Aktivieren Sie Kernel-Optimierungen für SSD:

# /etc/sysctl.conf
vm.swappiness = 10
vm.dirty_background_ratio = 5
vm.dirty_ratio = 15

 

[global]
  # Protokolleinstellungen (moderne SMB3-Versionen)
  min protocol = SMB2_10
  max protocol = SMB3_11
  server multi channel support = yes

  # Netzwerkoptimierung (angepasst an Intel NIC und SSD)
  socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8388608 SO_SNDBUF=8388608
  use sendfile = yes
  read raw = yes
  write raw = yes

  # Asynchrones I/O (optimiert für SSD)
  aio read size = 4096
  aio write size = 4096
  aio write behind = yes

  # Sync-Einstellungen (SSD-optimiert)
  strict sync = no
  sync always = no
  write cache size = 8388608  # 8MB Buffer

  # Caching und Oplocks (RAM-optimiert)
  oplocks = yes
  kernel oplocks = yes
  level2 oplocks = yes
  fake oplocks = no
  getwd cache = yes

  # RAM-Pufferung (angepasst an 32GB RAM)
  large readwrite = yes
  max xmit = 65536
  max open files = 100000

  # Energieeffizienz (für Desktop-CPU)
  deadtime = 30
  use spnego = yes

  # Security (ausbalanciert)
  client ipc signing = auto
  client signing = auto
  server signing = auto

  # Logging (reduziert I/O-Last)
  log level = 1
  syslog only = yes

[freigabe]
  path = /pfad/zur/freigabe
  writable = yes
  browseable = yes
  create mask = 0664
  directory mask = 0775
  force user = %s
  # SSD-spezifische Optimierungen
  strict allocate = no
  allocation roundup size = 0

Share

You may also like...

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert