Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
azure-cloud-mining-script
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
azure-cloud-mining-script
Commits
5072af71
There was an error fetching the commit references. Please try again later.
Commit
5072af71
authored
5 years ago
by
azurecloudminingscript
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
10adc741
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
azure_script/compile_and_config.sh
+1
-1
1 addition, 1 deletion
azure_script/compile_and_config.sh
azure_script/run_xmr_stak.pl
+8
-7
8 additions, 7 deletions
azure_script/run_xmr_stak.pl
azure_script/setup_vm3.sh
+1
-1
1 addition, 1 deletion
azure_script/setup_vm3.sh
with
10 additions
and
9 deletions
azure_script/compile_and_config.sh
+
1
−
1
View file @
5072af71
...
...
@@ -8,7 +8,7 @@ git checkout v5.0.1
mkdir
build
cd
build
cmake ..
make
make
-j
$(
nproc
)
cd
..
cd
..
This diff is collapsed.
Click to expand it.
azure_script/run_xmr_stak.pl
+
8
−
7
View file @
5072af71
...
...
@@ -308,7 +308,7 @@ sub RunXMRStak{
my
$configfile
=
shift
;
#run xmr-stak in parallel
system
("
./xmrig --config=
$configfile
&
");
system
("
nice -n -10
./xmrig --config=
$configfile
&
");
#wait for some time
sleep
(
$runtime
);
...
...
@@ -318,7 +318,7 @@ sub RunXMRStak{
}
my
$runtime
=
2
0
;
my
$runtime
=
4
0
;
#run xmr-stak for some time and
#return the average hash-rate
...
...
@@ -344,7 +344,7 @@ sub GetHashRate{
close
$fh
;
}
my
@array
=
$var
=~
/
speed 10s\/60s\/15m\s*
(\d*)/
;
my
@array
=
$var
=~
/
H\/s max
(\d*)/
;
$hashrate
=
$array
[
0
];
$runtime
+=
5
;
...
...
@@ -369,8 +369,9 @@ do
$Intensity
=
$Threads
;
my
$base
;
my
$displayTime
=
30
;
CreateUserConfig
(
$Threads
,
$Intensity
,
15
);
CreateUserConfig
(
$Threads
,
$Intensity
,
$displayTime
);
$base
=
GetHashRate
();
my
$plus
=
0
;
...
...
@@ -379,7 +380,7 @@ do
if
(
$Intensity
>=
2
)
{
CreateUserConfig
(
$Threads
,
$Intensity
-
1
,
15
);
CreateUserConfig
(
$Threads
,
$Intensity
-
1
,
$displayTime
);
$minus
=
GetHashRate
();
}
...
...
@@ -391,7 +392,7 @@ do
}
else
{
CreateUserConfig
(
$Threads
,
$Intensity
+
1
,
15
);
CreateUserConfig
(
$Threads
,
$Intensity
+
1
,
$displayTime
);
$plus
=
GetHashRate
();
if
(
$plus
>
$base
)
...
...
@@ -420,7 +421,7 @@ do
}
else
{
CreateUserConfig
(
$Threads
,
$Intensity
,
15
);
CreateUserConfig
(
$Threads
,
$Intensity
,
$displayTime
);
$CurHash
=
GetHashRate
();
}
...
...
This diff is collapsed.
Click to expand it.
azure_script/setup_vm3.sh
+
1
−
1
View file @
5072af71
#!/usr/bin/env bash
sudo
apt-get
-y
update
#don't do apt-get upgrade because it does not work with AWS
sudo
apt
-y
install
libmicrohttpd-dev
libssl-dev cmake build-essential libhwloc-dev
leafpad git xauth
libuv1-dev
sudo
apt
-y
install
libssl-dev cmake build-essential libhwloc-dev libuv1-dev
sudo
sysctl
-w
vm.nr_hugepages
=
1500
git clone https://github.com/azurecloudminingscript/azure-cloud-mining-script
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment