Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: Adamlm on November 02, 2011, 07:57:32 PM



Title: How to mine CPU coins for free
Post by: Adamlm on November 02, 2011, 07:57:32 PM
Here is a quick guide. You need basic+ linux skills. You will get from 0.2 to 1.5 khash/sec completely free.

1. Join Amazon EC2. They offer free tier for new users for 12 months:

Quote
As part of AWS’s Free Usage Tier, new AWS customers can get started with Amazon EC2 for free. Upon sign-up, new AWS customers receive the following EC2 services each month for one year:

    750 hours of EC2 running Linux/Unix Micro instance usage
    750 hours of Elastic Load Balancing plus 15 GB data processing
    10 GB of Amazon Elastic Block Storage (EBS) plus 1 million IOs and 1 GB snapshot storage
    15 GB of bandwidth out aggregated across all AWS services
    1 GB of Regional Data Transfer

So as a new user you will get 750 hours of EC2 running Linux/Unix Micro instance usage.
And what is a micro linux instance?

Quote
Micro Instance 613 MB of memory, up to 2 ECUs (for short periodic bursts), EBS storage only, 32-bit or 64-bit platform

Not much, it will mine with 0.2 to 1.5 khash/sec. But you'll get it for free.

2. Launch a new micro linux instance, donwload and run cpuminer. Mine for free. This might be useful for step 2:

Code:
sudo yum -y groupinstall "Development Tools"
sudo yum -y install git libcurl-devel python-devel screen rsync

git clone https://github.com/ArtForz/cpuminer.git
cd cpuminer
./autogen.sh
./configure
make -j
nohup ./minerd --algo scrypt -s 6 --threads 2 --url http://yourpool --userpass user:pass

Enjoy.
If you like it consider a small donation:

LTC: LLARLyxXXQKdCwcL36MigpkezRBbpJ2LVA
BTC: 19bryXyWwczic43JEcT2dwjTAe12ABX45U


Title: Re: How to mine CPU coins for free
Post by: Adamlm on November 02, 2011, 09:18:46 PM
yes, I have edited it at the same time, it should be artfortz.

Thanks for the tip for confgiure. I am getting up to 1.41 khash/s now, almost the same as my own i5:

Quote
[2011-11-02 21:14:38] LONGPOLL detected new block
[2011-11-02 21:14:38] thread 1: 1664 hashes, 0.03 khash/sec
[2011-11-02 21:14:38] thread 0: 525 hashes, 0.03 khash/sec
[2011-11-02 21:15:06] thread 0: 1647 hashes, 0.06 khash/sec
[2011-11-02 21:15:07] thread 1: 1581 hashes, 0.06 khash/sec
[2011-11-02 21:15:08] thread 0: 3696 hashes, 1.41 khash/sec
[2011-11-02 21:15:10] thread 1: 3385 hashes, 1.22 khash/sec
[2011-11-02 21:15:10] thread 0: 2281 hashes, 1.16 khash/sec
[2011-11-02 21:15:10] PROOF OF WORK RESULT: true (yay!!!)
[2011-11-02 21:15:12] thread 1: 2707 hashes, 1.13 khash/sec
[2011-11-02 21:15:12] PROOF OF WORK RESULT: true (yay!!!)



Title: Re: How to mine CPU coins for free
Post by: frisco on November 02, 2011, 09:37:55 PM
I get much lower results and haven't found a share yet, are you using x32 or x64 instances?


Title: Re: How to mine CPU coins for free
Post by: SgtSpike on November 02, 2011, 09:43:31 PM
So you get 1.5 KH/s for 750 hours, which is equivalent to 1.125MH/s for 1 hour, or about 0.00004166 BTC.

I seriously hope no one wastes their time with this!  It's a nice thought OP, but it really isn't worth anyone's time.


Title: Re: How to mine CPU coins for free
Post by: MaxSan on November 02, 2011, 09:49:06 PM
So you get 1.5 KH/s for 750 hours, which is equivalent to 1.125MH/s for 1 hour, or about 0.00004166 BTC.

I seriously hope no one wastes their time with this!  It's a nice thought OP, but it really isn't worth anyone's time.

Its for mining scrypt and Litecoin not BTC


Title: Re: How to mine CPU coins for free
Post by: SgtSpike on November 02, 2011, 09:56:36 PM
So you get 1.5 KH/s for 750 hours, which is equivalent to 1.125MH/s for 1 hour, or about 0.00004166 BTC.

I seriously hope no one wastes their time with this!  It's a nice thought OP, but it really isn't worth anyone's time.

Its for mining scrypt and Litecoin not BTC
My bad, didn't see what subforum this was in.


Title: Re: How to mine CPU coins for free
Post by: Remember remember the 5th of November on November 02, 2011, 10:06:43 PM
I am writing because i've already tried them.

Micro instance has 1 core, or when i compiled, just 0.50kh/s. And i doubt that i can launch 30 or more FREE instances.

I've also tried the CLuster Computer Quadruple extra large which is an 8 core, 16 thread Intel Xeon which does 2.77(MAX) kh/s per core

So no, you do not get 1.5kh/s just 0.50

And if anyone wants, here is something i use to automatically download all dependencies plus the miner, download it, configure it, and compile it

Quote
apt-get update;apt-get install -y libcurl4-openssl-dev;apt-get install -y git;apt-get install -y make;apt-get install -y autoconf;git clone https://github.com/Lolcust/Tenebrix-miner.git;mv Tenebrix-miner /opt/;cd /opt/Tenebrix-miner/;aclocal;./autogen.sh;CFLAGS="-O3 -Wall -g -ftree-loop-distribution -fstrict-aliasing -fstrict-overflow -march=native -mtune=native -msse2"

That is what i do when i first SSH to the new EC2 instance. It's fast, and you barely waste time.


Title: Re: How to mine CPU coins for free
Post by: Bobnova on November 02, 2011, 10:11:49 PM
You need all the SSEs in there, not just SSE2.  It makes a huge difference.


Title: Re: How to mine CPU coins for free
Post by: Remember remember the 5th of November on November 02, 2011, 10:15:54 PM
You need all the SSEs in there, not just SSE2.  It makes a huge difference.
Thats why i do -march=native -mtune=native which enables them all, -msse2 is just a habit. In any case, ALL i got and i mean from ALL the optimization i tried, just 0.50kh/s

And i also use a 64bit linux, which is supposed to be faster than 32bit OS

Not to mention that there is extreme load balancing in the micro instance. You mine at full speed for a few seconds and then you get reduced to 0.02 or less KH/s


Title: Re: How to mine CPU coins for free
Post by: btc_artist on November 02, 2011, 10:26:27 PM
What CPU do you have? 

FWIW, I used:
Code:
CFLAGS="-march=core2 -O3 -Wall -msse2 -msse3 -msse4 -msse4.1 -msse4.2"
and I'm getting ~3 k/s


Title: Re: How to mine CPU coins for free
Post by: phorensic on November 02, 2011, 10:28:33 PM
You need all the SSEs in there, not just SSE2.  It makes a huge difference.
Thats why i do -march=native -mtune=native which enables them all, -msse2 is just a habit. In any case, ALL i got and i mean from ALL the optimization i tried, just 0.50kh/s

And i also use a 64bit linux, which is supposed to be faster than 32bit OS

Not to mention that there is extreme load balancing in the micro instance. You mine at full speed for a few seconds and then you get reduced to 0.02 or less KH/s
Above you quoted an install line for Tenebrix.  This thread is about Litecoin.  Is it possible your shitty Tenebrix miner is to blame for your speeds?


Title: Re: How to mine CPU coins for free
Post by: Remember remember the 5th of November on November 02, 2011, 10:31:00 PM
You need all the SSEs in there, not just SSE2.  It makes a huge difference.
Thats why i do -march=native -mtune=native which enables them all, -msse2 is just a habit. In any case, ALL i got and i mean from ALL the optimization i tried, just 0.50kh/s

And i also use a 64bit linux, which is supposed to be faster than 32bit OS

Not to mention that there is extreme load balancing in the micro instance. You mine at full speed for a few seconds and then you get reduced to 0.02 or less KH/s
Above you quoted an install line for Tenebrix.  This thread is about Litecoin.  Is it possible your shitty Tenebrix miner is to blame for your speeds?
The tenebrix miner is the EXACT copy of cpu-miner...tenebrix,fairbrix,litecoin ALL use SCRYPT algo.

Also, with that exact same miner, i get over 3KH/s per core on my 64bit Virtual machine on my own computer.


Title: Re: How to mine CPU coins for free
Post by: phorensic on November 02, 2011, 10:40:42 PM
Just got mine working and yeah it's only 0.40-0.50 kh/s and obvious it's only a single vcore when you try 2 threads.  Oh well, it's a virtual machine shared with thousands of users.


Title: Re: How to mine CPU coins for free
Post by: Remember remember the 5th of November on November 02, 2011, 10:44:23 PM
yes, I have edited it at the same time, it should be artfortz.

Thanks for the tip for confgiure. I am getting up to 1.41 khash/s now, almost the same as my own i5:

Quote
[2011-11-02 21:14:38] LONGPOLL detected new block
[2011-11-02 21:14:38] thread 1: 1664 hashes, 0.03 khash/sec
[2011-11-02 21:14:38] thread 0: 525 hashes, 0.03 khash/sec
[2011-11-02 21:15:06] thread 0: 1647 hashes, 0.06 khash/sec
[2011-11-02 21:15:07] thread 1: 1581 hashes, 0.06 khash/sec
[2011-11-02 21:15:08] thread 0: 3696 hashes, 1.41 khash/sec
[2011-11-02 21:15:10] thread 1: 3385 hashes, 1.22 khash/sec
[2011-11-02 21:15:10] thread 0: 2281 hashes, 1.16 khash/sec
[2011-11-02 21:15:10] PROOF OF WORK RESULT: true (yay!!!)
[2011-11-02 21:15:12] thread 1: 2707 hashes, 1.13 khash/sec
[2011-11-02 21:15:12] PROOF OF WORK RESULT: true (yay!!!)

Do you know what that is exactly? It's load balancing in effect. You for just a few seconds get a bump of that 1.30 or so speed, then get reduced to below 0.05


Title: Re: How to mine CPU coins for free
Post by: Bobnova on November 02, 2011, 10:47:01 PM
I tried march=native, it didn't do any better than just using SSE2 for me.
Specifying all the SSEs as well as AVX (I was using a 2600k) made a big difference.


Title: Re: How to mine CPU coins for free
Post by: Remember remember the 5th of November on November 02, 2011, 10:48:00 PM
I tried march=native, it didn't do any better than just using SSE2 for me.
Specifying all the SSEs as well as AVX (I was using a 2600k) made a big difference.
You seem to have misunderstood the thread. It's about Amazon EC2 computing. I.e rented computers, not a personal computer.


Title: Re: How to mine CPU coins for free
Post by: phorensic on November 02, 2011, 10:58:43 PM
Well, I got some speed bumps to 2.5kh/s all of a sudden.  Then it goes back down to 0.4kh/s.  If you run a large virtual environment at work like I do you would understand why it does this.


Title: Re: How to mine CPU coins for free
Post by: Bobnova on November 02, 2011, 11:01:54 PM
I tried march=native, it didn't do any better than just using SSE2 for me.
Specifying all the SSEs as well as AVX (I was using a 2600k) made a big difference.
You seem to have misunderstood the thread. It's about Amazon EC2 computing. I.e rented computers, not a personal computer.

If march=native doesn't detect high level SSEs and/or AVX, it doesn't detect it.
Doesn't matter what the computer is being used for.


Title: Re: How to mine CPU coins for free
Post by: Snapman on November 02, 2011, 11:06:10 PM
You guys do understand that you only get so much processor time/power per month under that free account. After the limit is passed, you will start getting billed.


Title: Re: How to mine CPU coins for free
Post by: phorensic on November 02, 2011, 11:25:42 PM
Has anyone done the math to see if mining Litecoin would be profitable on an Amazon EC2 High-CPU Extra Large (8 cores)?  On-demand pricing is $0.68/hr and and spot pricing is $0.216/hr.


Title: Re: How to mine CPU coins for free
Post by: MrGaSp on November 02, 2011, 11:26:18 PM
You guys do understand that you only get so much processor time/power per month under that free account. After the limit is passed, you will start getting billed.

LOL that was not mentioned in OP...

I've started to use my VPS for mining after reading this thread, its getting 1KH/s on one core, i have 4 available.  I am limited by the machines unused cpu power down to a guaranteed share.  I think it'll get faster at night.  ;D


Title: Re: How to mine CPU coins for free
Post by: Remember remember the 5th of November on November 02, 2011, 11:27:48 PM
Has anyone done the math to see if mining Litecoin would be profitable on an Amazon EC2 High-CPU Extra Large (8 cores)?  On-demand pricing is $0.68/hr and and spot pricing is $0.216/hr.
I've tried it. It says it has 8 cores, it had only 3...no really, just 3 cores. The Cluster Compute Quadruple Extra Large however has 8 real physical cores, not limited, however it's priced at 1.60 per hour.


Title: Re: How to mine CPU coins for free
Post by: BTCurious on November 02, 2011, 11:38:26 PM
Calculations for the free EC2, assuming a generous speed of 1.5 khash/s:

Using http://allchains.info/calc.html tells me that you get 3.961 coins per day, or if you use 750 hours, 750*3.961/24 = 123.78125 LTC
At the current exchange rate (~0.01 BTC/LTC) that gives 1.237 BTC, or (3.25 USD/BTC) about 4 dollars. In total.

Obviously, if you get the more expensive EC2, even with 8 cores, it's not worth the money, as you get about 4/750 = 0.0053 dollar per core per hour. The LTC/difficulty ratio would need to increase ~5 times for this to be beneficial, assuming you actually get 8 cores at $0.216/hr.


Title: Re: How to mine CPU coins for free
Post by: MrGaSp on November 02, 2011, 11:39:50 PM
Has anyone done the math to see if mining Litecoin would be profitable on an Amazon EC2 High-CPU Extra Large (8 cores)?  On-demand pricing is $0.68/hr and and spot pricing is $0.216/hr.
I've tried it. It says it has 8 cores, it had only 3...no really, just 3 cores. The Cluster Compute Quadruple Extra Large however has 8 real physical cores, not limited, however it's priced at 1.60 per hour.
You'd have to get 56 Coins an hour to pay for it... or about 0.5MH/s.. oO


Title: Re: How to mine CPU coins for free
Post by: phorensic on November 02, 2011, 11:45:15 PM
Damn damn double damn.  Time to build a server at home with hexacores in it or something.


Title: Re: How to mine CPU coins for free
Post by: MrGaSp on November 02, 2011, 11:54:01 PM
Damn damn double damn.  Time to build a server at home with hexacores in it or something.

We need a wiki page for CPU hash rates on scrypt


Title: Re: How to mine CPU coins for free
Post by: bulanula on November 02, 2011, 11:57:31 PM
Damn damn double damn.  Time to build a server at home with hexacores in it or something.

We need a wiki page for CPU hash rates on scrypt

100% agree with this. Maybe on Litecoin wiki if that exists etc. !?


Title: Re: How to mine CPU coins for free
Post by: MrGaSp on November 03, 2011, 12:01:56 AM
Damn damn double damn.  Time to build a server at home with hexacores in it or something.

We need a wiki page for CPU hash rates on scrypt

100% agree with this. Maybe on Litecoin wiki if that exists etc. !?

Theres this: https://github.com/coblee/litecoin/wiki but thats nothing much


Title: Re: How to mine CPU coins for free
Post by: BTCurious on November 03, 2011, 12:32:53 AM
Just made the page: https://github.com/coblee/litecoin/wiki/Mining-hardware-comparison
I think you need a github account to edit? I'm not sure. Try and see.


Title: Re: How to mine CPU coins for free
Post by: MrGaSp on November 03, 2011, 12:36:05 AM
Just made the page: https://github.com/coblee/litecoin/wiki/Mining-hardware-comparison
I think you need a github account to edit? I'm not sure. Try and see.

Yes you do, adding mine


Title: Re: How to mine CPU coins for free
Post by: tritium on November 03, 2011, 12:57:17 AM
just added some of mine


Title: Re: How to mine CPU coins for free
Post by: ElectricMucus on November 03, 2011, 01:08:42 AM
Quote
A valid credit card is required to sign up. See offer terms

 >:(


Title: Re: How to mine CPU coins for free
Post by: phorensic on November 03, 2011, 07:05:02 PM
Updated wiki with mine  ;)


Title: Re: How to mine CPU coins for free
Post by: saqwe on November 04, 2011, 01:13:41 AM
has anyone tried this?

how much did you get out?
and how much is the equivalent in BTC?

cheers


Title: Re: How to mine CPU coins for free
Post by: BTCurious on November 04, 2011, 05:37:29 AM
Calculations for the free EC2, assuming a generous speed of 1.5 khash/s:

Using http://allchains.info/calc.html tells me that you get 3.961 coins per day, or if you use 750 hours, 750*3.961/24 = 123.78125 LTC
At the current exchange rate (~0.01 BTC/LTC) that gives 1.237 BTC, or (3.25 USD/BTC) about 4 dollars. In total.

Obviously, if you get the more expensive EC2, even with 8 cores, it's not worth the money, as you get about 4/750 = 0.0053 dollar per core per hour. The LTC/difficulty ratio would need to increase ~5 times for this to be beneficial, assuming you actually get 8 cores at $0.216/hr.


Title: Re: How to mine CPU coins for free
Post by: localhost on November 04, 2011, 07:13:02 AM
You guys do understand that you only get so much processor time/power per month under that free account. After the limit is passed, you will start getting billed.
I indeed launched a so called "free" micro instance, and it seems to be to be billed in my account activity report... until I see the real bill at the end of the month, I'm not running this again. Luckily I had some issue with putty and the key so didn't actually run the instance for more than an hour.


Title: Re: How to mine CPU coins for free
Post by: tacotime on November 04, 2011, 01:19:55 PM
you do need a github account yep
Here is my cpu info for someone to add
1055t @ 3.7ghz/2.6ghz nb. 3.88 kh/s per core (23.3kh/s per cpu), tenebrix miner/cpuminer, k10 flags on gcc4.1.6. Os is ubuntu, power usage is 225w.


Title: Re: How to mine CPU coins for free
Post by: btc_artist on November 04, 2011, 01:55:29 PM
What do you need a Github acct for?


Title: Re: How to mine CPU coins for free
Post by: tacotime on November 04, 2011, 02:20:46 PM
What do you need a Github acct for?

Posting in the mining speed wiki page


Title: Re: How to mine CPU coins for free
Post by: phorensic on November 04, 2011, 02:55:39 PM
has anyone tried this?

how much did you get out?
and how much is the equivalent in BTC?

cheers
I've been mining on the micro instance for a couple days now.  I'm not getting much out of it.  The speed fluctuates wildly.


Title: Re: How to mine CPU coins for free
Post by: btc_artist on November 04, 2011, 03:41:18 PM
I've been mining on the micro instance for a couple days now.  I'm not getting much out of it.  The speed fluctuates wildly.
What's your average speed and what currency are you mining?


Title: Re: How to mine CPU coins for free
Post by: btc_artist on November 04, 2011, 06:24:29 PM
And is it staying withing Amazon's limits for the free service?  Or will you be billed?


Title: Re: How to mine CPU coins for free
Post by: Adamlm on November 04, 2011, 06:46:54 PM
Free tier has 750 hours of EC2 running Linux/Unix Micro instance usage per month. So if you have one micro instance you can use it all month 24/7 for free.


Title: Re: How to mine CPU coins for free
Post by: btc_artist on November 04, 2011, 07:02:21 PM
Free tier has 750 hours of EC2 running Linux/Unix Micro instance usage per month. So if you have one micro instance you can use it all month 24/7 for free.
Right, but do they not also have limits as to how many CPU cycles/processor time you can use in the free tier?


Title: Re: How to mine CPU coins for free
Post by: Adamlm on November 04, 2011, 07:14:01 PM
No, they don't count CPUs nor instances but HOURS. You have 750 hours per month. 1 instace 24/7 = 24*30 = 720 hours per month - it's free. 2 instances = 2 * 24*30 = 1440 - 750 = 690 hours to pay etc.

Here is a nice calculator for this:
http://calculator.s3.amazonaws.com/calc5.html

And about a micro instance:
Quote
Micro Instances - Instances of this family provide a small amount of consistent CPU resources and allow you to burst CPU capacity when additional cycles are available. They are well suited for lower throughput applications and web sites that consume significant compute cycles periodically. Micro Instance 613 MB of memory, up to 2 ECUs (for short periodic bursts), EBS storage only, 32-bit or 64-bit platform.


Title: Re: How to mine CPU coins for free
Post by: Zotia on November 07, 2011, 02:56:22 AM
With the current LTC difficulty (0.61881515), LTC price (0.015984) and 1 khash/sec, you can make $0.78 per month.

The average seems to be about 0.30 khash/sec or so, though, which would be $0.23 per month.


Unless you can get at least 1 khash/sec, this doesn't seem to be worth registering for.