smbd: High CPU usage
vadim.lazovskiy at gmail.com
Thu Jul 19 07:19:14 UTC 2018
Thank you for your effort.
Patch works for me. At least no cpu-hogs now.
I'm very unfamiliar with samba internals, but this approach looks
Is it possible to put socket fd into event loop? Saw samba using epoll.
Or wouldn't it be better to make socket blocking forever?
Or can't do that because smbd have to accept some commands from client even
when client reads data.
ср, 18 июл. 2018 г. в 22:40, Jeremy Allison <jra at samba.org>:
> On Wed, Jul 18, 2018 at 09:20:10PM +0300, Vadim Lazovskiy via
> samba-technical wrote:
> > I would not agree.
> > sendfile is great. It makes you able to serve content directly from disk
> > network without unnessesery copying to userspace. It saves you lots
> > syscalls and context switching.
> > As for our workload profile (1-2Gbit per server) it really saves CPU
> > If someone of samba developers treat this as bug and eager to fix it I
> > could provide extra information and do some debugging.
> Can you try this (Linux-only) patch ?
> If you can confirm it works I'll log a bug and create
> fixes for the other sendfile() versions also.
More information about the samba-technical