mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing

Reply
 
Thread Tools
Old 2011-10-07, 19:37   #1
NBtarheel_33
 
NBtarheel_33's Avatar
 
"Nathan"
Jul 2008
Maryland, USA

21338 Posts
Question Mfaktc sieveprimes=5000 OK?

Hi,

I'm playing with the GPU and mfaktc again, and I've noticed that if I adjust SievePrimes down from the default 25000 to 5000, I get a significant speedup. Is there any downside to reducing SievePrimes? Can this cause factors to be missed?
NBtarheel_33 is offline   Reply With Quote
Old 2011-10-07, 20:01   #2
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

11×101 Posts
Default

Hi,

Quote:
Originally Posted by NBtarheel_33 View Post
I'm playing with the GPU and mfaktc again, and I've noticed that if I adjust SievePrimes down from the default 25000 to 5000, I get a significant speedup. Is there any downside to reducing SievePrimes? Can this cause factors to be missed?
Unless there is an undiscovered bug the value of SievePrimes does not cause missing factors.
Significant speedup... how much faster is it? Keep in mind that the avg. rate doesn't really matters. What matters is the time per class/assignment.

Perhaps you want to dedicate another core to mfaktc. SievePrimes=5000 usually tells you that not enough CPU resources are available. Just start another copy of mfaktc in a separate directory working on different exponents.

Oliver

Last fiddled with by TheJudger on 2011-10-07 at 20:04
TheJudger is offline   Reply With Quote
Old 2011-10-08, 00:43   #3
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

722110 Posts
Default

What is avg. rate then if it doesn't really matter? I notice the same thing, where the speed up is in avg. rate. (the auto adjust doesn't up it from 5000 if that matters)
Dubslow is offline   Reply With Quote
Old 2011-10-08, 03:02   #4
Christenson
 
Christenson's Avatar
 
Dec 2010
Monticello

179510 Posts
Default

Oliver, correct me if I'm wrong, but I think that Average Rate refers to the rate at which the GPU takes candidate factors (output from the prime sieve running on the CPU, which at sieveprimes = 5,000, is doing a relatively worse job of eliminating things that can't be factors) and determines whether the candidates are or are not factors.

Classes, on the other hand, represent a fixed division in the population of all possible factors, so you want those to fly by as fast as possible.

A low sievePrimes indicates that the CPU core is saturated, and you *may* want to add another CPU to the job by running a second copy of mfaktc on a different core. (But possibly not, as this other core could be doing P-1 or LL tests)
Christenson is offline   Reply With Quote
Old 2011-10-09, 00:59   #5
Chuck
 
Chuck's Avatar
 
May 2011
Orange Park, FL

3×5×59 Posts
Default

Mfaktc on my system always adjusts sieveprimes down to 5000 after a few seconds of operation. I tried shutting off the automatic adjustment and using higher values, but 5000 always gives me the best performance (least amount of total time spent).

I am running two instances of mfaktc, two LL tests, one DC and one P-1 on a six-core system (core-i7, hyperthreading off).

Chuck
Chuck is offline   Reply With Quote
Old 2011-10-09, 20:12   #6
Christenson
 
Christenson's Avatar
 
Dec 2010
Monticello

5·359 Posts
Default

Quote:
Originally Posted by Chuck View Post
Mfaktc on my system always adjusts sieveprimes down to 5000 after a few seconds of operation. I tried shutting off the automatic adjustment and using higher values, but 5000 always gives me the best performance (least amount of total time spent).

I am running two instances of mfaktc, two LL tests, one DC and one P-1 on a six-core system (core-i7, hyperthreading off).

Chuck
Assuming you have set up the instances of mfaktc to run on two separate cores using your operating system, that means you have a very nice GPU that your CPU isn't quite keeping up with, so the low sieveprimes reduces the CPU load per class, and makes the GPU, with the spare cycles available, do a little more work.
Christenson is offline   Reply With Quote
Old 2011-10-09, 21:41   #7
Chuck
 
Chuck's Avatar
 
May 2011
Orange Park, FL

15658 Posts
Default

Quote:
Originally Posted by Christenson View Post
Assuming you have set up the instances of mfaktc to run on two separate cores using your operating system, that means you have a very nice GPU that your CPU isn't quite keeping up with, so the low sieveprimes reduces the CPU load per class, and makes the GPU, with the spare cycles available, do a little more work.
It is a GTX580 Black Ops (797 MHz default clock)

Chuck
Chuck is offline   Reply With Quote
Old 2011-10-09, 22:10   #8
Christenson
 
Christenson's Avatar
 
Dec 2010
Monticello

5·359 Posts
Default

Quote:
Originally Posted by Chuck View Post
It is a GTX580 Black Ops (797 MHz default clock)

Chuck
QED, a *very* nice GPU!
Christenson is offline   Reply With Quote
Old 2011-10-10, 02:25   #9
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Quote:
Originally Posted by Chuck View Post
It is a GTX580 Black Ops (797 MHz default clock)

Chuck
daaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaannnnnnnnnnnnnnnnnnnnnnnngggggggggggggg
Dubslow is offline   Reply With Quote
Old 2011-10-10, 16:57   #10
kjaget
 
kjaget's Avatar
 
Jun 2005

8116 Posts
Default

Quote:
Originally Posted by Chuck View Post
Mfaktc on my system always adjusts sieveprimes down to 5000 after a few seconds of operation. I tried shutting off the automatic adjustment and using higher values, but 5000 always gives me the best performance (least amount of total time spent).
This might be telling you that there's a benefit to running a 3rd instance of mfaktc to keep the card fed with data?
kjaget is offline   Reply With Quote
Old 2011-10-10, 17:11   #11
Chuck
 
Chuck's Avatar
 
May 2011
Orange Park, FL

3×5×59 Posts
Default

Quote:
Originally Posted by kjaget View Post
This might be telling you that there's a benefit to running a 3rd instance of mfaktc to keep the card fed with data?
No, it's running at 85% GPU load.

Chuck
Chuck is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
SievePrimes is too big for the current assignment mattmill30 GPU to 72 21 2017-02-01 00:20
4000 < k < 5000 otutusaus Riesel Prime Data Collecting (k*2^n-1) 5 2012-03-07 20:01
5000 < k < 6000 justinsane Riesel Prime Data Collecting (k*2^n-1) 26 2010-12-31 12:27
Factoring on a 5000+ jasong Hardware 3 2006-06-17 08:50
Top-5000 List edorajh Riesel Prime Search 17 2006-03-28 21:57

All times are UTC. The time now is 08:10.


Mon Aug 2 08:10:39 UTC 2021 up 10 days, 2:39, 0 users, load averages: 1.39, 1.38, 1.43

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.