Bitcoin Forum
November 09, 2024, 12:47:50 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 4 5 6 »  All
  Print  
Author Topic: [LTC] Online Litecoin Miner  (Read 52309 times)
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 842
Merit: 507


View Profile
November 20, 2011, 05:46:12 PM
Last edit: February 09, 2012, 02:51:53 PM by pooler
 #1

I have finally succeeded in putting together a (hopefully) working online miner for Litecoin.
This is still highly experimental, and of course this kind of miner will always be slower than the classic minerd.

http://www.litecoinpool.org/miner

You can use the username and password of one of your pool workers, or you can leave the "Worker" field blank if you just want to test it out (shares found this way are credited to a special pool account, and you will not be able to redeem them).

Please check it out, and let me know of any unexpected behavior!
It would also be useful to have some feedback on hashrates for different machines. For instance, on the box I'm using for testing (a Core 2 Duo) this first version is about 3 times slower than ArtForz's cpuminer. I think that's quite a good Java-to-C ratio (I haven't finished optimizing the code yet), but of course your mileage may vary.

UPDATE: On 64-bit systems, the current version can get up to 67% the speed of the reference miner by ArtForz (you must be running a 64-bit Java Virtual Machine and a 64-bit browser). 32-bit systems don't perform as well, but still manage to get about 50% of the speed.

The source code is available under the GNU GPL license. https://github.com/pooler/JMiner

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
terrytibbs
Hero Member
*****
Offline Offline

Activity: 560
Merit: 501



View Profile
November 20, 2011, 06:03:19 PM
 #2

This shortly follows the release of Vanderbleek's miner, so I have to ask:
Is this his miner or have you both been working your asses off on independent projects?

(https://github.com/Vanderbleek/JavaSCryptMiner)
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 842
Merit: 507


View Profile
November 20, 2011, 06:12:33 PM
 #3

This shortly follows the release of Vanderbleek's miner, so I have to ask:
Is this his miner or have you both been working your asses off on independent projects?

(https://github.com/Vanderbleek/JavaSCryptMiner)

This is an independent project. I knew that Vanderbleek was working on a stand-alone Java miner because of his posts in the main Litecoin thread, but I didn't know his code was on GitHub (thank you for the link!). As far as I can see, though, both projects are based on the same pre-existing Scrypt implementation.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
terrytibbs
Hero Member
*****
Offline Offline

Activity: 560
Merit: 501



View Profile
November 20, 2011, 06:15:20 PM
 #4

This is an independent project. I knew that Vanderbleek was working on a stand-alone Java miner because of his posts in the main Litecoin thread, but I didn't know his code was on GitHub (thank you for the link!). As far as I can see, though, both projects are based on the same pre-existing Scrypt implementation.
Ah, I see.

Great work, I hope you open-source it, you can learn from each other and hopefully make the most kick-ass miner on the face of the earth.
kjlimo
Legendary
*
Offline Offline

Activity: 2114
Merit: 1031


View Profile WWW
November 20, 2011, 08:24:41 PM
 #5

Java(TM) Plug-in Fatal Error

Several Java Virtual Machines running in the same process caused an error


What does this mean?  I'm running another cpu miner; should I turn that off before using your website?

Coinbase for selling BTCs
Fold for spending BTCs
PM me with any questions on these sites/apps!  http://www.montybitcoin.com


or Vircurex for trading alt cryptocurrencies like DOGEs
CoinNinja for exploring the blockchain.
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 842
Merit: 507


View Profile
November 20, 2011, 08:45:56 PM
 #6

Java(TM) Plug-in Fatal Error

Several Java Virtual Machines running in the same process caused an error

What does this mean?

I've looked that up on Google, and it looks like that message is often an indication of a corrupted Java installation. Check here if your browser has problems loading applets:
http://javatester.org/version.html
Also, if you have an old version of the JRE, please update it. There appears to be a Java bug (now fixed) connected with the message you reported.
http://bugs.sun.com/view_bug.do?bug_id=6433218

Quote
I'm running another cpu miner; should I turn that off before using your website?

That should not be necessary, but of course if you run two miners at the same time they will share CPU cycles, so you won't be able to compare their performance.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
kano
Legendary
*
Offline Offline

Activity: 4620
Merit: 1851


Linux since 1997 RedHat 4


View Profile
November 20, 2011, 08:55:21 PM
 #7

Java doesn't need opensource to check the code - you just decompile it back to java Smiley

Hmm - obfuscated - that hardly hides anything either ...

Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
kjlimo
Legendary
*
Offline Offline

Activity: 2114
Merit: 1031


View Profile WWW
November 20, 2011, 09:12:12 PM
 #8

Java doesn't need opensource to check the code - you just decompile it back to java Smiley

Hmm - obfuscated - that hardly hides anything either ...

Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.

Or to give simple mined people a way to join the mining and increase the security of the currency/ get others involved.

Coinbase for selling BTCs
Fold for spending BTCs
PM me with any questions on these sites/apps!  http://www.montybitcoin.com


or Vircurex for trading alt cryptocurrencies like DOGEs
CoinNinja for exploring the blockchain.
terrytibbs
Hero Member
*****
Offline Offline

Activity: 560
Merit: 501



View Profile
November 20, 2011, 09:17:38 PM
 #9

Java doesn't need opensource to check the code - you just decompile it back to java Smiley
Using that would be stealing.

Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.
This is far from stealing, the user has to give explicit permission for the Java applet to run. Besides, it's a way of contributing to authors you love without having to watch disturbing advertisements.
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 842
Merit: 507


View Profile
November 20, 2011, 09:29:49 PM
 #10

Java doesn't need opensource to check the code - you just decompile it back to java Smiley

Hmm - obfuscated - that hardly hides anything either ...

I minified the bytecode because that makes it a little faster, not to obfuscate it. I'm as enthusiastic a supporter of OSS as anyone, and I will release the source code soon.
But first I would like to take a few days to see how much further I can push the miner's speed myself. Kind of a personal challenge Cheesy

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
kano
Legendary
*
Offline Offline

Activity: 4620
Merit: 1851


Linux since 1997 RedHat 4


View Profile
November 20, 2011, 10:21:07 PM
 #11

Java doesn't need opensource to check the code - you just decompile it back to java Smiley
Using that would be stealing.
Luckily I have no use for it other than to look at it ...
And that is NOT stealing (as I said above to 'check the code')
However, taking money from people and supplying them with faulty goods IS stealing.

Quote
Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.
This is far from stealing, the user has to give explicit permission for the Java applet to run. Besides, it's a way of contributing to authors you love without having to watch disturbing advertisements.
Wrong.
You do not have to give explicit permission for A Java applet to run unless the applet codes that into it ...

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
kano
Legendary
*
Offline Offline

Activity: 4620
Merit: 1851


Linux since 1997 RedHat 4


View Profile
November 20, 2011, 10:23:42 PM
 #12

Java doesn't need opensource to check the code - you just decompile it back to java Smiley

Hmm - obfuscated - that hardly hides anything either ...

Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.

Or to give simple mined people a way to join the mining and increase the security of the currency/ get others involved.
LOL yeah the standard excuse given by many who are simply stealing CPU cycles from others.
Who are these "simple mined people" Tongue

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
terrytibbs
Hero Member
*****
Offline Offline

Activity: 560
Merit: 501



View Profile
November 20, 2011, 10:30:28 PM
 #13

You do not have to give explicit permission for A Java applet to run unless the applet codes that into it ...
That depends on your browser, but I must say, you're either blatantly stupid, or just use a really crappy browser, if it allows proprietary code to be ran on your machine without permission.
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 842
Merit: 507


View Profile
November 20, 2011, 10:48:14 PM
 #14

Good news, I have done some optimization and managed to get a ~40% speed increase.
The C-to-Java speed ratio has fallen below 2 on my test box!

Core 2 Duo (64 bit) 1.6 GHz, 2 threads
ArtForz's minerd: 3.3 kH/s
Online miner: 1.8 kH/s

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
kano
Legendary
*
Offline Offline

Activity: 4620
Merit: 1851


Linux since 1997 RedHat 4


View Profile
November 21, 2011, 12:56:17 AM
 #15

You do not have to give explicit permission for A Java applet to run unless the applet codes that into it ...
That depends on your browser, but I must say, you're either blatantly stupid, or just use a really crappy browser, if it allows proprietary code to be ran on your machine without permission.
At least learn a little about Java before showing your ignorance and stupidity.

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
rTech
Sr. Member
****
Offline Offline

Activity: 305
Merit: 250


Trust but confirm!


View Profile
November 21, 2011, 04:52:28 AM
 #16

Tested with my slowest miner machine: Atom 1.6ghz

With optimized
- minerd-amdfam10-sse4a-64: t0: 0.49 / t1:0.50
- minerd-i7-64: t0: 0.47 / t1:0.45

With this online miner i get constant: 0.289.

kjlimo
Legendary
*
Offline Offline

Activity: 2114
Merit: 1031


View Profile WWW
November 21, 2011, 02:50:20 PM
 #17

I'm getting about half the speed from a dual core processor.

Coinbase for selling BTCs
Fold for spending BTCs
PM me with any questions on these sites/apps!  http://www.montybitcoin.com


or Vircurex for trading alt cryptocurrencies like DOGEs
CoinNinja for exploring the blockchain.
Vanderbleek
Sr. Member
****
Offline Offline

Activity: 518
Merit: 250



View Profile
November 21, 2011, 02:52:16 PM
 #18

Awesome pooler -- I'm going to have to take a look at your code later. I was wondering how long it was going to take for someone else to get one working.

Yours definitely seems to be faster than mine, good work.
pooler (OP)
Hero Member
*****
Offline Offline

Activity: 842
Merit: 507


View Profile
November 21, 2011, 04:19:38 PM
 #19

Awesome pooler -- I'm going to have to take a look at your code later. I was wondering how long it was going to take for someone else to get one working.

Yours definitely seems to be faster than mine, good work.

Thank you!

I still have to work on a couple bugs that I detected yesterday, apparently related to long polling. I'll also try and see if I can push the speed a little more, I got some ideas I want to try out.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
CAMOPEJB
Full Member
***
Offline Offline

Activity: 132
Merit: 100



View Profile
November 21, 2011, 04:24:57 PM
 #20

Nice work!  Smiley
Pages: [1] 2 3 4 5 6 »  All
  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!