7

We all know that LMDB uses a memory-mapped database, so the actual usage of memory by the monero network service process (aka monerod, monero daemon) is very minimal (once network synchronization has completed).

More information on caching and memory mapping can be found here.

Despite these facts, it is sometimes advantageous to reduce the apparent usage of memory by the monerod process. How can one reduce the apparent memory usage?

Ginger Ale
  • 5,676
  • 2
  • 18
  • 46
  • So apparently the answer that someone figured out was wrong.... so this will just sit unanswered for now. – Ginger Ale Apr 23 '17 at 03:31
  • Yep, got here from Google after seeing this in top: 48.419GB VIRT, 2.579GB RES monerod – Nick Sep 20 '17 at 18:14
  • Why is it advantageous to reduce the apparent (as you put it) memory usage? – jtgrassie May 24 '18 at 10:26
  • I know one thing I've run into is that virtual machine providers may not like seeing 100% memory usage. But others have provided other reasons at some point or another. – Ginger Ale May 24 '18 at 11:57
  • But that's not how you calculate memory usage on Linux. See: http://www.tothenew.com/blog/understanding-memory-utilization-in-linux/

    Also, VPS providers preset amount of memory a VM has access to. If you want to use 100% of it that's fine - that's what you are paying for.

    – jtgrassie May 24 '18 at 13:57

1 Answers1

1

As per comments, Monero memory usage is not an issue here, it's about understanding Linux memory. The usage is not "high" and there is no reason to change anything for those that simply do not understand Linux memory.

jtgrassie
  • 19,111
  • 4
  • 14
  • 51