fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner
GNU General Public License v3.0
4.05k stars 1.8k forks source link

Why not develop an xmr-stak for Android apk? #2149

Open xq0404 opened 5 years ago

xq0404 commented 5 years ago

Nowadays it is quite common for a mobile phone to have at least 4 or even 8 cores for its CPU. MinerGate has done a good job of devleloping a moble mining app, but it has imposed too many restrictions. I'm looking forward to an open-source xmr-stak.apk for Android or even for an iOS device. I think a mobile phone's performance could be on a par with that of a laptop in the future as far as mining XMR is concerned.

Spudz76 commented 5 years ago

Cool, just add all the CPU miner code for the various Android CPU types (with neon etc) and it will work great.

Currently only have SSE3+AES code, really. A few forks do some ARM stuff, nobody has submitted the work to include it here (including CMake supports, etc)

psychocrypt commented 5 years ago

IMO there is no need for an andriod miner. The ARM platform would create to less hashes that it is useful to mine. Also on the phone it willdrain the battery and nothing more. You will be never able e.g. to mine 0.1XMR with a smartphone.

Spudz76 commented 5 years ago

Also unclear if any CUDA or OpenCL is available in Android, even if the device had a GPU of some kind

psychocrypt commented 5 years ago

The NVIDIA shield TV has an CUDA available gpu but even this gpu get only 30h/s native Cryptonight (I tried it in the past on a developer board)

xq0404 commented 5 years ago

IMO there is no need for an andriod miner. The ARM platform would create to less hashes that it is useful to mine. Also on the phone it willdrain the battery and nothing more. You will be never able e.g. to mine 0.1XMR with a smartphone.

Thanks for the insight. So a MinerGate app for Android seems to be just designed to impress noobs.

psychocrypt commented 5 years ago

yes because you will never get any profit out of it. also a smartphone is not made to create permanent hash rate and real android systems are not available (Raspberry PI is also not strong enough) If you like to mine buy a gpu. if This is to expensive buy the coins direct.

Spudz76 commented 5 years ago

Although personally I do run "pointless" CPUs all the time, the hash per watt is still OK with me. Some find the same sort of effect on Pi boards, but it is more important for them to do Neon or their own AES type acceleration, when they don't have any it's very slow (sub-10-hash). I would not bother much with single digit hashrates unless the thing was literally drawing 1 watt somehow or running on solar (few enough watts to supply 100% free power). So there are reasons for it but also very niche and specified. Normal wall-power and blowing them through one of these would be dumb though. You need zero investment (free hardware, or hardware running anyways where the entire wattage is not "for mining") plus very very very cheap or free power to do much but 1:1 purchase coins (break even).

Celeron 847 Gets about 13H/s at 17W so it's close to 1:1 considering there is no AES nor anything "good for Cryptonight". This box runs the television while it mines (would be "on" and "wasting" watts anyways...), so the full 17W is not quite all for mining usage either so that makes the effective hash per watt slightly better. I may be using additional 7w for the 13H/s nearly 2:1 ratio which is pretty good really.

Same with a pointless Atom D2550 gets 7H/s (no GPU, no cache leverage) pointless Core2 T5600 gets 13.5H/s (nothing from GPU it's too old) lightly better Core i7 3540M gets 112H/s (cpu only) and another 50H/s from the Fermi GPU They still add up to more hashrate than a better machine that draws more total watts, so I run them. Probably could knock off the dumb old Core2 Duo it seems like 13.5H per 34W is pretty super suck, but I was hoping to make the GPU do something too.

MUST use a vardiff proxy (or pool that supports difficulty below 100 for slooooow miners) in order to actually get rewards versus lots of timed out jobs. I run a xmr-node-proxy in front of MoneroOcean to make my wimpy-miners earn better.

However still a very odd place to do a lot of software effort, not much to be gained, most people would mostly lose out trying to mine on lesser devices. Or you burn out the phone and then what (barely any of them have decent cooling available, for 101% effort 24/7 usages - they'd melt or at least be very injured)

x151973 commented 5 years ago

With linuxdepoly can some how tune it run Although it worked, but limited, let along updated v8 Currently from my best tried devices, the best record is a phone with snapdragon 64bit cpu, 30hs(pool observed, long time), cryptonight-heavy at 5V-1A charger(5W?)

xq0404 commented 5 years ago

With linuxdepoly can some how tune it run Although it worked, but limited, let along updated v8 Currently from my best tried devices, the best record is a phone with snapdragon 64bit cpu, 30hs(pool observed, long time), cryptonight-heavy at 5V-1A charger(5W?)

My Huawei Mate 9 got nearly 50 H/s running on MinerGate app, but I later deleted the app.

juanpc2018 commented 5 years ago

https://github.com/fireice-uk/xmr-stak/issues/830

There are 2 Android ARM miners... One works the other ask missing file ./xmrig AAMiner and XMR Monero Miner I have a LG K11+ Has a total 512kb L2 http://phonedb.net/index.php?m=processor&id=664&c=mediatek_mt6750&d=detailed_specs But the LG G7 Fit has 1.5MB L2 "almost works 1-full core." http://phonedb.net/index.php?m=processor&id=613&c=qualcomm_snapdragon_820_msm8996&d=detailed_specs LG v40 has 2MB L3 +1.5MB L2 http://phonedb.net/index.php?m=processor&id=743&c=qualcomm_snapdragon_845_sdm845__napali

LG v50 & the G8 has 1.5MB L2 + 3MB L3 "almost 2-full cores." http://phonedb.net/index.php?m=processor&id=765&c=qualcomm_snapdragon_855_sm8150__hana&d=detailed_specs

https://www.gsmarena.com/lg-phones-20.php https://github.com/setuidroot/xmrigtest

LG has the best Android version of the Operating System... Little details like KnockOff and QuickNotes+ is way better than Microsoft OneNote, etc... The only problem is that the LG OSX drivers only go up to OSX El Capitan.. 10.11 but i have another OSX Maveriks on a USB drive, dual boot is easy... Installing android file transfer software, works flawless if the USB cable has data + charge "4-wire" inside.

..... Kirin 970 has 2MB L2 "works 1-full core" https://en.wikichip.org/wiki/hisilicon/kirin/970

juanpc2018 commented 5 years ago

If you like to mine buy a gpu. if This is to expensive buy the coins direct.

yes because you will never get any profit out of it. also a smartphone is not made to create permanent hash rate and real android systems are not available (Raspberry PI is also not strong enough) If you like to mine buy a gpu. if This is to expensive buy the coins direct.

Monero works better using CPU like Epyc 7000 or Threadripper 2990wx... Also some people use intel phi accelerator cards, also with impressive results. https://lukminer.org/2018/02/01/finally-asrock-rack-confirms-2800h-s-on-phi-7210-and-3000h-s-on-phi-7250/ Gpu is Not as good as Cpu, the only requirement is 2MB of cache per core.

nottux commented 3 years ago

IMO there is no need for an andriod miner. The ARM platform would create to less hashes that it is useful to mine. Also on the phone it willdrain the battery and nothing more. You will be never able e.g. to mine 0.1XMR with a smartphone.

I have cut the bloated battery out of my 8 core smartphone and modified it to work out of wall. currently it's bussy with boinc and torrenting and it even powers on automatically in case of electricity outage. While you're right about the ordinary smartphone and how it couldn't mine, and app or work on arm in general would make otherwise e-waste more useful.

Also unclear if any CUDA or OpenCL is available in Android, even if the device had a GPU of some kind

Some android phones come with the opencl driver. I know this because boinc reports the mali gpu in my smartphone

https://moowrap.net/show_host_detail.php?hostid=1274320