root@realfascism:~ # df -i
Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on
zroot/ROOT/default 678647716 4557788 674089928 1% 142992 1348179856 0% /
devfs 1 1 0 100% 0 0 100% /dev
zroot/tmp 674095004 5076 674089928 0% 102 1348179856 0% /tmp
zroot/usr/home 870809840 196719912 674089928 23% 90795 1348179856 0% /usr/home
zroot/usr/ports 676273104 2183176 674089928 0% 171153 1348179856 0% /usr/ports
zroot/usr/src 674090016 88 674089928 0% 7 1348179856 0% /usr/src
zroot/var/audit 674090016 88 674089928 0% 9 1348179856 0% /var/audit
zroot/var/crash 674090016 88 674089928 0% 8 1348179856 0% /var/crash
zroot/var/log 674090276 348 674089928 0% 58 1348179856 0% /var/log
zroot/var/mail 674090040 112 674089928 0% 17 1348179856 0% /var/mail
zroot/var/tmp 674090032 104 674089928 0% 10 1348179856 0% /var/tmp
zroot 674090016 88 674089928 0% 7 1348179856 0% /zroot
/dev/da0 5676478800 4018962180 1203398316 77% 226324 733474026 0% /a
root@realfascism:~ # sysctl kern.maxfiles
kern.maxfiles: 514260
root@realfascism:~ # sysctl kern.maxfiles=1048576
kern.maxfiles: 514260 -> 1048576
there are two sysctl variables, but do not ask me how to set them sanely.
I snipped that from some other thread and put them in comments into my sysctl.conf to look into this when I possibly might need that.
Code:# kern.maxfiles=450000 # kern.maxvnodes=250000
root@realfascism:~ # sysctl kern.maxvnodes
kern.maxvnodes: 345397
root@realfascism:~ # sysctl kern.maxvnodes=1048576
kern.maxvnodes: 345397 -> 1048576
root@realfascism:~ # cat /boot/loader.conf
kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
vfs.zfs.min_auto_ashift=12
zfs_load="YES"
sysctl kern.maxfilesperproc=1048576
sysctl kern.maxvnodes=1048576
sysctl kern.maxfiles=1048576
sysctl kern.sched.preempt_thresh=224
sysctl kern.sched.slice=3
sysctl kern.sched.interact=5
root@realfascism:~ # grep -v # /etc/login.conf
default:\
:passwd_format=sha512:\
:copyright=/etc/COPYRIGHT:\
:welcome=/etc/motd:\
:setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\
:path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/bin:\
:nologin=/var/run/nologin:\
:cputime=unlimited:\
:datasize=unlimited:\
:stacksize=unlimited:\
:memorylocked=unlimited:\
:memoryuse=unlimited:\
:filesize=unlimited:\
:coredumpsize=unlimited:\
:openfiles=unlimited:\
:maxproc=unlimited:\
:sbsize=unlimited:\
:vmemoryuse=unlimited:\
:swapuse=unlimited:\
:pseudoterminals=unlimited:\
:kqueues=unlimited:\
:umtxp=unlimited:\
:priority=0:\
:ignoretime@:\
:umask=022:
standard:\
:tc=default:
xuser:\
:tc=default:
staff:\
:tc=default:
daemon:\
:memorylocked=unlimited:\
:tc=default:
news:\
:tc=default:
dialer:\
:tc=default:
root:\
:ignorenologin:\
:memorylocked=unlimited:\
:tc=default:
russian|Russian Users Accounts:\
:charset=UTF-8:\
:lang=ru_RU.UTF-8:\
:tc=default:
This is never going to work. Remove them from loader.conf and move them to /etc/sysctl.conf:Code:root@realfascism:~ # cat /boot/loader.conf kern.geom.label.disk_ident.enable="0" kern.geom.label.gptid.enable="0" vfs.zfs.min_auto_ashift=12 zfs_load="YES" [b]sysctl kern.maxfilesperproc=1048576 sysctl kern.maxvnodes=1048576 sysctl kern.maxfiles=1048576 sysctl kern.sched.preempt_thresh=224 sysctl kern.sched.slice=3 sysctl kern.sched.interact=5[/b]
kern.maxfilesperproc=1048576
kern.maxvnodes=1048576
kern.maxfiles=1048576
kern.sched.preempt_thresh=224
kern.sched.slice=3
kern.sched.interact=5