Welcome Guest Search | Active Topics | Sign In | Register

CPU usage in multi threads Options
ozheek
Posted: Wednesday, October 5, 2016 12:16:05 PM
Rank: Advanced Member
Groups: Member

Joined: 8/29/2016
Posts: 64
Hi,

I have multi thread application. In each thread I load some url capture the screen and save it.

I found that if I run 4 threads each EO process uses about 8% of CPU.
But when I do 15 threads each EO process starts to use less than 1% of CPU. When CPU is loaded only for 50%.
Please check the screen http://prntscr.com/cq6r8l

It looks that all EO processes have some CPU usage and they divided between processes.
And 15 threads work slower than 5 threads.

Maybe something wrong with Windows configuration? Hope you can give advices why it can happen.

eo_support
Posted: Thursday, October 6, 2016 2:17:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

This can be normal. It's not that if you have more thread you will utilize your system more efficiently. You will need to work out what each thread is waiting on.

Thanks!
ozheek
Posted: Thursday, October 6, 2016 3:49:30 PM
Rank: Advanced Member
Groups: Member

Joined: 8/29/2016
Posts: 64
Thank you for the answer. Is it any way to load all computer resources (CPU/RAM)? Maybe I can disable GPU or something else?
For me very important to open as many WebViews as possible at the same time. I need to process many pages and it would be great if I can do it as fast as possible.
ozheek
Posted: Thursday, October 6, 2016 4:35:31 PM
Rank: Advanced Member
Groups: Member

Joined: 8/29/2016
Posts: 64
At the beginning, when I just started threads the CPU usage is maximum, after a while the app starts to work slower and slower.
And EO processes use less than 1% of CPU each, when at the beginning it's 5-7%.

Screenshot of CPU at the beginning: http://prntscr.com/cqp215
ozheek
Posted: Thursday, October 6, 2016 7:29:03 PM
Rank: Advanced Member
Groups: Member

Joined: 8/29/2016
Posts: 64
I am afraid that problem appears because of some issues of using .net threads. When I restart .net thread, when I create WebViews, it works again with maximum CPU usage. I am investigation it with measuring real time that takes for creating WebViews. Maybe somebody can give me ideas why it can happen?


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.