smbd: High CPU usage

Jeremy Allison jra at
Thu Jul 19 16:01:48 UTC 2018

On Thu, Jul 19, 2018 at 10:19:14AM +0300, Vadim Lazovskiy wrote:
> 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 questionable.
> Is it possible to put socket fd into event loop? Saw samba using epoll.

No, it would complicate the code significantly
to do that.

> Or wouldn't it be better to make socket blocking forever?

Nope for SMB2.

> Or can't do that because smbd have to accept some commands from client even
> when client reads data.

Yes, that's the way we're architected for SMB2.


More information about the samba-technical mailing list