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



I got the message about files as a user:

arm64>make m 
cc -g -Wall -std=gnu17 -O3 -lm   -o m m.c
arm64>./m   
bleh 1021: Too many open files
arm64>


On Sun, Jun 20, 2021 at 8:51 PM David Holland <dholland-tech%netbsd.org@localhost> 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.

--
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index