• too many open files - user.dat

    From Digital Man@VERT to DaiTengu on Saturday, May 28, 2022 12:42:38
    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
  • From Gamgee@VERT/PALANT to DaiTengu on Sunday, May 29, 2022 12:18:00
    DaiTengu wrote to Digital Man <=-

    Re: too many open files - user.dat
    By: Digital Man to DaiTengu on Sat May 28 2022 12:42 pm

    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

    Found the problem, which the wiki link helped me with. I had to
    up the open file limit in the systemd start config. I had it set
    to 950k for both users and root, but didn't update the startup
    config.

    LimitNOFILE=150000

    Have I ever mentioned how much I hate systemd? :)

    Slackware.
    MX Linux.
    Devuan.
    <a few more>

    ;-)



    ... So easy, a child could do it. Child sold separately.
    --- MultiMail/Linux v0.52
    þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
  • From Gamgee@VERT to DaiTengu on Monday, May 30, 2022 08:33:00
    DaiTengu wrote to Gamgee <=-

    Slackware.
    MX Linux.
    Devuan.
    <a few more>

    Gentoo can run on either. My BBS runs under CentOS though, as
    it was just easier to deal with for the most part.

    at some point I need to move it to CentOS 8 or 9. Or maybe Rocky.

    Okay..... but <confused look> that isn't going to solve anything
    regarding using 'systemd', which is what the whole point of my comment
    was...

    Are you locked in to running it only on RedHat variants, or something?



    ... Want to meet new people? Pick up the wrong golf ball.
    === MultiMail/Linux v0.52
    --- SBBSecho 3.15-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (1:123/115)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Belly@VERT/BRAZINET to Gamgee on Monday, May 30, 2022 12:17:53
    Re: Re: too many open files - user.dat
    By: Gamgee to DaiTengu on Mon May 30 2022 08:33 am

    Are you locked in to running it only on RedHat variants, or something?

    Maybe he prefers it because of familiarity? I certainly prefer Debian, although I started on Slackware in the early 90's, and use SuSE at work currently (because we're licensed, and run software packaged for it) and Amazon Linux, because that's the best-supported distro to run on an EC2 instance.

    o
    (O)
    BeLLy

    ---
    þ Synchronet þ bbs.brazi.net þ www.brazi.net þ WARNING: May contain nuts
  • From Gamgee@VERT/PALANT to DaiTengu on Tuesday, May 31, 2022 10:28:00
    DaiTengu wrote to Gamgee <=-

    Gentoo can run on either. My BBS runs under CentOS though, as
    it was just easier to deal with for the most part.

    at some point I need to move it to CentOS 8 or 9. Or maybe Rocky.

    Okay..... but <confused look> that isn't going to solve anything
    regarding using 'systemd', which is what the whole point of my comment was...

    I can hate systemd and still use it.

    Sure. Just seems a little odd. I also hate systemd and won't use a
    distro for that very reason.

    RedHat variants are my OS of choice for systems I want to "just
    work" because I'm familiar with them.

    Okey dokey.



    ... Gone crazy, be back later, please leave message.
    --- MultiMail/Linux v0.52
    þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL
  • From Nelgin@VERT/EOTLBBS to DaiTengu on Wednesday, June 01, 2022 00:04:04
    On Sat, 28 May 2022 14:24:51 -0500
    "DaiTengu" <daitengu@VERT/ENSEMBLE> wrote:

    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.

    Digital Man submitted a fix this afternoon which may address the open
    files issue. Mine seem to be at a steady level for now so you may want
    to update.
    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com