From 8a776ad0b676c8875778bca87d993755461e0c59 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Wed, 7 Jan 2026 22:18:30 +0300 Subject: [PATCH] perf: add performance optimizations for SMB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - dead time = 30: disconnect idle clients to free resources - large readwrite = yes: improved large file transfer performance - max xmit = 65535: maximum packet size for better throughput - write cache size = 1048576: 1MB write cache for write performance 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- CHANGELOG.md | 8 ++++++++ Dockerfile | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca2484e..260375e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Added + +- **Performance optimizations** (Dockerfile) + - `dead time = 30` — disconnect idle clients after 30 seconds to free resources + - `large readwrite = yes` — improved performance for large file transfers + - `max xmit = 65535` — maximum packet size for better throughput + - `write cache size = 1048576` — 1MB write cache for improved write performance + ### Fixed - **Fixed chown syntax error in perms function** (samba.sh:122) diff --git a/Dockerfile b/Dockerfile index 7e226a4..c8873fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,6 +52,10 @@ RUN file="/etc/samba/smb.conf" && \ smb2 max write = 8388608 smb2 max trans = 8388608 smb2 max credits = 8192 + dead time = 30 + large readwrite = yes + max xmit = 65535 + write cache size = 1048576 vfs objects = catia recycle # Recycle bin