2

monerod hogging up the memory

monerod is (seems) literally hogging up the memory.

Is this expected?

If it's not, what can I do to fix this behavior?

Jane Doe
  • 21
  • 1

2 Answers2

1

The vast majority of the virtual memory usage is memory mapped I/O backed by the blockchain database on disk. A minority corresponds the process memory.

The monero database file is something like 70 GB, very roughly, and some extra space is reserved for expansion, so 103 GB seems totally plausible.

As a point of comparison, typical x86_64 has 256 TB of virtual address space, so 104 GB is 0.04% of it.

user36303
  • 34,858
  • 2
  • 57
  • 123
  • OP is asking about RAM not disk space. See image posted. – jtgrassie Sep 23 '18 at 12:36
  • The question is about virtual memory... – user36303 Sep 23 '18 at 12:44
  • The screenshot is RAM (virtual, shared, resident). – jtgrassie Sep 23 '18 at 12:47
  • Yes. What's your point ? You're constantly trying to reinterpret things on a technicality. This is not helpful. – user36303 Sep 23 '18 at 13:36
  • The point is the user is confused by Linux memory and is assuming monerod is hogging memory "monerod is (seems) literally hogging up the memory" - which is not how this works. Your response in no way referenced this and just spoke to blockchain size. Where I see either an inaccurate or misleading answer, I feel duty bound to clarify. – jtgrassie Sep 23 '18 at 17:08
  • I think you just know enough to be dangerous. I added a line about why the file size is the reason for this. – user36303 Sep 24 '18 at 12:53
  • I suggest removing the final line too because virtual address space is a different subject matter to memory usage display in top. And the ultimate point to answering this question is to point out high VIRT is not a problem. – jtgrassie Sep 24 '18 at 15:21
1

It is not hogging all your RAM. Please see duplicate question, answer and comments: How do I reduce the apparent memory usage of Monero?

And an explanation of Linux memory as reported by top: https://serverfault.com/a/48610

jtgrassie
  • 19,111
  • 4
  • 14
  • 51
  • Also a nice simple explanation of the VIRT, RES and SHR parameters you are looking at in top. https://lilyfeng.wordpress.com/2013/07/17/the-difference-among-virt-res-and-shr-in-top-output/ – jtgrassie Sep 23 '18 at 17:16