• binkd using CPU 100%?

    From Alpha@21:4/158 to All on Monday, September 14, 2020 15:07:38
    Noticed my BBS slowing way down, and running 'htop' shows me that 'binkd: client manager' is taking up 100% of the cpu. If I let it run long enough, it stacks up multiple duplicate processes as well. I'l running binkd from an .sh file -- from an hourly BBS event -- any idea what could cause it not to exit?

    Cheers,

    --
    ...Alpha / Robbie
    ...The Drunken Gamer BBS
    ...thedrunkengamer.com:8888
    --- ENiGMA 1/2 v0.0.12-beta (linux; x64; 12.18.3)
    * Origin: The Drunken Gamer (21:4/158)
  • From Mindsurfer@21:3/119 to Alpha on Monday, September 14, 2020 18:09:08
    Noticed my BBS slowing way down, and running 'htop' shows me that
    'binkd: client manager' is taking up 100% of the cpu. If I let it
    run long enough, it stacks up multiple duplicate processes as well.
    I'l running binkd from an .sh file -- from an hourly BBS event --
    any idea what could cause it not to exit?

    anything in your binkd log file about it?

    this is my .sh file to poll fsxnet every xx minute via crontab

    #!/bin/sh
    /usr/local/sbin/binkd -c -p -q -P
    "21:3/100@fsxnet" /home/bbs/MagickaBBS/ftn/binkd.conf

    Mindsurfer

    --- MagickaBBS v0.15alpha (Linux/armv7l)
    * Origin: FuNToPia telnet://funtopia.ddnss.eu:2023 (21:3/119)
  • From Alpha@21:4/158 to Mindsurfer on Monday, September 14, 2020 17:41:08

    On 09/14/2020 4:15 pm Mindsurfer said...
    Noticed my BBS slowing way down, and running 'htop' shows me that
    'binkd: client manager' is taking up 100% of the cpu. If I let it
    run long enough, it stacks up multiple duplicate processes as well.
    I'l running binkd from an .sh file -- from an hourly BBS event --
    any idea what could cause it not to exit?

    anything in your binkd log file about it?

    this is my .sh file to poll fsxnet every xx minute via crontab

    #!/bin/sh /usr/local/sbin/binkd -c -p -q -P "21:3/100@fsxnet" /home/bbs/MagickaBBS/ftn/binkd.conf


    the log doesn't show anything odd -- binkd is closing the session and quitting. I'm using this .sh file to loop through each uplink:

    ----
    #!/bin/bash -e
    UPLINKS=("21:4/100@fsxnet" "77:1/100@scinet" "1337:3/100@tqwnet" "46:1/156@agoranet" "1:218/700@fidonet")
    for uplink in "${UPLINKS[@]}"
    do
    /usr/local/sbin/binkd -p -P $uplink /home/robbiew/enigma-bbs/misc/binkd.conf
    done
    exit 0
    ----

    Not really sure what's going on! I'll try adding those other flags and see what happens. Thanks!

    --
    ...Alpha / Robbie
    ...The Drunken Gamer BBS
    ...thedrunkengamer.com:8888
    --- ENiGMA 1/2 v0.0.12-beta (linux; x64; 12.18.3)
    * Origin: The Drunken Gamer (21:4/158)
  • From Avon@21:1/101 to Alpha on Tuesday, September 15, 2020 13:43:48
    On 14 Sep 2020 at 03:07p, Alpha pondered and said...

    Noticed my BBS slowing way down, and running 'htop' shows me that 'binkd: client manager' is taking up 100% of the cpu. If I let it run long
    enough, it stacks up multiple duplicate processes as well. I'l running binkd from an .sh file -- from an hourly BBS event -- any idea what
    could cause it not to exit?

    I do get issues with a not the most up to date version of BinkD for Windows were by I end up with a too many servers message and it seems to fail to toss packets etc until I close it down and restart. It happens randomly and
    despite efforts to resolve by playing with settings I've never managed to
    sort a fix for it. Thing is it's not consistent and occurs randomly over time making it harder to troubleshoot :(

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Alpha@21:4/158 to Avon on Tuesday, September 15, 2020 09:34:43

    On 09/15/2020 9:18 am Avon said...
    On 14 Sep 2020 at 03:07p, Alpha pondered and said...
    Noticed my BBS slowing way down, and running 'htop' shows me
    that 'binkd: client manager' is taking up 100% of the cpu. If I let it run long enough, it stacks up multiple duplicate processes as well. I'l running binkd from an .sh file -- from an hourly BBS event -- any idea what could cause it not to exit?



    I do get issues with a not the most up to date version of BinkD for Windows were by I end up with a too many servers message and it seems to fail to toss packets etc until I close it down and restart. It happens randomly and despite efforts to resolve by playing with settings I've never managed to sort a fix for it. Thing is it's not consistent and occurs randomly over time making it harder to troubleshoot :(

    I couldn't figure it out--I compiled the latest from the source, and still kept getting those CPU spikes. So last night, I ended up transferring my BBS over to a Rpi, and used the "apt install binkd" version -- using all the same config files that I used on the Ubuntu machine -- and the problem went away!

    Enigma runs very smooth on a Pi, and now that the CPU issues are gone, even smoother! Plus, I can kill my virtual host and save $6 a month :)

    --- ENiGMA 1/2 v0.0.12-beta (linux; arm; 12.18.3)
    * Origin: The Drunken Gamer (21:4/158)
  • From Alpha@21:4/158 to Alpha on Wednesday, September 16, 2020 07:43:41


    On 09/15/2020 9:34 am Alpha said...
    I couldn't figure it out--I compiled the latest from the source, and still kept getting those CPU spikes. So last night, I ended up transferring my BBS over to a Rpi, and used the "apt install binkd" version -- using all the same config files that I used on the Ubuntu machine -- and the problem went away!

    I spoke too soon. It's baaaaaack... But it happened *after* I changed my binkd.conf file to what's below--short story is, I'm having a tough time figuring out how to get outbound messages sent from anything other than my defauly network (fsxnet). When I use this conf file dir structure, mail *appears* to send from all nets--packets disappear and .try files are left behind. BUT my messages don't actually land anywhere other than fsxnet, and I get the multiple instances of biinkd stacking up in htop.

    Here's the top of the binkd.conf file that I think is the source:

    ----
    # Number @ end is the root zone
    # Enigma's outbound BASE path in config.hjson is set to '/home/robbiew/enigma-bbs/mail/ftn_out'
    domain fsxnet /home/robbiew/enigma-bbs/mail/ftn_out/outbound 21
    domain fidonet /home/robbiew/enigma-bbs/mail/ftn_out/fidonet 1
    domain scinet /home/robbiew/enigma-bbs/mail/ftn_out/scinet 77
    domain tqwnet /home/robbiew/enigma-bbs/mail/ftn_out/tqwnet 1337
    domain agoranet /home/robbiew/enigma-bbs/mail/ftn_out/agoranet 46

    ----

    When I leave off "outbound" from the other directories, packets are deposited in the directory, but packets never leave when I poll... using "ftn_out/outbound/scinet scinet" or just "ftn_out/outbound scinet" = same thing, mail doesn't send.

    Frustrating, lol. Anyone running Enigma care to share their multi-net binkd.conf?

    Thanks!!


    --- ENiGMA 1/2 v0.0.12-beta (linux; arm; 12.18.3)
    * Origin: The Drunken Gamer (21:4/158)
  • From Mindsurfer@21:3/119 to Alpha on Wednesday, September 16, 2020 19:08:20
    domain fsxnet /home/robbiew/enigma-bbs/mail/ftn_out/outbound 21
    domain fidonet /home/robbiew/enigma-bbs/mail/ftn_out/fidonet 1
    domain scinet /home/robbiew/enigma-bbs/mail/ftn_out/scinet 77
    domain tqwnet /home/robbiew/enigma-bbs/mail/ftn_out/tqwnet 1337
    domain agoranet /home/robbiew/enigma-bbs/mail/ftn_out/agoranet 46

    Mine looks more like this

    domain fidonet /mnt/ssd1/bbs/ftn/io/out 2
    domain bbsnet /mnt/ssd1/bbs/ftn/io/out 2
    domain pinet /mnt/ssd1/bbs/ftn/io/out 2
    domain amiganet /mnt/ssd1/bbs/ftn/io/out 2
    domain fsxnet /mnt/ssd1/bbs/ftn/io/out 2
    domain tqwnet /mnt/ssd1/bbs/ftn/io/out 2

    address 2:240/5411@fidonet
    address 75:49/4@bbsnet
    address 314:314/245@pinet
    address 39:170/2411@amiganet
    address 21:3/119@fsxnet

    Mindsurfer

    --- MagickaBBS v0.15alpha (Linux/armv7l)
    * Origin: FuNToPia telnet://funtopia.ddnss.eu:2023 (21:3/119)
  • From Mindsurfer@21:3/119 to Mindsurfer on Wednesday, September 16, 2020 19:13:50
    domain fidonet /mnt/ssd1/bbs/ftn/io/out 2
    domain bbsnet /mnt/ssd1/bbs/ftn/io/out 2
    domain pinet /mnt/ssd1/bbs/ftn/io/out 2
    domain amiganet /mnt/ssd1/bbs/ftn/io/out 2
    domain fsxnet /mnt/ssd1/bbs/ftn/io/out 2
    domain tqwnet /mnt/ssd1/bbs/ftn/io/out 2

    address 2:240/5411@fidonet
    address 75:49/4@bbsnet
    address 314:314/245@pinet
    address 39:170/2411@amiganet
    address 21:3/119@fsxnet

    and the in out folders will look like that.

    drwxr-xr-x 2 bbs bbs 4096 Aug 13 22:59 in
    drwxr-xr-x 2 bbs bbs 4096 Sep 16 19:04 in_sec
    drwxr-xr-x 2 bbs bbs 4096 Sep 16 19:04 in_temp
    drwxr-xr-x 3 bbs bbs 4096 Sep 16 19:03 out
    drwxr-xr-x 2 bbs bbs 4096 Sep 16 19:02 out.001
    drwxr-xr-x 3 bbs bbs 4096 Sep 16 19:09 out.015
    drwxr-xr-x 3 bbs bbs 4096 Sep 16 19:03 out.027
    drwxr-xr-x 3 bbs bbs 4096 Sep 16 19:01 out.04b
    drwxr-xr-x 3 bbs bbs 4096 Sep 16 19:02 out.13a
    drwxr-xr-x 3 bbs bbs 4096 Sep 16 19:09 out.539
    drwxr-xr-x 2 bbs bbs 4096 Sep 16 19:08 out_temp
    drwxr-xr-x 2 bbs bbs 4096 Sep 12 15:21 tic_bad

    Mindsurfer

    --- MagickaBBS v0.15alpha (Linux/armv7l)
    * Origin: FuNToPia telnet://funtopia.ddnss.eu:2023 (21:3/119)
  • From Alpha@21:4/158 to Mindsurfer on Wednesday, September 16, 2020 11:10:27

    On 09/16/2020 10:15 am Mindsurfer said...
    domain fidonet /mnt/ssd1/bbs/ftn/io/out 2
    domain bbsnet /mnt/ssd1/bbs/ftn/io/out 2
    domain pinet /mnt/ssd1/bbs/ftn/io/out 2
    domain amiganet /mnt/ssd1/bbs/ftn/io/out 2
    domain fsxnet /mnt/ssd1/bbs/ftn/io/out 2

    Oh, interesting. You're using the same Zone number at the end, so it all ends up in the same folder? When I use the unique Zone number for each net, binkd ends up creating seperate folders for each. I'll give this a try, thanks!

    I *think* I've gotten to the bottom of the CPU issue, my hunch is my shell pollscript wasn't exiting properly, so I've created individual event polls for each network for the time being, and it seems to have stopped...

    --- ENiGMA 1/2 v0.0.12-beta (linux; arm; 12.18.3)
    * Origin: The Drunken Gamer (21:4/158)
  • From Mindsurfer@21:3/119 to Alpha on Wednesday, September 16, 2020 21:33:14
    Oh, interesting. You're using the same Zone number at the end, so
    it all ends up in the same folder? When I use the unique Zone
    number for each net, binkd ends up creating seperate folders for
    each. I'll give this a try, thanks!

    its the main zone at the end. 2 for fidonet. you gonna get
    out.zonenumber(hex) folders for each of your networks automaticly.
    it did not make sense to me too, but it works =)

    Mindsurfer

    --- MagickaBBS v0.15alpha (Linux/armv7l)
    * Origin: FuNToPia telnet://funtopia.ddnss.eu:2023 (21:3/119)
  • From Avon@21:1/101 to Alpha on Thursday, September 17, 2020 12:16:30
    On 16 Sep 2020 at 11:10a, Alpha pondered and said...

    Oh, interesting. You're using the same Zone number at the end, so it all ends up in the same folder? When I use the unique Zone number for each

    Yep that's the way to go. I'll post my Fido HUB config to showcase this when
    I get home tonight :)

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From alterego@21:2/116 to Alpha on Thursday, September 17, 2020 10:16:48
    Re: Re: binkd using CPU 100%?
    By: Alpha to Mindsurfer on Wed Sep 16 2020 11:10 am

    Howdy,

    Oh, interesting. You're using the same Zone number at the end, so it all ends up in the same folder? When I use the unique
    Zone number for each net, binkd ends up creating seperate folders for each. I'll give this a try, thanks!

    Yeah its confusing.

    The number at the end is *not* the zone number for the network. It represents the zone number for the outbound directory, and thus any mail for any other zone will have the hex address suffix added to that directory path.

    So in my case, the number is the same, as is the directory path, but mail for othernets end up in <dir>.[hex].

    ...δεσ∩

    ... It is better to know some of the questions than all of the answers.
    --- SBBSecho 3.11-Linux
    * Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)
  • From Avon@21:1/101 to alterego on Thursday, September 17, 2020 12:34:20
    On 17 Sep 2020 at 10:16a, alterego pondered and said...

    The number at the end is *not* the zone number for the network. It represents the zone number for the outbound directory, and thus any mail for any other zone will have the hex address suffix added to that directory path.

    You have a much better way at putting it :)

    --- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)