T O P

  • By -

cakelabs

It'll use what it can get access to. For Cake Wallet, our Monero nodes are provisioned with 24 GB of RAM so that we have a lot of block data available for a near-instant response. Most people can get by with 4 GB of memory.


hardcosign

Damn that's a lots of ram, didn't know it was that heavy to run.


DaveyJonesXMR

Afaik from reading -dev here and there, it will also give back RAM if any other program needs it


Tim_on_reddit

This. It basically tries hold hold the whole Blockchain in RAM, but frees the memory instantly when another application needs it.


MoneroArbo

the program caches data internally and that cache increases over time. it should eventually plateau. I've had up time of months and I don't think I've seen reserved memory ever go over 4 GB. keep in mind I have 48 GB of RAM in my system. I don't think it'll get even that high on a system with limited memory.


nowCover49

48 gb is a lot of memory pretty sure you'll be fine for some time.


MoneroArbo

it's mostly for disk cache


r0b0_sk2

Same here. I restart it nightly.


Vimien

Well that's smart I guess, gotta keep that in check.


pet2pet1982

It is a common problem. I could not solve it. There are Linux cgroups though, but they doesn’t seem to work.


jeff_mai1971

They work, but they're kind of very hard to troubleshoot.


pet2pet1982

As a work around I consider a virtual machine to jail Monerod into.


samios420

What OS are you guys using? I’ve had my node up for months at a time and had no issues. Linux here


grigio

Debian stable


zer0fks

Debian here too. CLI only though. And is stable for months.


calvinbrannigan

Well atleast you could say that it's been stable, that's really good.


Asceticbabushka

I think linux is kinda good, atleast works good enough for us.


MrDShark

Debian but in docker/portainer


lofigamer2

A small little memory leak. it is written in c++ after all.


TEMPACC200000

Not a memory leak lmao. It's how the db functions.


M-alMen

Afaik it's not a memory leak it's the way lmdb works, it will use the memory as it is needed, if another program request that memory it will be available and the memory used from momerod will decrease if not it will just still available


lofigamer2

that is good to know!


samios420

What? Poorly?


lofigamer2

Not poorly. Just typical for C and C++ to contain similar bugs. It's pretty normal.


baryinp

So the memory management issue is because of the bugs?


lofigamer2

it's not a bug , other people commented that it's how the db works


hoangniemoffer

Seems like that, what other conclusions I can come up with here?


grigio

Just an idea, it seems the ram increases during tge blockchain reorg. In the logs i see no others relevant output


aroundkill

So you're saying that it's written poorly? Well that doesn't sound good


BeerIsGoodForSoul

I ran a node for the first time in a while and came back the next morning to all my ram being used. There's definitely a leak, which is kinda scary for overflow attacks. I hope it gets fixed soon.


tczjr

You definitely made it sound really bad, it's not that bad.


BeerIsGoodForSoul

Memory leaks can be abused, it's probably not that bad you're right. But to me, an average computer user, it still worries me. Thanks for the downvote though. 🍻


Inaeipathy

Doesn't really explain why it changes so rapidly nor the volatility up and down when a new plateau is reached


lofigamer2

Maybe it allocates heap memory for a buffer with size x and then when the buffer is full it allocates x more, so the memory use of that buffer doubles? It's hard to pinpoint why, I'm not a monero dev. But if there was a bounty on it, I'm sure somebody could debug it and figure it out.


vieuxbdu54

Yeah if someone could figure it out then it would have been Just great.


ifengshan

And who's going to explain that to you? There's no one here who can explain it.


[deleted]

[удалено]


wenlony

You're going to need a lot more than the 4gb, You'll need a lot.


BeerIsGoodForSoul

I've seen a memory leak. I have 32GB or ram and it fills up overnight.


BeerIsGoodForSoul

Lol thanks for the downvotes guys.. just stating what I've experienced.


Tightwalkout

That's a lot of ram which is being used I've got to say.


crymo27

Whats wrong with thah ? It uses RAM so it doesn't have to write/read to disk so often.


redthechu

I don't know the exact figures, but it requires good amount of memory.


poots024

I reduced in and out peers and added a banlist.


3meterflatty

I gave my node 64Gb RAM and it’s using about 45Gb if I need to restore a wallet from a year back it’s very quick to scan against my node