Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: ThiagoCMC on January 10, 2012, 02:02:07 PM



Title: Litecoin daemon is a godzilla in memory consumption and very slow... Why?!
Post by: ThiagoCMC on January 10, 2012, 02:02:07 PM
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


Title: Re: Litecoin daemon is a godzilla in memory consumption and very slow... Why?!
Post by: Garr255 on February 15, 2012, 05:59:08 AM
Very odd, noticed you haven't got any replies yet. Did you find a solution?


Title: Re: Litecoin daemon is a godzilla in memory consumption and very slow... Why?!
Post by: ThiagoCMC on February 15, 2012, 07:14:34 AM
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


Title: Re: Litecoin daemon is a godzilla in memory consumption and very slow... Why?!
Post by: racerguy on February 15, 2012, 01:09:50 PM
Maybe something to do with all that transaction spam we had a while ago?


Title: Re: Litecoin daemon is a godzilla in memory consumption and very slow... Why?!
Post by: GTRsdk on April 10, 2012, 10:15:45 PM
Have you tried the newer (0.6) version of Litecoin?


Title: Re: Litecoin daemon is a godzilla in memory consumption and very slow... Why?!
Post by: soundasleep on May 12, 2013, 11:54:36 PM
There is the -dbcache=<n> 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?