Author

Topic: Litecoin daemon is a godzilla in memory consumption and very slow... Why?! (Read 2972 times)

full member
Activity: 169
Merit: 100
There is the -dbcache= parameter - the database cache size in MB, default 25 - but even I reduced this down to 1, it'd only reduce litecoind usage from 30% to 26%. Running 0.6.3c-beta.

Has anyone ever done a memory profiling of litecoind to see where all the memory is being used?
member
Activity: 87
Merit: 10
COIN SUPPORTER
Have you tried the newer (0.6) version of Litecoin?
sr. member
Activity: 270
Merit: 250
Maybe something to do with all that transaction spam we had a while ago?
legendary
Activity: 1204
Merit: 1000
฿itcoin: Currency of Resistance!
LOL

I install it again in another machine and all seems to work now but, that Litecoin is still very slow...

I complete guess that there is some problem with libdb...

My machine with slow Litecoin have libdb from "Ubuntu repository" and, my machine with fast Litecoin have those packages (libdb) from "Ubuntu PPA Bitcoin"... For example, my Litecoin P2Pool node is fast!

This is a complete guess and I was unable to reproduce it (no time)...

Thanks!
Thiago
legendary
Activity: 938
Merit: 1000
What's a GPU?
Very odd, noticed you haven't got any replies yet. Did you find a solution?
legendary
Activity: 1204
Merit: 1000
฿itcoin: Currency of Resistance!
Guys,

 My litecoind consumes a lot of memory... And it is much more slower than bitcoind and namecoind... But why?!

 I'm using litecoin compiled from sources, "git pull" is up to date.

 Look:

Code:
ps xufa | grep coind
1000     16829  0.5  4.2 129724 32708 ?        SLsl Jan09   6:18 /usr/lib/bitcoin/bitcoind
1000     17691  1.6 31.2 591760 238312 ?       SLsl Jan09  17:58 ./litecoin/src/litecoind
1000     17694  0.3  3.0 116584 23164 ?        Ssl  Jan09   4:17 ./namecoin/src/namecoind

 The Litecoin daemon consumes 31.2% of RAM memory!

 And it is very, very, veeery slow... Look:

Code:
admcc@desk:~$ time ~/namecoin/src/namecoind getbalance
X.XXXXX

real 0m0.008s
user 0m0.000s
sys 0m0.004s
admcc@desk:~$ time bitcoind getbalance
X.XXXXX

real 0m0.467s
user 0m0.008s
sys 0m0.004s
admcc@desk:~$ time ~/litecoin/src/litecoind getbalance
X.XXXXX

real 8m51.580s
user 0m0.004s
sys 0m0.008s

 8 minutes do getbalance from litecoind!!! WTF?!

 I'm using Ubuntu 11.04 32 bits.

Cheers!
Thiago
Jump to: