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?

  • So apparently the answer that someone figured out was wrong.... so this will just sit unanswered for now.
    – Ginger Ale
    Apr 23 '17 at 3: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: 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

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.

  • 1
    This does not answer the question.
    – user36303
    Aug 19 '18 at 12:17
  • "Monero memory usage is not an issue here" is absolutely an answer. The user is asking how to reduce "apparent memory usage", which is missing the point of how Linux reports memory usage.
    – jtgrassie
    Aug 19 '18 at 12:38
  • It is an answer to another question that the one that was asked :)
    – user36303
    Aug 19 '18 at 12:52
  • It is an answer to the question as titled and question at end of post.
    – jtgrassie
    Aug 19 '18 at 12:58
  • Before the question title was edited that is.
    – jtgrassie
    Sep 23 '18 at 17:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.