Pages:
Author

Topic: [LTC] Online Litecoin Miner - page 5. (Read 52246 times)

hero member
Activity: 838
Merit: 507
November 22, 2011, 04:16:56 PM
#35
All browsers with Java installed for the browser, allow Java code to be run on them - that's the point of installing it.

I feel obliged to mention that you can enable/disable Java, Flash etc. on a per-site basis. I do. Browser plugins like Noscript and Flashblock have become very popular lately. Personally, I find them very valuable, especially when I have to work on older computers.

Quote
that also means people can put this miner on their web site and hide it in the page and have it run on site visitor's computers without asking them for permission.

Come on, people can do much worse things than that, if they are malicious enough. Without the aid of this miner.
It's the same old story: the same technology can be both "good" and "bad", depending on what use you make of it.
Unfortunately we can't stop the march of technology. If it can be done, someone will eventually do it.

I did not start this project with the intention of stealing the CPU time of unaware surfers.
I started it because I think it can help the diffusion of Litecoin. (And because I love programming Smiley)

Of course this miner will always be somewhat slower and less profitable than compiled miners, but it has other advantages.
First and foremost, it will run on almost any platform, and with little to no configuration. I am sure that, as kjlimo said, "simple minded" people will enjoy that.

Also think about this: the average user (who might not be familiar with Bitcoin and its software) will be (rightly) reluctant to download and run an executable file from the Internet. And for sure he/she won't have the time or knowledge to check out the source code.
With a Java applet, you don't have to trust the author of the code that much, because the guys at Sun Microsystems have worked hard to make Java as secure as possible. That's why, by default, browsers just run Java applets without asking too many questions.
legendary
Activity: 4466
Merit: 1798
Linux since 1997 RedHat 4
November 22, 2011, 03:58:34 PM
#34
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.
Insults: use when you run out of arguments. One per customer.
... and the first customer was ... the scammer.

All browsers with Java installed for the browser, allow Java code to be run on them - that's the point of installing it.
The term "proprietary code" is some meaningless term that is nonsense in reference to Java in a web browser.

The Java security system obviously does not restrict CPU access since it requires CPU access to run ...
It restricts access to your computer's other resources.

... again learn about how something works to avoid making statements that show your ignorance and stupidity.

... and yes that also means people can put this miner on their web site and hide it in the page and have it run on site visitor's computers without asking them for permission.
The whole point of my original comment.

Of course if you install an extra Add-on (e.g. in FireFox: NoScript) you can stop it.
full member
Activity: 154
Merit: 101
Bitcoin!
November 22, 2011, 02:38:48 PM
#33
Watching.
sr. member
Activity: 305
Merit: 250
Trust but confirm!
November 22, 2011, 01:39:44 PM
#32
Intel E7300 (info provided by my Urban Terror Clanmate)

Browser : Firefox 8.0
Java: Version 6 Update 26
OS: Ubuntu 10.04.3 LTS

Pool's webminer: 3.3khash
hero member
Activity: 838
Merit: 507
November 22, 2011, 09:38:24 AM
#31
I've just checked the online miner on a Phenom II X6 @ 3.5 GHz. Using all six cores, I can get 13.8 kH/s (vs 21.3 kH/s of the optimized minerd).
This was tested under Linux, this time with IcedTea 6.
I'm still not sure why other people are not getting similar figures. The only thing I can think of is that you are probably using a 32-bit version of the Java virtual machine. Correct me if I'm wrong, but I think that to get the most out of Java you should be running a 64-bit version of the JVM in a 64-bit browser... all, of course, under a 64-bit OS.

EDIT: according to rTech's edit above, it looks like that was really the problem. Everybody, please update your browser and JRE/JDK to a 64-bit version if you want to double your hash rates. Smiley
sr. member
Activity: 305
Merit: 250
Trust but confirm!
November 22, 2011, 08:11:51 AM
#30
Another benchmark:

Windows 7 64 bit, java latest.

Pool's Webminer (regular java, firefox 32bit):
i5 560 4 Threads: 2.3khash

Pool's Webminer (64bit java, firefox 64bit):
i5 560 4 Threads: 4.6khash

AMD SS34 64 Miner
i5 560 4 Threads: 6.48khash
hero member
Activity: 838
Merit: 507
November 22, 2011, 05:14:38 AM
#29
I am kinda confused.  I run the Minerd.  I don't even remember where I downloaded it from.  I run a AMD Phenom 8400 Triple-Core 2.10 GHz and I run 3 threads.  I get about 3.5 Khashes.  Is there a software way to increase my hashes?

If that 3.5 is on each core then you are doing good my X3s get about 3.05 per core 3.10 GHz speed, if total for the box then that sucks you will want to compile your own minerd with ./configure CFLAGS="-march=amdfam10 -Wall -O3" as your configure option to get the most out of your processor.

Or try this binary if you are running Windows (replace minerd.exe if you use the ScryptMiner GUI):
http://content.wuala.com/contents/jbw9/pub/Bitcoin/Tenebrix/miner/win/minerd-amdfam10-sse4a.exe/?dl=1
sr. member
Activity: 518
Merit: 250
November 21, 2011, 11:38:12 PM
#28
Well, TBH Intel seems to be behind AMD on this one. I'll have to check when I get back about my JVM -- I think it's the 64 bit (the OS is for sure) but it may be the 32, which would explain some of the slowdown. It's about 3Khash/Thread with Minerd (the sse4 one).
hero member
Activity: 728
Merit: 500
November 21, 2011, 08:15:52 PM
#27
I am kinda confused.  I run the Minerd.  I don't even remember where I downloaded it from.  I run a AMD Phenom 8400 Triple-Core 2.10 GHz and I run 3 threads.  I get about 3.5 Khashes.  Is there a software way to increase my hashes?
hero member
Activity: 838
Merit: 507
November 21, 2011, 07:49:44 PM
#26
I seem to be getting around 5khash/sec  on my i5 2400 (@ 3.8ghz), which I usually get about 12 with minerd (the optimized sse4 one).

I thought it could do much better on such a machine. Consider I'm getting 2.2 kH/s on a dual-core laptop at 1.6 GHz!
I wonder if this could depend on your Java setup... in particular, are you using the latest and, perhaps most importantly, 64-bit version of the Java VM?
sr. member
Activity: 518
Merit: 250
November 21, 2011, 07:39:14 PM
#25
It does correctly detect my quad core -- I'd just like to be able to limit it to at least 3 ( I like have 1 core free for other stuff) but I'd also like to simultaneously run 1 core comparisons. I seem to be getting around 5khash/sec  on my i5 2400 (@ 3.8ghz), which I usually get about 12 with minerd (the optimized sse4 one).
hero member
Activity: 838
Merit: 507
November 21, 2011, 07:21:53 PM
#24
Is there a way to run the online miner with just a single thread for more concrete/side by side comparison?

Well, it would be very easy to add an input box to select the number of threads, but I would have to add some Java bindings and change the layout of the page... I think that would be a nice feature to have, I will probably look into it tomorrow when I have some time.
On the other hand, the miner should already be able to detect how many CPU cores you have, and start that many threads. The number of threads is printed when you start mining. Please let me know if this doesn't work for you.
Moreover, the hash rate of a single thread should not be much more than 1/n of the hash rate achieved by n threads.
That said, I haven't tested this on more than 2 cores at a time yet, so I'm still wondering how it will do on 4- and 6-core CPUs.
sr. member
Activity: 518
Merit: 250
November 21, 2011, 06:55:44 PM
#23
Another 20% speed increase! Smiley

The Online Miner is now at about 66% of the optimized C minerd on my box. Shocked
It looks like JIT compilers can do wonders these days!

ArtForz's minerd: 3.28 kH/s
Online miner: 2.19 kH/s


Is there a way to run the online miner with just a single thread for more concrete/side by side comparison?
hero member
Activity: 560
Merit: 501
November 21, 2011, 06:51:06 PM
#22
At least learn a little about Java before showing your ignorance and stupidity.
Insults: use when you run out of arguments. One per customer.
hero member
Activity: 838
Merit: 507
November 21, 2011, 05:54:31 PM
#21
Another 20% speed increase! Smiley

The Online Miner is now at about 66% of the optimized C minerd on my box. Shocked
It looks like JIT compilers can do wonders these days!

ArtForz's minerd: 3.28 kH/s
Online miner: 2.20 kH/s

EDIT: More info about my setup:
Intel Core 2 Duo T5500 @ 1.66 GHz
64-bit Gentoo Linux
64-bit Firefox 3.6.20
64-bit Sun JDK 1.6.0.26
full member
Activity: 132
Merit: 100
November 21, 2011, 12:24:57 PM
#20
Nice work!  Smiley
hero member
Activity: 838
Merit: 507
November 21, 2011, 12: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.
sr. member
Activity: 518
Merit: 250
November 21, 2011, 10:52:16 AM
#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.
legendary
Activity: 2086
Merit: 1031
November 21, 2011, 10:50:20 AM
#17
I'm getting about half the speed from a dual core processor.
sr. member
Activity: 305
Merit: 250
Trust but confirm!
November 21, 2011, 12: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.

Pages:
Jump to: