Welcome Guest.   Make a donation to an author on the site September 01, 2014, 09:03:17 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2013! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Major CPU flaw?  (Read 4770 times)
Rasczak
Participant
*
Posts: 2

View Profile Give some DonationCredits to this forum member
« on: October 10, 2008, 12:27:41 PM »

G'day.

First. I've gotta say: This program has great potential! A really convenient program for turning my server into a batch-robot, without the hassle of making batch-files.


The problem:
I've got dual-cores on all my machines.
When I start DD-robot, it uses one whole core! Even when doing multithreaded operations (using both cores for batch-work) - DD-robot is competing with the other programs for cycles. This slows down operations tremendously.

Solution:
By holding the mouse-button down inside - or otherwise drag/move - the window of DD-robot, the percent of CPU-cycles used instantly drops to zero.
What causes this? Seems like there's a major flaw within the app framework.


Here's two images showing the action.
The first shows DDrobot in action without any involvement from my side.
In the second image, I'm dragging the window.



Logged
mouser
First Author
Administrator
*****
Posts: 33,294



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: October 11, 2008, 12:19:57 AM »

there are too possibilities here.. either i have forgotten something and am using a huge amount of cpu monitoring the launched application.. or more likely, what's happening is that D+D Robot is being "blamed" for the cpu use of the program you are launching.

In other words, i suspect that cpu usage you are seeing is really the cpu use of the launched program -- it's just being assigned to D+D Robot because of the way D+D launches the program.
Logged
Rasczak
Participant
*
Posts: 2

View Profile Give some DonationCredits to this forum member
« Reply #2 on: October 11, 2008, 06:53:46 AM »

Initially, I also thought that D+D was only displaying CPU usage, because of the processes being run under it.
However, the difference between running commands through D+D and directly through CMD is noticably

I did a test with PAR2 just recently. By running the command thrugh D+D, it took 48,8 sec to get from 0,1 to 0,5 percent. The same process took 36,2 sec by running the command directly.
D+D fluctuates between 0 and 50% cpu usage (50% is one core). Actually, it was at 0% CPU usage about 60% of the time. The difference is also noticeably, in the sense that the percentage of work done, increases more rapidly when run directly.
Also, if the process were 'hiding' under D+D, it makes no sense that moving/clicking the D+D window would instantly drop CPU-usage to zero.

Something is definitely wrong.
Logged
f0dder
Charter Honorary Member
***
Posts: 8,774



[Well, THAT escalated quickly!]

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: October 11, 2008, 09:22:06 AM »

Mouser, what kind of "monitoring" of the launched app are you doing?

If it's simply to wait for termination, I hope you're doing WaitForSingleObject and not polling GetExitCodeProcess... smiley
Logged

- carpe noctem
mouser
First Author
Administrator
*****
Posts: 33,294



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: October 11, 2008, 11:25:48 AM »

Ok so it does sound like something is going wrong with D+D robot.  It's been a while since i was in the source code -- i'll take a look and see what i see and report back.
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.031s | Server load: 0.2 ]