Bitcoin Forum
May 06, 2024, 11:54:34 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: bitcoind is too heavy  (Read 6666 times)
NRF
Sr. Member
****
Offline Offline

Activity: 279
Merit: 250



View Profile
July 19, 2012, 12:23:27 PM
 #21

You could upload the blockchain, but it would still have to do allot of the real CPU intensive stuff (scanning the blockchain for the keys in your wallet) but it would be a time saver.

The 612MB for ram that comes in a micro while small is more than enough to process transactions so I would not worry too much about that.
1714996474
Hero Member
*
Offline Offline

Posts: 1714996474

View Profile Personal Message (Offline)

Ignore
1714996474
Reply with quote  #2

1714996474
Report to moderator
1714996474
Hero Member
*
Offline Offline

Posts: 1714996474

View Profile Personal Message (Offline)

Ignore
1714996474
Reply with quote  #2

1714996474
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714996474
Hero Member
*
Offline Offline

Posts: 1714996474

View Profile Personal Message (Offline)

Ignore
1714996474
Reply with quote  #2

1714996474
Report to moderator
1714996474
Hero Member
*
Offline Offline

Posts: 1714996474

View Profile Personal Message (Offline)

Ignore
1714996474
Reply with quote  #2

1714996474
Report to moderator
1714996474
Hero Member
*
Offline Offline

Posts: 1714996474

View Profile Personal Message (Offline)

Ignore
1714996474
Reply with quote  #2

1714996474
Report to moderator
rupy (OP)
Hero Member
*****
Offline Offline

Activity: 725
Merit: 500



View Profile
July 20, 2012, 02:25:59 PM
 #22

Ok, phew, it works fine when the chain is downloaded... uses alot of ram though, but it's ok.

BANKBOOK GWT Wallet & no-FIAT Billing API
P_Shep
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
July 20, 2012, 04:24:35 PM
 #23

I wish it didn't depend so much on this boost crap.
I've been trying to compile it for the mipsel architecture, but I'm stopped at every turn due it using very specific (that is recent) functions , and not  being written in a terribly portable way. For example, I managed to get boost 1.35 to compile, but even though it says it uses 1.37, 1.35 is not up to date enough :/
MatthewLM
Legendary
*
Offline Offline

Activity: 1190
Merit: 1004


View Profile
July 20, 2012, 06:17:25 PM
 #24

For example, I managed to get boost 1.35 to compile, but even though it says it uses 1.37, 1.35 is not up to date enough :/

Very silly since the minor revisions (The right most number) should be compatible with each other. Usually the right-most number reffers to performance improvements and bug fixes and not new features and compatibility breakages.
P_Shep
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
July 20, 2012, 10:57:57 PM
Last edit: July 20, 2012, 11:13:37 PM by P_Shep
 #25

Much mangling to get the dependencies compiled, but I've got:
Boost (1.50) - after a flight
miniupnpc (1.6) - had to manually copy some h files. Neither 1.5 nor 1.7 worked at all
OpenSSL 1.0.1c - Manged to find mipsel table entries for ./Configure and edited them to my needs. Had to disable all ASM, even though mips asm exists
db-4.8.30.NC - which was actually easy!

ifaddrs.h is not in my library, trying what was mentioned here: https://bitcointalk.org/?topic=573.0
I got a va_args not defined in util.h - fixed by adding include stdarg.h (which I'm sure is not a good thing to do)
Now I have:
bitcoinrpc.cpp:116: error: reference to ‘int32_t’ is ambiguous
. . .

No idea how to fix that.

Hope you get your version up and Running Mathew. Maybe as some point I could help. Don't have the time or knowledge now.
This is really not portable at all Sad
tevirk
Newbie
*
Offline Offline

Activity: 15
Merit: 0



View Profile
July 21, 2012, 06:58:36 PM
 #26

One thing I noticed was that when I ran bitcoind with the data dir on an NFS volume, it performed horrendously - basically maxing out my CPU, even after the blockchain was caught up (which took well over a day).  Moving to local disk made an enormous difference, it now only takes a few percent of CPU.

I don't think the problem is that it does so much disk I/O that the network can't keep up; I suspect it's to do with the disk caching behaviour changing.  Data that is left in the buffer-cache when running against a local filesystem is being flushed in tiny pieces over NFS, or something like that.

From what I know of EC2, I wouldn't expect it to have that sort of problem, but you never know.

The CPU requirements are so light, my Grand Plan is to try and run bitcoind on a Raspberry Pi (when mine arrives).  There are two potential problems; handling the 64-bit integers on a 32-bit core (I assume that a 32-bit Atom is able to use SSE registers, the Pi might suffer more), and secondly, the I/O of an SD card.  But it will be interesting to find out.
rupy (OP)
Hero Member
*****
Offline Offline

Activity: 725
Merit: 500



View Profile
July 21, 2012, 08:45:26 PM
 #27

Now it runs really fine on EC2 micro, CPU is around 0.3%... It uses 250MB RAM like it was hardcoded to do so. Even after sysctl -w vm.drop_caches=3... I don't know enough about bitcoin to explain the need for 250MB of data, but I was hoping someone here could shed some light on this? What is it keeping cached and why?

BANKBOOK GWT Wallet & no-FIAT Billing API
racerguy
Sr. Member
****
Offline Offline

Activity: 270
Merit: 250


View Profile
July 24, 2012, 07:19:48 PM
 #28

tried restarting bitcoind?  My bitcoin-qt is only using 149m right now.
NRF
Sr. Member
****
Offline Offline

Activity: 279
Merit: 250



View Profile
July 24, 2012, 11:23:55 PM
 #29

Just a follow up on my suggestion of running small spot instance's, I don't think I stressed it enough above.  Make sure that your Drives and Instance are set to :-

Delete on termination:   No

I had an unfortunate incident a while back with a medium spot instance that a client setup (did not want to let me into his AWS control panel).  He set the instance to persist (good) but when he set up the drives he left the tick box that says "Delete on Terminate" ticked.

The instance went down for 15 minutes (spot price spiked to $1 or something) and it started up correctly..... with a fresh OS install.

You have been warned!

If you are unsure, fell free to drop me a line and I will try to help.
Pages: « 1 [2]  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!