Re: too many open files - user.dat
By: DaiTengu to All on Sat May 28 2022 02:24 pm
I'm running into an issue where my system will lock up due to too many open files. It's been happening for a couple months. I upped the open file limit, but that didn't seem to help.
[root@bbs ctrl]# ulimit -a
open files (-n) 950000
Unless you're running the bbs as 'root' (and I hope you're not), this isn't really relevant. You need to adjust the open file limit for the user that sbbs is run as:
http://wiki.synchro.net/faq:nix#maximum_open_files
Now, when I checked, lsof | wc -l only showed about 72K open files.
Unfortunately, lsof is not accurate with multi-threaded programs since it'll list/count all open files for the process, repeated for each thread of the process. So lsof will report a much larger number than the actual number of open files.
the
majority were by sbbs/term, and sbbs/http to /sbbs/data/user/user.dat
after killing sbbs and restarting, my open files were down to 12k.
The kicker is, 72k is far less than the 950K my system allows. is there an open file limit built into SBBS?
No. I suspect you just haven't correctly adjusted your open file limit for the sbbs user/process yet.
--
digital man (rob)
Sling Blade quote #17:
Charles Bushman: A shovel just makes too goddamned much racket.
Norco, CA WX: 63.0øF, 77.0% humidity, 0 mph ENE wind, 0.00 inches rain/24hrs
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net