CPU usage during a long running event (OpenInsight 64-bit)
At 14 MAY 2023 08:58:17PM Russell Olton wrote:
I have found that the cpu usage sits at about 25% for a long running event even though the process is basically sleeping. In OI 9.4 the cpu usage for the same process would typically sit between 0 and 0.5%.
I have created a simple form / commuter in SYSPROG to mimic this setup and it produces the same behaviour. I can provide the source code if required but essentially the form just has a start button and a stop button. Clicking on Start calls a program that runs a loop that 1) sleeps for a second; 2) checks if the stop button has been pressed; and 3) performs a yield. The loop will continue until the Stop button is pressed.
Any ideas as to why the cpu usage would be so high even though the program is basically sleeping? If I run the program directly from TCL or the System monitor (with a timed exit instead of the Stop button) the cpu sits at about 0.
At 15 MAY 2023 12:43PM Carl Pates wrote:
Hi Russell,
Are you test-running a form from the IDE when you see this? The Form Designer uses a TIMER event during this process which could explain what you are seeing, otherwise we will need further details to help figure this out.
Regards
At 15 MAY 2023 07:04PM Russell Olton wrote:
Hi Carl,
It's the same whether I start it from TCL or the System monitor or test run it from the IDE or even via a program.
I can send a RDK of the test form / commuter I created in SYSPROG if that will help although it should be very easy to replicate - just let me know what you need.
Thanks,
Russell
At 15 MAY 2023 08:19PM Carl Pates wrote:
Hi Russell
An RDK is fine - email is below.
Regards,
At 16 MAY 2023 09:48AM Carl Pates wrote:
HI Russell,
Thanks for the RDK - you'll be pleased to know it should be fixed for the next release so watch out for it then.
Regards