Bitcoin Forum
November 09, 2024, 07:58:52 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Litecoin daemon is a godzilla in memory consumption and very slow... Why?!  (Read 2970 times)
ThiagoCMC (OP)
Legendary
*
Offline Offline

Activity: 1204
Merit: 1000

฿itcoin: Currency of Resistance!


View Profile
January 10, 2012, 02:02:07 PM
 #1

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
Garr255
Legendary
*
Offline Offline

Activity: 938
Merit: 1000


What's a GPU?


View Profile
February 15, 2012, 05:59:08 AM
 #2

Very odd, noticed you haven't got any replies yet. Did you find a solution?

“First they ignore you, then they laugh at you, then they fight you, then you win.”  -- Mahatma Gandhi

Average time between signing on to bitcointalk: Two weeks. Please don't expect responses any faster than that!
ThiagoCMC (OP)
Legendary
*
Offline Offline

Activity: 1204
Merit: 1000

฿itcoin: Currency of Resistance!


View Profile
February 15, 2012, 07:14:34 AM
 #3

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
racerguy
Sr. Member
****
Offline Offline

Activity: 270
Merit: 250


View Profile
February 15, 2012, 01:09:50 PM
 #4

Maybe something to do with all that transaction spam we had a while ago?
GTRsdk
Member
**
Offline Offline

Activity: 87
Merit: 10

COIN SUPPORTER


View Profile WWW
April 10, 2012, 10:15:45 PM
 #5

Have you tried the newer (0.6) version of Litecoin?

Let's make some Dogecoins together! http://doge.litemoons.com:9555
soundasleep
Full Member
***
Offline Offline

Activity: 169
Merit: 100


View Profile
May 12, 2013, 11:54:36 PM
 #6

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?
Pages: [1]
  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!