Samba rlimit on OpenBSD 6.5

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Samba rlimit on OpenBSD 6.5

Stephane HUC "PengouinBSD"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi, all.

How resolve 'rlimit' in Samba on OpenBSD 6.5?

$ testparm

rlimit_max: increasing rlimit_max (512) to minimum Windows limit (16384)
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (512) to minimum Windows limit (16384)
(...)

However:
$ grep kern.maxfiles /etc/sysctl.conf
kern.maxfiles=16384
$ tail -n8 /etc/login.conf
samba:\
   :openfiles=1024:\
   :openfiles-max=16384:\
   :tc=daemon:
(...)

Machine rebooted after!

One idea?

- --
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<
- ----
<me>Stephane HUC as PengouinBSD or CIOTBSD</me>
<mail>[hidden email]</mail>
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQScTRXz7kMlZfGpDZMTq98t3AMG7wUCXOUEPwAKCRATq98t3AMG
73ajAQDqmDmHZF32h5tJtX09o435f7maaSjj7AAMjZUiYJeZEQD/clne4QIVi6A1
NkTv78Wx04tLjE+U5b/m9x9XLD35Pgg=
=+Zjs
-----END PGP SIGNATURE-----

Reply | Threaded
Open this post in threaded view
|

Re: Samba rlimit on OpenBSD 6.5

Stuart Henderson
On 2019-05-22, Stephane HUC "PengouinBSD" <[hidden email]> wrote:

>
> Hi, all.
>
> How resolve 'rlimit' in Samba on OpenBSD 6.5?
>
> $ testparm
>
> rlimit_max: increasing rlimit_max (512) to minimum Windows limit (16384)
> Load smb config files from /etc/samba/smb.conf
> rlimit_max: increasing rlimit_max (512) to minimum Windows limit (16384)
> (...)
>
> However:
> $ grep kern.maxfiles /etc/sysctl.conf
> kern.maxfiles=16384
> $ tail -n8 /etc/login.conf
> samba:\
>    :openfiles=1024:\
>    :openfiles-max=16384:\
>    :tc=daemon:
> (...)
>
> Machine rebooted after!
>
> One idea?

It could be inheriting openfiles-cur from another class (daemon/default).
I would set openfiles-max and openfiles-cur not openfiles.