• sbbs uses a lot of memory

    From Angel Ripoll@2:341/66 to Todos on Fri Mar 12 20:11:10 2021
    Hola Todos!


    For a long time (I don't know if ever) sbbs has been using a lot of memory. I don't know if it's normal, but it doesn't seem like it to me.

    I have a virtual machine on a friend's servers who kindly lends it to me :)

    The virtual machine, virtualized with xen, has 1.25G of memory and an AMD Opteron (tm) Processor 4280.

    Here you have a top to see the memory usage of sbbs:

    *****************
    top - 20:12:15 up 1:19, 2 users, load average: 0,60, 0,52, 0,30
    Tasks: 79 total, 2 running, 77 sleeping, 0 stopped, 0 zombie
    %Cpu(s): 1,1 us, 0,7 sy, 0,0 ni, 96,8 id, 0,7 wa, 0,0 hi, 0,4 si, 0,4 st MiB Mem : 1234,5 total, 17,7 free, 1048,1 used, 168,7 buff/cache
    MiB Swap: 1536,0 total, 1063,0 free, 473,0 used. 161,5 avail Mem

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

    363 ftn 20 0 4228272 989932 5048 S 6,3 78,3 5:02.87 sbbs

    3876 ftn 20 0 18472 9364 2088 S 0,7 0,7 0:02.60 gedlnx *****************

    It is normal?

    Un saludo,
    Angel Ripoll
    aripoll @ zruspas.org

    --- GoldED+/LNX 1.1.5-b20180707 + HPT 1.9 + Binkd 1.1 en Debian
    * Origin: Synchronet - bbs.zruspas.org - Zruspa's BBS - (2:341/66)
  • From Digital Man@1:103/705 to Angel Ripoll on Fri Mar 12 11:57:35 2021
    Re: sbbs uses a lot of memory
    By: Angel Ripoll to Todos on Fri Mar 12 2021 08:11 pm

    For a long time (I don't know if ever) sbbs has been using a lot of memory. I don't know if it's normal, but it doesn't seem like it to me.

    It is normal?

    If you run the web server, yes. The main thing is the RAM usage settles and does increase continually (e.g. a memory leak).
    --
    digital man

    Synchronet/BBS Terminology Definition #5:
    BBS = Bulletin Board System
    Norco, CA WX: 52.7øF, 61.0% humidity, 2 mph SE wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.13-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Angel Ripoll@2:341/66 to Digital Man on Sat Mar 13 00:56:50 2021
    Hola Digital!

    12 Mar 21 11:57, Digital Man escribió a Angel Ripoll:

    If you run the web server, yes. The main thing is the RAM usage settles and does increase continually (e.g. a memory leak). --
    digital man

    How can it be fixed? Rebooting can be fixed? Because it doesn't work for me. When I reboot, in a short time the memory goes to 60-80%

    Thanks DM.

    Un saludo,
    Angel Ripoll
    aripoll @ zruspas.org

    --- GoldED+/LNX 1.1.5-b20180707 + HPT 1.9 + Binkd 1.1 en Debian
    * Origin: Synchronet - bbs.zruspas.org - Zruspa's BBS - (2:341/66)
  • From Digital Man@1:103/705 to Angel Ripoll on Fri Mar 12 16:40:18 2021
    Re: sbbs uses a lot of memory
    By: Angel Ripoll to Digital Man on Sat Mar 13 2021 12:56 am

    Hola Digital!

    12 Mar 21 11:57, Digital Man escribi¢ a Angel Ripoll:

    If you run the web server, yes. The main thing is the RAM usage settles and does increase continually (e.g. a memory leak). --
    digital man

    How can it be fixed? Rebooting can be fixed? Because it doesn't work for me. When I reboot, in a short time the memory goes to 60-80%

    Add more RAM. Or try simplifying your web UI or maybe use a different web UI. If it's not continually increasing over time, then it's not a leak. It may just be an inefficient use of memory by the web UI you're using.
    --
    digital man

    Synchronet "Real Fact" #68:
    Robert D. Bouman, the author of SyncEdit, died in the mid to late 1990's. Norco, CA WX: 49.4øF, 72.0% humidity, 1 mph W wind, 0.02 inches rain/24hrs
    --- SBBSecho 3.13-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Angel Ripoll@2:341/66 to Digital Man on Sat Mar 13 18:54:20 2021
    Hola Digital!

    12 Mar 21 16:40, Digital Man escribió a Angel Ripoll:

    Add more RAM. Or try simplifying your web UI or maybe use a different web UI. If it's not continually increasing over time, then it's not a leak. It may just be an inefficient use of memory by the web UI you're using. --
    digital man

    I am using the webv4 without any changes.

    More ram is complicated. My friend just increased me a little bit of ram, from 1G to 1.25G yesterday, and it seems that now it uses more percentage of ram. Now is in 85% :(

    Un saludo,
    Angel Ripoll
    aripoll @ zruspas.org

    --- GoldED+/LNX 1.1.5-b20180707 + HPT 1.9 + Binkd 1.1 en Debian
    * Origin: Synchronet - bbs.zruspas.org - Zruspa's BBS - (2:341/66)
  • From Digital Man@1:103/705 to Angel Ripoll on Sat Mar 13 10:09:47 2021
    Re: sbbs uses a lot of memory
    By: Angel Ripoll to Digital Man on Sat Mar 13 2021 06:54 pm

    Hola Digital!

    12 Mar 21 16:40, Digital Man escribi¢ a Angel Ripoll:

    Add more RAM. Or try simplifying your web UI or maybe use a different web UI. If it's not continually increasing over time, then it's not a leak. It may just be an inefficient use of memory by the web UI you're using. --
    digital man

    I am using the webv4 without any changes.

    So maybe try the legacy/runemaster web UI instead.

    More ram is complicated. My friend just increased me a little bit of ram, from 1G to 1.25G yesterday, and it seems that now it uses more percentage of ram. Now is in 85% :(

    You could also try lowering your JavaScriptMaxBytes value in your ctrl/sbbs.ini file.
    --
    digital man

    Synchronet "Real Fact" #124:
    The Loons - "Ten Inch Men" with Rob on drums: https://youtu.be/EBSlpojM4j0 Norco, CA WX: 52.0øF, 80.0% humidity, 1 mph WSW wind, 0.12 inches rain/24hrs --- SBBSecho 3.13-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rampage@1:103/705 to Angel Ripoll on Sat Mar 13 16:51:13 2021
    Re: sbbs uses a lot of memory
    By: Angel Ripoll to Digital Man on Sat Mar 13 2021 18:54:20


    More ram is complicated. My friend just increased me a little
    bit of ram, from 1G to 1.25G yesterday, and it seems that now
    it uses more percentage of ram. Now is in 85% :(

    according to your tear line, you are on linux... remember that linux uses memory a lot differently than other OSes... memory is faster so things are cached into memory for speed... linux will use as much available memory as
    necessary for best operation... note the swap usage in the below... then also note the memory used for cache ;)

    $ top -b -n 1 | head -n 5

    top - 16:38:23 up 2 days, 21:00, 14 users, load average: 0.68, 0.76, 0.65 Tasks: 294 total, 3 running, 290 sleeping, 0 stopped, 1 zombie
    %Cpu(s): 8.5 us, 2.4 sy, 0.0 ni, 88.8 id, 0.2 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 24657504 total, 13853152 used, 10804352 free, 714024 buffers
    KiB Swap: 16776188 total, 0 used, 16776188 free. 8512844 cached Mem

    beware of wordwarp in the above...


    )\/(ark

    ---
    þ Synchronet þ The SouthEast Star Mail HUB - SESTAR
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Tracker1@1:103/705 to Angel Ripoll on Mon Mar 15 07:19:08 2021
    On 3/12/2021 12:11 PM, Angel Ripoll wrote:
    For a long time (I don't know if ever) sbbs has been using a lot of
    memory. I don't know if it's normal, but it doesn't seem like it to
    me.
    *****************
    It is normal?


    I'm not doing any FTN feeds at the moment, and am running a few
    containers on the BBS box, here's my stats.

    total used free shared buff/cache available
    Mem: 2035332 582052 181696 1416 1271584 1278400

    CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM %
    091fd7df3683 bbsweb 0.02% 19.28MiB / 1.941GiB 0.97%
    da9c05866092 doorparty 0.00% 1.414MiB / 1.941GiB 0.07%
    23df02622905 sbbs 0.07% 153.9MiB / 1.941GiB 7.74%
    5bdba63f583e rmweb 0.02% 47.76MiB / 1.941GiB 2.40%
    c017e4faf25d ecweb 0.03% 158.4MiB / 1.941GiB 7.97%
    49887efc63df irc 0.03% 11.27MiB / 1.941GiB 0.57%

    That's after about a week running since I last updated. 2gb, 2vcpu
    Ubuntu vps on Digital Ocean. I really don't have any users to speak of
    and modding is barely started.

    I have web and irc separated in order to isolate the usage. Looks like
    total memory usage on my system is 582gb. The main sbbs terminal and
    services along with ecweb are the biggest memory users.

    Been thinking of breaking nntp service off into a separate container as
    well, since irc and nntp are really the only longer lived connections
    other than terminal connections themselves.
    --
    Michael J. Ryan - tracker1@roughneckbbs.com
    ---
    ï¿­ Synchronet ï¿­ Roughneck BBS - roughneckbbs.com
    --- SBBSecho 3.13-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)