Re: CPU Hog
By: deon to Digital Man on Sat Aug 06 2022 12:34 pm
> Re: CPU Hog
> By: Digital Man to deon on Fri Aug 05 2022 01:07 pm
>
> > > Is there a way to "busy out" the polled node, so another thread doesnt
> > > try and call it again?
>
> > The SBBS event thread is a single thread. BinkIt polling is normally done
> > as a timed event, which is run as in the foreground of that single event
> > thread. So I'm not clear what "another thread" would be.
>
> OK, so I have BINKPOLL (binkit -p) set to run 2 times per day.
>
> So are you suggesting that when SBBS runs it, it can never run a subsequent
> time, if the previous run never completes?
Correct. The exception would be fore timed events where you have "background exe
cution" set to "Yes", but that can only be done for native programs (e.g. jsexec
), not for the direct invocation of a script (e.g. binkit.js).
> My logs show it does run twice a day (not 12 hrs apart, ergo 2 times a day -
> but...)
>
> Aug 5 00:35:54 d-11-1 synchronet: evnt BINKPOLL Running native timed event:
> BINKPOLL
> Aug 5 14:36:58 d-11-1 synchronet: evnt BINKPOLL Running native timed event:
> BINKPOLL
>
> So if the first question is yes, then that would imply that binkit -p does
> eventually exit.
Yes.
And for ever foreground "Running" log entry there should be a corresponding log
entry like this:
BINKPOLL Timed event: BINKPOLL returned 0
Giving you an indication of exactly how long that event took to run to completio
n.
> I'm wondering then, what else could cause the CPU goes to 100% on 2 threads
> for an extend period of time?
Looking at the CPU utilization of *threads* of sbbs would give you a good indica
tion:
http://wiki.synchro.net/monitor:index#threads
The threads are named and events are run in the "sbbs/events" thread.
> (I havent monoitored the time, but my vmware
> logs show it was pegged for 2 hrs before I intervened.)
>
> Since my fido link identified the cause (it seemed it was in his end), CPU
> is backed to < 5%.
Well if you figure out how to reproduce the problem, let me know.
--
digital man (rob)
Breaking Bad quote #8:
I want Shania Twain to give me a tuggy. Guess what? That ain't happening either
Norco, CA WX: 89.9°F, 39.0% humidity, 8 mph SSE wind, 0.00 inches rain/24hrs
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
|