Zum Inhalt

Schlagwort: slow

Reducing SAMBA Server / smbd load when transferring large files

We have a 4 core Intel i3 machine running ubuntu set up in our office, responsible for two jobs:

  • recording 5 security cameras to disk (ffmpeg)
  • being a general purpose fileserver.

The machine has a single, 3TB SATA disk and no RAID. The data on the machine doesn't matter, and doesn't need to be 100% available.

When we transferred a disk image (500GB) to it via SAMBA, it would run out of memory and start swapping, slowing down the already busy disk to a point where the machine would be completely unresponsive and need to be reset.

We fixed this by disabling oplocks in /etc/smb.conf:

[global]
oplocks = no

No further tuning reqired.

Leave a Comment

Exchange MoveRequest – REALLY FAST, ignore "stalled due to disk latency"

If you want to ignore Exchange stalling on your moverequest slow source/destination servers:

Get-MailboxDatabase "ex2013-db01" | Get-Mailbox | select -first 5 | New-MoveRequest -TargetDatabase ex2016-db01 -BatchName gna -Priority Highest

Monitor with:

get-moverequest | get-moverequeststatistics

When they're all Completed, cleanup

get-moverequest | remove-moverequest

Then repeat from step 1.

 

Leave a Comment