Bitcoin Forum
May 02, 2024, 05:23:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: DAG_cleaner script for eth mining in windows...  (Read 718 times)
GenTarkin (OP)
Legendary
*
Offline Offline

Activity: 2450
Merit: 1002


View Profile
April 01, 2016, 09:43:42 PM
 #1

Simple, Auto-It script works, it can be compiled into a .exe for ease of use:
It just deletes everything except current used DAG and the newest DAG(one going to be used).
I made it because newest genoil ethminer crashes whenever I try to set the autodag deletion feature. On 12 different rigs it crashes =(
Code:
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=..\Program Files (x86)\AutoIt3\Icons\MyAutoIt3_Blue.ico
#AutoIt3Wrapper_Change2CUI=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****


$DAGDIR=FileGetShortName(@LocalAppDataDir & "\ethash")
$DAGDIRCUST=FileGetShortName(@HomeDrive & "\ethash")

While 1
Sleep(2 * 60 * 1000)
ConsoleWrite("Deleting unused DAG files..." & @CRLF)
;FileDelete($DAGDIR & "\*")
;FileDelete($DAGDIRCUST & "\*")
_DeleteDAG($DAGDIR)
_DeleteDAG($DAGDIRCUST)
ConsoleWrite("Deletion complete" & @CRLF)
Sleep(1 * 24 * 60 * 60 * 1000)
WEnd

Func _DeleteDAG($dir)
local $search = FileFindFirstFile($dir & "\*")
local $locked, $prevtime, $curtime
local $newest = 0
local $newestfilename
While 1
$file = FileFindNextFile($search)
;ConsoleWrite($file & @CRLF)
if @error then ExitLoop

$curtime = FileGetTime($dir & "\" & $file, 0, 1)
if $curtime > $newest Then
$newest = $curtime
$newestfilename = $file
EndIf


WEnd
FileClose($search)
$search=""

$search = FileFindFirstFile($dir & "\*")
While 1
$file = FileFindNextFile($search)
if @error then ExitLoop
if $file == $newestfilename then ContinueLoop
FileDelete($dir & "\" & $file)
WEnd
FileClose($search)

EndFunc


GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! -- !!NO LONGER AVAILABLE!!
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714670584
Hero Member
*
Offline Offline

Posts: 1714670584

View Profile Personal Message (Offline)

Ignore
1714670584
Reply with quote  #2

1714670584
Report to moderator
1714670584
Hero Member
*
Offline Offline

Posts: 1714670584

View Profile Personal Message (Offline)

Ignore
1714670584
Reply with quote  #2

1714670584
Report to moderator
Bazelak
Full Member
***
Offline Offline

Activity: 221
Merit: 100


View Profile
April 02, 2016, 05:43:46 AM
 #2

What language is it? How do we compile the file. I would like to use that feature as my hard disk is quite small.

▃▄▅▆▇ STOX -  ETH based Prediction Market ▇▆▅▄▃
▂▃▅▆▆▆▆▆▆▆▆▆▆▆▆▆ Token Sale   ▆▆▆▆▆▆▆▆▆▆▆▆▆▅▃▂
Whitepaper | ANN | Bounty | Telegram | Twitter | Website
GenTarkin (OP)
Legendary
*
Offline Offline

Activity: 2450
Merit: 1002


View Profile
April 07, 2016, 02:51:45 PM
Last edit: April 07, 2016, 03:03:48 PM by GenTarkin
 #3

Language is autoit. It can be compiled by downloading autoit. I can make the .exe, I will make it available soon =)

I may, also add auto miner reboot when a new dag goes live, I notice many miners fail to switch over to it properly.

GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! -- !!NO LONGER AVAILABLE!!
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
Narosya
Sr. Member
****
Offline Offline

Activity: 428
Merit: 250



View Profile
April 07, 2016, 08:16:28 PM
 #4


I may, also add auto miner reboot when a new dag goes live, I notice many miners fail to switch over to it properly.

Does that include the qtminer or the ethminer modified by Genoil? I use both to mine and do not see that.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!