tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: maximum limit of files open with O_EXLOCK



On Mon, Jun 21, 2021 at 03:51:51AM +0000, David Holland wrote:
> On Sat, Jun 19, 2021 at 08:12:38AM +0000, nia wrote:
>  > The Zig developer found the kernel limit:
>  > https://nxr.netbsd.org/xref/src/sys/kern/vfs_lockf.c#116
>  > 
>  > but it doesn't seem to be adjustable through sysctl.
>  > I wonder if it should be.
> 
> I wonder if the logic should be changed to allow one "free" lock per
> open file, since those are already limited, and it's not like the
> amounts of memory involved are large.

The easiest would be to just include maxfiles as factor.

Joerg


Home | Main Index | Thread Index | Old Index