https://wiki.vericoin.info/api.php?action=feedcontributions&user=ChiefThunderCunt&feedformat=atomVeriCoin & Verium Wiki - User contributions [en]2024-03-28T20:44:06ZUser contributionsMediaWiki 1.26.3https://wiki.vericoin.info/index.php?title=TV_Box_Mining&diff=937TV Box Mining2018-01-23T18:54:51Z<p>ChiefThunderCunt: /* Caution: What you should know... */</p>
<hr />
<div>How to mine with a TV Box like [https://m.geekbuying.com/item/H96-Pro-4K-Amlogic-S912-KODI-17-3-TV-Dongle-382407.html H96 Pro KODI 17.5 4K TV Dongle Android 7.1.1 Amlogic S912 2GB/8GB WIFI Bluetooth 4.1 HEVC H.265 Decoding VP9 HDR].<br />
<br />
== Caution: What you should know... ==<br />
<br />
# It's not 2 GHz, the s912 CPU runs at max. 1.5 GHz. [https://en.wikipedia.org/wiki/Amlogic#Media_player_SoCs_(S9_family)] [https://forum.odroid.com/viewtopic.php?f=141&t=23044&start=100] [https://www.cnx-software.com/2016/08/28/amlogic-s905-and-s912-processors-appear-to-be-limited-to-1-5-ghz-not-2-ghz-as-advertised/]<br />
# It's not even 8 cores at 1.5 GHz, the s912 has Big.LITTLE architecture so 4 cores at 1.5 GHz (big) and 4 at 1.0 GHz (little).<br />
# Compared to the [[Odroid]] CPU (ARMv7) speed is far less, but the CPU is ARMv8.<br />
<br />
'''Notice:'''<br />
<br />
On August 28, 2016, all members of the S9 family were reported to be internally limited to 1.5&nbsp;GHz instead of the advertised 2.0&nbsp;GHz clock rate. As of that date, it was not clear if the limitation was due to hardware, firmware or software issues.<br />
<br />
== Linux Image ==<br />
<br />
The Linux distribution for TV Boxes I found is done by [https://www.armbian.com/beelinkx2/ Armbian for Beelink X2].<br />
<br />
Additionally there is a forum thread for [https://forum.armbian.com/topic/2138-armbian-for-amlogic-s912/ Armbian for armlogic s912].<br />
<br />
For the Installation there is a [https://forum.armbian.com/topic/2419-armbian-for-amlogic-s905-and-s905x/ more useful thread]<br />
<br />
The main developer is [https://forum.armbian.com/profile/1215-balbes150/ Balbes150].<br />
<br />
A video guide can be viewed here [https://www.youtube.com/watch?v=Q0Sdu9pTMs4 on YouTube]<br />
<br />
Image '''download''' links are:<br />
* [https://yadi.sk/d/5_32km_EsCV2A/ARMBIAN Yandex]<br />
* [https://mega.nz/#F!Xw4WVBqY!xgPbJkJkfMUIVoCAX2hBlQ Mega]<br />
<br />
There is different versions:<br />
* Debian<br />
** Icewm<br />
** '''Server''' (tested, works)<br />
** xfce<br />
* Ubuntu<br />
** '''Icewm''' (tested, worked)<br />
** '''Server''' (tested, worked)<br />
** Mate (tested, failed)<br />
<br />
For me it was not nessecary to copy any dtb file.<br />
<br />
=== 3 GB version ===<br />
<br />
hugepages for debian Server:<br />
4 threads @ 1 way = 512 MB = 260 HP<br />
4 threads @ 3 way = 1536 MB = 772 HP<br />
2048 MB = 1032 HP<br />
<br />
Fireworm command:<br />
cpuminer -t 4 -1 4 --cpu-affinity-stride 1 --cpu-affinity-default-index 0 --cpu-affinity-oneway-index 4<br />
since the big cores are 0-3 and the little ones are 4-7 (just opposite of the Odroid)<br />
<br />
CPU Frequencies in<br />
/sys/bus/cpu/devices/</div>ChiefThunderCunthttps://wiki.vericoin.info/index.php?title=Verium_Mining&diff=733Verium Mining2018-01-15T13:19:52Z<p>ChiefThunderCunt: </p>
<hr />
<div>How to mine Verium.<br />
<br />
== General ==<br />
<br />
The overall network can be viewed in the [http://veriumstats.vericoin.info/ Live Global Mining Statistics].<br />
<br />
A hashrate profitability calculator:<br />
# Please make your own copy of [https://docs.google.com/spreadsheets/d/1b02BuES4AwZW9kpqzmyrPlEfO55TWdU_mFhgnVaakQ4/edit#gid=366374027 this spreadsheet] by selecting "File > Make Copy"<br />
# Make changes locally by entering your data into the green fields (the spreadsheet has been locked except for green cells to ensure continued functionality)<br />
<br />
* [https://steemit.com/verium/@birty/cpu-mining-is-back-a-complete-how-to-guide-and-profit-analysis-for-verium-mining-on-a-farm-of-single-board-computers-part-1 How To Mine Verium] Complete Guide by birty<br />
<br />
== Mining Software Guides ==<br />
<br />
=== Source Code ===<br />
<br />
The first mining software especially designed for Verium was provided by Douglas Pike aka effectstocause, one of the creators of this project. <br />
* [https://github.com/effectsToCause/veriumMiner Git repository effectstocause/veriumMiner]<br />
<br />
Based on effectstocauses original miner fireworm has created an update which includes several optimizations especially for Linux (memory) and ARMv8 CPUs.<br />
* [https://github.com/fireworm71/veriumMiner Git repository fireworm71/veriumMiner]<br />
<br />
cpuminer, cpuminer-opt can be used as well.<br />
<br />
=== Windows ===<br />
<br />
Slack: !tools<br />
[[https://vericoinandverium.slack.com/files/darkwolfultima/F6XH61HEG/veriumguiminer_v0.1.zip @darkwofultima's GUI Miner ]]<br />
<br />
[[https://vericoinandverium.slack.com/files/verimad/F6VVB8G4Q/yatteer_s_windows_verium_miner_build.zip @yatteers's Window's Miner]]<br />
<br />
!swap<br />
Here is a helpful link explaining how to increase your windows swap file! Many users find a 32GB swap file helps! http://www.thewindowsclub.com/increase-page-file-size-virtual-memory-windows<br />
<br />
[https://github.com/ig0tik3d/GroestlCoin-cpu-1.0a/blob/master/README Detailed windows compiling instructions sample]<br />
<br />
Binary with Pool drop down list: [https://files.slack.com/files-pri/T4U2GGTM3-F865MR12P/download/vrmminerhelper.exe vrmminerhelper.exe] <br />
<br />
Using Ubuntu instead of Windows can increase your Hashrate by 10-20% .<br />
<br />
=== Mac OS ===<br />
<br />
!mac<br />
Mining on OSX https://github.com/Roykk/veriumMinerDocker/tree/master/OSXwithoutDocker<br />
<br />
fireworm71/veriumMiner Installation on Intel CPU's (Yosemite/El Capitan)<br />
<br />
open Terminal / from Utilities<br />
xcode-select --install<br />
<br />
install home brew: http://brew.sh<br />
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"<br />
brew install automake curl openssl gcc zlib jansson pthreads<br />
<br />
After installing OpenSSL with brew<br />
cd /usr/local/include<br />
ln -s ../opt/openssl/include/openssl<br />
<br />
brew doctor<br />
brew update<br />
brew upgrade<br />
<br />
run git clone<br />
git clone https://github.com/fireworm71/veriumMiner<br />
cd veriumMiner<br />
./autogen.sh<br />
./nomacro.pl<br />
<br />
type this manually (cut and paste is funny)<br />
./configure CFLAGS=“-march=native” --with-crypto --with-curl<br />
<br />
make<br />
<br />
Run cpuminer how you wish<br />
./cpuminer <flags><br />
<br />
=== Linux ===<br />
<br />
!linuxguide<br />
Thanks to technikpto for this helpful guide! https://vericoinandverium.slack.com/files/U6JB348M6/F7ML8F7JS/install-verium-cpu-miner-linux.pdf.pdf<br />
<br />
Install scripts by dominer: I've released a script for installing @fireworm's miner. Until now only for Linux_x64 but ARMv7/v8 will follow later today. Supports GCC 7.2 (fully automatic), compiling or precompiled packages (fully automatic) and magic stuff on hugepages (autocalculated). If you like what I'm doing please donate VRM/VRC VJniF5bP9Acy7ce33yR4jRYSQ66Z4vGH8s<br />
<br />
[https://github.com/phiten/veriumMinerInstaller git repo]<br />
<br />
==== Raspberry Pi ====<br />
<br />
[[Raspberry Pi]]<br />
<br />
!rpi<br />
Thanks to Joe_Rondx for this RPi verium mining guide! http://indiweb.de/doku.php<br />
(Jesus, I didn't know this exists ;) )<br />
<br />
https://steemit.com/bitcoin/@dury10/miner-how-to-start-mining-verium-on-raspberry-pi-3-step-by-step-for-noobs<br />
<br />
==== Odroid ====<br />
<br />
ODROID Verium Mining Image: [https://drive.google.com/open?id=1RbXnGUh5fwmfhMQNzefCK75PajyrXjQi Download]<br />
# Burn it without extracting it (because it's 2 partitions) <br />
# On first bootup give it 5-10 mins time until you should be able to find the device in the network.<br />
# Log in with standard root/odroid <br />
# Then <br />
nano /etc/rc.local <br />
For further information visit out '''special [[Odroid]] section'''.<br />
<br />
== Solo vs. Pool Mining ==<br />
<br />
=== Solo ===<br />
<br />
Rumours advice to have '''at least 15000 H/min for solo''' mining. <br />
<br />
[http://resources.vericoin.info/wp-content/uploads/Verium-Solo-Mining-Guide.pdf Verium Solo Mining Guide]<br />
<br />
For solo mining read<br />
Slack: !solo<br />
[[http://resources.vericoin.info/wp-content/uploads/Verium-Solo-Mining-Guide.pdf Birty's Guide]]<br />
<br />
[[https://docs.google.com/document/d/19aLLX7VmwZWFSLou7nf3mcKcAGWn0emqB9noS2boEM0/edit?usp=sharing Drawde's Guide]]<br />
<br />
=== Pools ===<br />
<br />
This mining pools are available. Follow up their "Getting started" pages:<br />
<br />
* [http://vrm.bitcoinemail.org bitcoinemail]<br />
* [https://beertendr.com/ beertendr]<br />
* [https://pools.bloxstor.com/ bloxstor]<br />
* [https://vrm.mining-pool.ovh mining-pool.ovh]<br />
* [https://vrm.poolinat0r.com/ poolinat0r 1] <br />
* [https://vrm2.poolinat0r.com/ poolinat0r 2]<br />
* [https://vrm.poolium.win/ poolium]<br />
* [https://vrm.poolsloth.com poolsloth]<br />
<br />
How to [[Setting up a Verium Mining Pool|set up a Verium Mining Pool]].<br />
<br />
Reminder: when solomining there is zero downtime, zero pool fees, zero withdrawal fees, zero trust, zero dependency, plus all transaction fees per block!<br />
<br />
== Hardware ==<br />
<br />
=== Hashrates ===<br />
<br />
See a comparison of hashrates across a variety of processors! <br />
* [https://docs.google.com/spreadsheets/d/1O-hyFS-bqsopttmql6NgYWlWej9rZk_lm5MWivnehXg/edit#gid=0 Hashrate Spreadsheet]<br />
<br />
Help us out by adding your hashrate to the growing database! <br />
* [https://docs.google.com/forms/d/1dA8Tc2cp38XPtZu9PeondxscRhHd60V2IPrxeVrpsbM/viewform?edit_requested=true Verium Hashrate Comparison (solo mining only)]<br />
<br />
Automatic hashrate submission and comparison: [https://github.com/phiten/hashcomp by phiten]<br />
<br />
Top Verium Hardware ("Energy does not concern me."):<br />
AMD Opteron 6276, many cores, plenty of fast ram<br />
<br />
=== VRM Hardware Buying Guide ===<br />
<br />
Based on [https://docs.google.com/document/d/1WsacP0Fmr133JMNfwDYODfUHjWpDjYE_CtxONteXSHE/edit?usp=sharing kaptainblazzed Guide].<br />
<br />
If you are planning on purchasing hardware for VRM mining there are 4 main routes you can take. The fasted ROI can be had from used server hardware; the best long term profitability comes from used laptops and SBC’s.<br />
<br />
# Used Server Hardware<br />
# Used Laptops<br />
# Single Board Computers (SBC)<br />
# Desktops<br />
<br />
The below table outlines the basic pros and cons of each build type:<br />
<br />
Power Usage<br />
Upfront Cost<br />
Maintenance Burden1<br />
Hashrate<br />
Used Server<br />
High-Low*<br />
Low-High*<br />
Low<br />
High<br />
Used Laptop<br />
Low<br />
Low<br />
Medium<br />
Low/Medium<br />
SBC<br />
Low<br />
High<br />
High<br />
Low<br />
Desktop<br />
Medium<br />
Medium<br />
Low<br />
Medium<br />
<br />
*Servers can have high - low power usage and up-front cost depending on which CPU’s you select. AMD 62xx and 63xx Opterons and Intel socket 1366 based Xeons have a low upfront cost, but use a lot of power. Intel E5 Xeons have a high upfront cost but are very efficient with power usage. (v1/v2 cost/efficiency is medium, v3/v4 cost/efficiency is high)<br />
<br />
1 Maintenance Burden is the amount of time expected to keep your mining rigs up and running properly. Basically the more rigs you have the higher the maintenance burden.<br />
<br />
===== Electricity Cost =====<br />
Electricity plays a big role in your overall mining cost and ROI. (Don’t forget about the cost to cool “A/C” your rigs)<br />
How to calculate your electricity cost: (example is a dual AMD 6276 that pulls 300W)<br />
# Watts per Day: 300 Watts x 24 Hours = 7,200 watt-hours per day<br />
# Convert to Kilowatts: 7,200 / 1,000 = 7.2kWh per day<br />
# Usage per Month = 7.2kWh x 30 days = 216 kWh per month<br />
# Monthly Cost = 216 kWh x $.10 per kWh = $21.60 per month<br />
<br />
===== Hard Drives =====<br />
Hard drives are not required for Verium mining. You do need some kind of media to host the Operating System though. I use 64GB USB thumb drives. (I tried to use 32GB thumb drives, but after installing Ubuntu there was not enough space left to install VeriumMiner) (SBC’s can use a 4GB SDCard, however 8GB is more popular)<br />
<br />
===== RAM =====<br />
VRM mining is very RAM intensive, because of this RAM plays a significant role in your overall hashrate. You need to use the maximum number of RAM channels (not slots) your CPU supports, usually 3 or 4 per CPU. You will need 128mb of RAM per “#-Way” that you are mining. Default is 3-Way or 6-Way depending on your hardware. Older AMD and older Intel CPU’s need 384mb per thread “3-Way”. E5 Xeons and newer Intel desktop CPUs and AMD ryzen CPUs need 768mb per thread “6-Way”. You can reduce the #-Way at compile for SBC’s that don’t have enough RAM.<br />
SBC instructions here: http://indiweb.de/doku.php<br />
<br />
==== Used Server Hardware ====<br />
<br />
===== AMD =====<br />
Opteron 62xx or 63xx are popular. They require 384mb per thread and can support quad channel RAM. 2P and 4P used servers are readily available from Ebay, popular models include Dell R815, HP DL385 G7 & G8, HP sl165Z, Supermicro H8DGU-F motherboards. These systems require ECC RAM(PC3-10600R, PC3-10600R, PC3-12800r, PC3-12800E). Please check OEM specification for RAM compatibility. (i.e Dell R815 cannot support PC3-12800 RAM)<br />
<br />
Older AMD hardware is not recommended due to low/bad performance and new EPYC AMD systems have not been tested yet. (Chances are the new hardware is really good, but expensive)<br />
<br />
===== Intel =====<br />
Socket 1366 Xeons require 384mb per thread and can support triple channel RAM. 2P servers are readily available on ebay, 4P can be found but less availability. These systems require ECC RAM (PC3-8500R, PC3-8500E, PC3-10600R, PC3-10600R). Please check OEM specification for RAM compatibility.<br />
<br />
E5-Xeons require 768mb per thread and can support quad channel RAM. 2P servers are available on ebay , but the cheapest way to build a E5-Xeon server is by purchasing individual parts. v3/v4 ES/QS CPUs are your best bet for a reasonable price CPU. (Do not get v1/v2 ES/QS CPU’s, finding a motherboard with the correct BIOS is nearly impossible) These systems require ECC RAM v1/v2 =(PC3-10600R, PC3-12800r, PC3-12800E), v3/v4 =(PC4-2133p, PC4-2400p)<br />
<br />
Older Intel hardware is not recommended due to low/bad performance and new Platinum/Gold Intel Xeon systems have not been tested yet. (Chances are the new hardware is really good, but expensive)<br />
<br />
==== Used Laptops ====<br />
Laptop processors and systems in general are designed to be very power efficient, because of this they are pretty good a Verium mining. The downside is you need a lot of them to amass a sizeable amount of hashes and they are not designed for 24/7 use and may require additional cooling. If you have access to laptops that are free or very cheap this can be a good route to go. If you are buying used laptops for mining I would run the numbers twice before spending any money on them, you can probably do better with servers or SBC’s.<br />
<br />
==== Single Board Computers (SBC) ====<br />
Odroid XU4’s are popular. SBC systems in general are designed to be very power efficient, because of this they are pretty good a Verium mining. The downside is you need a lot of them to amass a sizeable amount of hashes. The up-front cost of SBC’s can be very high, but their power usage is very low. Remember to take into account all the required extras to make SBC’s function. (SD cards, power cables/supplies, network cables, switches, cooling, mounting mechanism, etc…)<br />
SBC’s are very good entry devices. Nearly any machine (Raspberry-, Banana-, Nano-Pi, Odroid,...) can run the wallet and miner software. For SBCs the mining software usually needs to be compiled for 1way using 128 MB per thread.<br />
Many devices have been tested in terms of their hashrate and it can fairly be stated that the Odroid platform with its Octa core CPUs (Exynos5422 big.LITTLE) and 2 GB LPDDR3 RAM outperforms any other device. By now Odroid has even released and special version of the original XU4 which is called Odroid HC1 and is designed for clustering. Rumors say that the announced MC1 might never hit the market.<br />
Considering the entry table it should be noted that despite the low hasrate the ration hashrate per energy is still good. Also, there is software out in the community that helps on the maintenance of large clusters.<br />
<br />
==== Desktops ====<br />
Nothing really special to say here, desktops can be all over the place from slow ones like Intel Celeron up to fast ones like AMD Threadripper. The main items to consider here are RAM channels/speed and CPU speed. Make sure you RAM channels are maxed out. . If you are buying desktops for mining I would run the numbers twice before spending any money on them, you can probably do better with servers or SBC’s.<br />
<br />
== Maintenance & Monitoring ==<br />
<br />
A web-based miner monitor was initially contributed [http://goo.gl/rCF0cx here] by birty and there is an extended version [https://github.com/derricke/MinerMonitor here] done by DerrickE as well as another one [https://github.com/felixbrucker/miner-monitor here] by wienerdog. Updated frontend version forked from DerrickE's by ChiefThunderCunt [https://github.com/drfogs/MinerMonitor here]<br />
<br />
I check my miners througj wallet by :<br />
Netstat | grep :33987 If they are connecting means they are working<br />
<br />
=== Autostart miner ===<br />
<br />
==== rc.local ====<br />
<br />
==== crontab ====<br />
<br />
you can follow these steps to make the miner auto start after a reboot:<br />
(make a run command that will startup the miner)<br />
nano run.sh<br />
(add the following line, changing the values to correspond to your pool, account name, miner name, and password)<br />
./cpuminer -o pool -u username.miner -p x<br />
ctrl-o to save, ctrl-x to exit<br />
(make the run command executable)<br />
chmod +x run.sh<br />
(create a startup command that is used to automatically start the miner when you reboot your system)<br />
nano ~/startup.sh<br />
(add the following 2 lines, changing username to your Linux account name)<br />
cd /home/username/veriumMiner<br />
./run.sh > run.out &<br />
(make the startup command executable)<br />
chmod +x ~/startup.sh<br />
(Tell cron to run startup at reboot)<br />
crontab -e<br />
(add this as the last line in crontab, changing username to your Linux account name)<br />
@reboot /home/username/startup.sh 2>&1<br />
<br />
== Optimization ==<br />
<br />
=== Linux === <br />
<br />
It was noticed, that using latest GCC version to compile the miner causes hashrate to increase. Default version in Ubuntu 16.04 is GCC 5.4.0. Basic Ubuntu GCC update instructions:<br><br />
<br />
<pre style="color: silver; background: black;">sudo apt-get update<br />
sudo apt-get install software-properties-common<br />
sudo add-apt-repository ppa:jonathonf/gcc-7.2<br />
sudo apt-get update<br />
sudo apt-get install gcc-7 g++-7<br />
</pre><br />
<br />
check the version:<br><br />
<pre style="color: silver; background: black;">gcc --version</pre><br />
<br />
update alternatives if needed:<br><br />
<pre style="color: silver; background: black;">sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 60 && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60</pre><br />
<br />
=== Odroid Optimization ===<br />
<br />
* Special [[Odroid]] Section</div>ChiefThunderCunthttps://wiki.vericoin.info/index.php?title=Miner_monitor&diff=732Miner monitor2018-01-15T13:18:06Z<p>ChiefThunderCunt: </p>
<hr />
<div>Birtys Miner Monitoring (Basic Version):<br />
<br />
[[https://drive.google.com/drive/folders/0B26cQdlGFXo2a0FEcFJGSE9NWms google drive]]<br />
<br />
Extended version by Derricke:<br />
<br />
[[https://github.com/derricke/MinerMonitor git repo]]<br />
<br />
Updated frontend of Derrickes repo by ChiefThunderCunt:<br />
<br />
[[https://github.com/drfogs/MinerMonitor git repo]]</div>ChiefThunderCunthttps://wiki.vericoin.info/index.php?title=Miner_monitor&diff=731Miner monitor2018-01-15T13:17:35Z<p>ChiefThunderCunt: </p>
<hr />
<div>Birtys Miner Monitoring (Basic Version):<br />
<br />
[[https://drive.google.com/drive/folders/0B26cQdlGFXo2a0FEcFJGSE9NWms google drive]]<br />
<br />
Extended version by Derricke:<br />
<br />
[[https://github.com/derricke/MinerMonitor git repo]]<br />
<br />
Updated Frontend of Derrickes repo:<br />
<br />
[[https://github.com/drfogs/MinerMonitor git repo]]</div>ChiefThunderCunt