mersenneforum.org  

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

Reply
 
Thread Tools
Old 2013-03-03, 03:13   #1
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

23·101 Posts
Default MFAKTx speed menu (windows)

Using this batch menu you can select how to start your mfaktx instances. The key here is you need to have three .ini files each configured in such a way that GPU utilization goes from low-> med -> high. It is up to you to determine the method of control. For mfaktc 0.20 I just change one value in the .ini files. *GPUSieveSize=x"*

in the mfaktc.slow.ini the value is GPUSieveSize=4

in the mfaktc.med.ini the value is GPUSieveSize=16

in the mfaktc.med.ini the value is GPUSieveSize=128

You can use whatever value(s) you want. The key is having the three ini files in place.

The speed is controlled because the values produce changes in GPU utilization. High being 99% then dropping down from there. Lower GPU utilization means less lag and the ability to keep mfaktc running while watching movies, or even playing some low-end games.


Get the Speed Controller batch file with required supporting utilities from
http://mersenneforum.org/misfit/downloads/other/


Although the provided batch file is setup for mfaktc it can be adapted to mfakto.

This batch file assumes you have renamed the mfaktc executable to mfaktc.exe
Attached Thumbnails
Click image for larger version

Name:	SpeedContoller.PNG
Views:	193
Size:	9.3 KB
ID:	9449  

Last fiddled with by swl551 on 2013-03-03 at 03:47
swl551 is offline   Reply With Quote
Old 2013-03-03, 14:16   #2
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

10000101010112 Posts
Default

This is an excellent (and simple) utility, thank you! Any chance of this functionality being integrated into MISFIT? It would be great if it could detect whether the computer is idle and switch accordingly.

Even if this is not integrated into MISFIT, if you could add a default startup speed, this would be useful as a script to run on startup (or through MISFIT).

Last fiddled with by Mini-Geek on 2013-03-03 at 14:18
Mini-Geek is offline   Reply With Quote
Old 2013-03-03, 15:20   #3
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

23×101 Posts
Default

Quote:
Originally Posted by Mini-Geek View Post
This is an excellent (and simple) utility, thank you! Any chance of this functionality being integrated into MISFIT? It would be great if it could detect whether the computer is idle and switch accordingly.

Even if this is not integrated into MISFIT, if you could add a default startup speed, this would be useful as a script to run on startup (or through MISFIT).
Determining the definition of "computer is idle" is tough. Are we talking CPU, GPU or both. I can determine CPU utilization using some native WMI and/or Process libraries in .NET. Accessing that information from the GPU is likely to be very complicated in .NET. So let's consider that option off the table for now or until I have more technical information on how it might be done.

The speed menu may find its way into MISFIT once I get more feedback. It would be nice if MFAKTC and MFAKTO could have a command-line argument similar to CudaLucas' POLITE option. This would allow you to directly tell the program how to run, and not play with .ini files. Bdot? Oliver? Dubslow? Flashjh? thoughts?

Here is the content to make a startup bat file defaulting to FAST based on what I've built so far.
StartFast.bat has been added to the .zip file on the MISFIT site.

Code:
@echo off
rem batch file by SWL551
set TARGET=MFAKTC.INI
set SPEED=MFAKTC.FAST.INI
set MF=MFAKTC.EXE

COPY %SPEED% %TARGET%
rem now start up factoring
START "%SPEED%" %MF%

rem now start up the speed menu
START MFSPEED.BAT
Scott

Last fiddled with by swl551 on 2013-03-03 at 15:40
swl551 is offline   Reply With Quote
Old 2013-03-03, 18:50   #4
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

11·101 Posts
Default

Hi Scott,

I guess I'll stay with the ini file. This way it is easy to add comments, etc.

Oliver
TheJudger is offline   Reply With Quote
Old 2013-03-03, 18:58   #5
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

23×101 Posts
Default

Quote:
Originally Posted by TheJudger View Post
Hi Scott,

I guess I'll stay with the ini file. This way it is easy to add comments, etc.

Oliver
What are your thoughts on a POLITE feature or some way to force wait-states on the processor? Steal the code from CuluLu?

Last fiddled with by swl551 on 2013-03-03 at 19:00
swl551 is offline   Reply With Quote
Old 2013-03-06, 13:32   #6
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

23×101 Posts
Default

In conclusion: With no support from MFAKTO/C for a command line option to control speed (see previous postings for clarification) MISFIT will not implement a Speed Control menu. MISFIT has to be easy to use and have simple configurations. A faux speed controller via hacking up .ini files is not supportable within MISFIT.

However, the batch file works, and allows the user to manipulate all the possible variables required to achieve speed control.


Hey, at least we tried!
swl551 is offline   Reply With Quote
Old 2013-03-06, 15:22   #7
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

33·192 Posts
Default

Quote:
Originally Posted by swl551 View Post
Hey, at least we tried!
Indeed.

There are times when a developer must decide that something doesn't make sense....
chalsall is offline   Reply With Quote
Old 2013-03-06, 19:42   #8
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

45716 Posts
Default

Hey, don't give up too early. This is no promise that I'll do but at least I didn't say that I won't do it.
I need to check what polite does first. I didn't spend time on mfaktc in the past days.

Oliver
TheJudger is offline   Reply With Quote
Old 2013-03-07, 00:16   #9
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

160658 Posts
Default

In older versions, "-polite <n>" added an extra cudaMemcpyDeviceToHost of a float every n iterations (which take some small number of milliseconds to complete). In more recent versions since owftheevil got involved, it calls "cudaStreamSynchronize(0)" every n iterations.
Dubslow is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
released: MISFIT for MFAKTx version 2.11.0 (31-Jan-2017) swl551 MISFIT 19 2020-11-18 14:29
MfaktX Controller (Windows) Mini-Geek Software 52 2014-02-18 18:27
MISFIT for MFAKTx swl551 MISFIT 186 2014-02-05 23:27
(archive)mfaktXHelper - utility for managing mfaktX installations swl551 MISFIT 57 2012-08-12 03:37
CPU Priority (advanced menu) Software 7 2002-09-24 23:54

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


Tue Jul 27 08:16:56 UTC 2021 up 4 days, 2:45, 0 users, load averages: 1.54, 1.82, 1.77

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.