connecting users of the CorelDRAW family of products

X6 is using 98% CPU when idle in print preview

rated by 0 users
Not Answered This post has 0 verified answers | 10 Replies | 0 Followers

Share  
Page 1 of 1 (11 items) | RSS

Top 10 Contributor
London UK
harryLondon posted on Fri, Jun 29 2012 7:30

I'm currently working on an XP 32 bit system with AMD Athlon 64 3200+

CorelDraw is displaying a print preview but is otherwise completely idle. It has finished displaying the preview, so it is just waiting for user action but has nothing else to do.

Photopaint in another window was running extruciatingly slow so I checked task manager. CorelDraw.exe was showing to be using 98% of the CPU.

On further investigation, this happens only when the print preview is on the screen. I close the print preview, return to CorelDraw design screen and CPU is 0% when idle. I do another print preview -- 98% CPU again.

I'll try it later on a quad core system, but it seems that print preview should not be hogging the CPU when idle waiting for operator action.

 

All Replies

Top 10 Contributor
Virginia USA
Male

Hello harry; Does the computer have a separate video card?

George

TheSignGuy

Computer i5 Intel 2500K 4.0 mh, 16 gig Ram, SSD Main Drive, 1T WD Black, 1T Segate, 2 gig DDR 5 G Force Video card, Windows 7 Utl. 64 bit, ASRock Extreme 4 Mobo


Top 10 Contributor
London UK

It does. Nvidia GeForce 6200.

But this looks more like software forgetting to include a sleeping or task switching statement in its "waiting for a keystroke" loop.

Top 10 Contributor
Virginia USA
Male

I might understand if the CPU was doing the video, but with a video card I wouldn't have thought it would tie up that much of the CPU.

George

TheSignGuy

Computer i5 Intel 2500K 4.0 mh, 16 gig Ram, SSD Main Drive, 1T WD Black, 1T Segate, 2 gig DDR 5 G Force Video card, Windows 7 Utl. 64 bit, ASRock Extreme 4 Mobo


Top 10 Contributor
Virginia USA
Male

harry on a i5 with 8 gb ram and a 2 gb Nvidia 550, an print preview it is using 25% of the CPU with no more use of ram than when it's closed?

George

TheSignGuy

Computer i5 Intel 2500K 4.0 mh, 16 gig Ram, SSD Main Drive, 1T WD Black, 1T Segate, 2 gig DDR 5 G Force Video card, Windows 7 Utl. 64 bit, ASRock Extreme 4 Mobo


Top 10 Contributor
London UK

It's a common mistake when programming for windows. When software has nothing to do, it must tell windows that it has nothing to do (typically by requesting to sleep for 0.1 sec) so that windows can allocate the time to another process that can actually use the time.

0.1 seconds may sound quite short, sound a lot, but the CPU can actually do rather a lot with it -- especially as the original process probably still doesn't have anything to do afterwards. So it can sleep over and over again for possibly quite a large number of 0.1 second periods until the user actually does something. At this point it should normally get the CPU back within 0.1 sec. provided that there's not some other program on the system that is forgetting to sleep when idle.

Top 10 Contributor
London UK

TheSign Guy:
an print preview it is using 25% of the CPU

Is it a quad core system?

That is exactly what I'd expect on a quad core system. The idle print preview is maxing out one of the cores. The effects of that are less noticeable than on a single core system, because your other cores are available to do other work.

Its still a fault though. There are many processes in windows, most of them are idle most of the time. But a process which is idle needs to use no more than about 0.1% of a core if it sleeps properly when waiting for user input.

 

Top 10 Contributor
Virginia USA
Male

harry I see what you are saying, I wouldn't have thought "Print Preview" would have used much CPU band width at all. I did learn that anything that is minimized uses no CPU Time ( seem to all be stored in ram ) It's funny how much you can pick up playing with things and looking to see what happens.
  The 25% was not all on one core, I didn't check to see how much but I will later and post it just for the fun of knowing.

George

TheSignGuy

Computer i5 Intel 2500K 4.0 mh, 16 gig Ram, SSD Main Drive, 1T WD Black, 1T Segate, 2 gig DDR 5 G Force Video card, Windows 7 Utl. 64 bit, ASRock Extreme 4 Mobo


Top 10 Contributor
London UK

Actually you'll find that if there is a print preview on the screen, that window continues to use its full CPU time even when minimised.

Top 10 Contributor
Sweden
Male

harryLondon:
The idle print preview is maxing out one of the cores.
For some reason it does, yes.
I have a dual core here and as soon as I open Print Preview, it goes up to 50% (one core almost 100%).
I have heard about it before and I believe they are aware of it.

/Ronny

“The ability to think differently today from yesterday distinguishes the wise man from the stubborn”
John Steinbeck

Top 10 Contributor
Virginia USA
Male

harryLondon:

Actually you'll find that if there is a print preview on the screen, that window continues to use its full CPU time even when minimised.

Harry on a i5 quad core the "Print Preview" uses 70 to 85% of one core while it hits the other cores up to about 0 to 10% one core at a time in random. With 8 programs minimized it uses up 48% of the 8 gb of ram the computer has but almost no CPU usage. ( That's a good reason to not have more open than you have to use at a time. ) And it makes me wonder how much the Bios has to do with it, I mean the manufacture of it, in my case mine is MSI.

George

TheSignGuy

Computer i5 Intel 2500K 4.0 mh, 16 gig Ram, SSD Main Drive, 1T WD Black, 1T Segate, 2 gig DDR 5 G Force Video card, Windows 7 Utl. 64 bit, ASRock Extreme 4 Mobo


Page 1 of 1 (11 items) | RSS
© Corel Corporation. The content herein is in the form of a personal web log ("Blog") or forum posting. As such, the views expressed in this site are those of the participants and do not necessarily reflect the views of Corel Corporation, or its affiliates and their respective officers, directors, employees and agents. Terms and Conditions / User Guidelines.