Hi, Some question about openfiles limit...
I can't understand how openbsd counts open files. Ex. # sysctl kern.nfiles ; fstat | wc -l kern.nfiles=2470 3594 What's the difference between kern.nfiles and fstat? Secondly, I set class limits for mysql for testing: # rcctl get mysqld mysqld_class=mysqld mysqld_flags= mysqld_timeout=30 mysqld_user=root # userinfo _mysql login _mysql passwd ************* uid 502 groups _mysql change NEVER class mysqld gecos MySQL Account dir /nonexistent shell /sbin/nologin expire NEVER # getcap -f /etc/login.conf mysqld mysqld: :openfiles-cur=128: :openfiles-max=256: # su _mysql # ulimit -a time(cpu-seconds) unlimited file(blocks) unlimited coredump(blocks) unlimited data(kbytes) 33554432 stack(kbytes) 8192 lockedmem(kbytes) 10825182 memory(kbytes) 32472388 nofiles(descriptors) 128 processes 1310 So why mysql is allowed to open more than 256 files: # fstat -u _mysql | wc -l 998 Can anyone help with that? # uname -a OpenBSD zeus.apisoft.pl 5.9 GENERIC.MP#1888 amd64 Regards, Bambero