mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2007-12-13, 13:06   #1
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17×251 Posts
Default Prime95 uses half of each core?

I recently got a dual-core, and I noticed something. I have two Prime95's running with the -An switch, and if I stop one of them, the other (according to taskmgr) uses half of each core. I always assumed it would have used one core to 100% and the other to 0%. If it really does use half of each core, is it losing efficiency by doing so instead of using one core 100% and the other 0%? What's keeping it from using both cores fully instead of both halfway?
Are the services not setting affinities correctly on boot? I ran the two Prime95's with the -An switches, then let them create services. I can see the two services listed (as Prime95 Service-0 and -1), but they each seem to just point to Prime95.exe with no -An switch. It has created the correct work0000.ini, work0001.ini, etc. files in the Prime95 folder.
If I set the affinities in the Advanced menu (still on the windows that the services opened up, btw) and stop the one that should be running on the second core, taskmgr shows ~25% usage on core 0 and ~75% usage on core 1. If I stop the one that should run on core 0, it has core 0 at ~0% and core 1 at 100%, as expected.

Or is taskmgr just reporting it wrong when only one of the processes is running?
Also, I noticed that the two cores get approximately the same CPU time, but I would've expected that the second core wouldn't get used as much (because of programs, especially games like BFME2, that don't support dual-core), and the second process would get more CPU time.

I suppose this really isn't a problem, but it's strange behavior, and I was wondering why it's like this.
Mini-Geek is offline   Reply With Quote
Old 2007-12-13, 13:45   #2
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

2×19×163 Posts
Default

It is just how the task scheduler works in windows. At each time slice interrupt the OS choses which core will continue on with the task.

As for efficiency it will usually mean that the L2 cache requires purging before switching that task to another core. The OS might purge L2 anyway (whether switching cores or not) when the time slice is finished so perhaps the efficiency loss will be constant regardless of which core is used, but there is a chance that on some processor models that keeping a task on the same core can permit the OS to leave L2 untouched. Nowadays with shared L2 this may make no difference. I guess only a test will show if the OS behaviour is smart enough to know when to purge L2 and when to leave it to maximise efficiency.

Last fiddled with by retina on 2007-12-13 at 13:47
retina is online now   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Prime95 crashes everytime on same core chiro Software 18 2018-04-12 12:41
Prime95 performance on Core i5 3570K akselsm Hardware 14 2013-02-10 15:23
How to limit prime95 to use only one Core? dabaichi Software 7 2011-09-17 02:16
Prime95 performance on the AMD 12 core Magny-Cours joblack Hardware 3 2009-08-07 23:03
Prime95 using only one half of CPU Unregistered Hardware 10 2005-11-17 14:39

All times are UTC. The time now is 17:25.


Fri Jul 16 17:25:48 UTC 2021 up 49 days, 15:13, 1 user, load averages: 0.95, 1.46, 1.57

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.