Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

High CPU Usage - [SOLVED]

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

High CPU Usage - [SOLVED]

Post by mcrossley »

On my Win7 installation (now working fine after installing .Net 4.5), CumulusMX is sat using 21% CPU, which seems a little high?

Realtime = 10 seconds
Logging = 5 minutes
Station = FO 1090

Edit: No console connected.
Capture.PNG
You do not have the required permissions to view the files attached to this post.
Last edited by mcrossley on Mon 05 Jan 2015 12:10 pm, edited 1 time in total.
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: High CPU Usage

Post by steve »

Yes, it does. It uses about 1% with my VP2, so it's likely to be the FO data reading loop. I'll investigate.
Steve
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: High CPU Usage

Post by mcrossley »

The I/O is a constant read and write of about 110KB/s if that is any help.
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: High CPU Usage

Post by steve »

I've done a quick test with my FO, and it's using less than 1% CPU according to task manager. This is on Windows 8.1.

What is that utility that you're using?
Steve
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: High CPU Usage

Post by mcrossley »

I'm using Process Explorer, part the System Internals toolset from MS - recommended!

The thread info shows this...
Capture.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: High CPU Usage

Post by steve »

Ah, yes, I use that from time to time. I don't get anything like what you're seeing:
2015-01-05 10_53_11-CumulusMX.exe_13252 Properties.png
Googling GetMetaDataInternalInterfaceFromPublic finds a number of mentions of high CPU usage, but I don't really know how it ties in with Cumulus MX. It seems to be something to do with IIS. I haven't got time to look any further at the moment, I should be working...
You do not have the required permissions to view the files attached to this post.
Steve
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: High CPU Usage

Post by mcrossley »

No problem, get on with the paid work!

This is weird, there were 'normally' a number of threads consuming about 5% each, I did a stack trace (in Process Explorer) on those, nothing unusual, then every so often a single thread would use 21%. I did a stack trace on that thread, and it was writing to file. Now the weird bit, after doing that stack trace the MX utilisation immediately dropped to 2% (I heard to fan slow as the stack trace was displayed), and it has stayed like that ever since.

I had already restarted MX a number of times due to duplicated lines in the Jan15 log file, each time it consumed 20% CPU.

I'll restart it again later and see what happens, but I'll leave it running as-is for now (all the I/O has gone!)...
Capture.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: High CPU Usage

Post by mcrossley »

Actually, something seems to have crashed, it stopped updating the web site :(

BUT! problem solved, I had edited the Cumulus.ini to change my realtime interval to seconds, rather than miliseconds 10000 -> 10

It seems the build 3001 does use milliseconds now? It was trying to update the realtime every 10 ms, I have changed it back to 10000 and it is updating every 10 seconds.

Maybe it was just my confusion, but I could have sworn that we had to edit the value from ms to secs - but I can't find the reference now!
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: High CPU Usage - [SOLVED]

Post by steve »

Yes, I'm confused now myself, because the timers in MX do also use milliseconds.
Steve
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: High CPU Usage - [SOLVED]

Post by steve »

I think it's all actually correct after all, it's just that the interval is displayed in milliseconds.
Steve
Adrian Hudson
Posts: 220
Joined: Mon 03 Jan 2011 4:27 pm
Weather Station: Davis Vantage Pro2
Operating System: Win 7
Location: Willand, mid Devon.
Contact:

Re: High CPU Usage - [SOLVED]

Post by Adrian Hudson »

Talking of high CPU. MX does seem to use more than V1 did

Some graphs:
(note, I rename cumulusmx.exe to cumulus.exe so my monitoring program is happy - too lazy to change it!)
You do not have the required permissions to view the files attached to this post.
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: High CPU Usage - [SOLVED]

Post by steve »

Here's mine (5 sec realtime interval, processing realtime.txt and 2 extra files):
2015-01-07 22_55_57-pomona - Remote Desktop Connection.png
I don't know what v1 used (I may give it a try) but it could hardly use less.
You do not have the required permissions to view the files attached to this post.
Steve
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: High CPU Usage - [SOLVED]

Post by steve »

I tried running Cumulus 1 in the same folder, so the same settings and the same data, and it used significantly more CPU than MX (between 1 and 4%). This is on an 8 year old computer.

But in any case, MX is a debug build, so performance comparisons aren't particularly useful at the moment.
Steve
Adrian Hudson
Posts: 220
Joined: Mon 03 Jan 2011 4:27 pm
Weather Station: Davis Vantage Pro2
Operating System: Win 7
Location: Willand, mid Devon.
Contact:

Re: High CPU Usage - [SOLVED]

Post by Adrian Hudson »

I wasn't trying to criticise... I posted more for your info than wanting you to do anything about it. its odd how it acts differently on different machines. Perhaps if I get bored I will try it on another.
Locked