Memory usage

Started by almodovaris, November 14, 2022, 02:22:13 PM

Previous topic - Next topic
On my APU2 (4 GB RAM), 93% of memory are used, and 2% of 8 GB swap are used.
OPNsense HW:

Minisforum Venus series UN100C, 16 GB RAM, 512 GB SSD
T-bao N9N Pro, 16 GB RAM, 512 GB SSD

So? And your problem/question is?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

@almodovaris, due to a feature, we had bumped the netmap buffers in 1.12. This might be the reason.

We'll re-adjust and decrease them with the upcoming 1.12.1. Update and see if you see improvements in memory consumption.

Yup, fixed it with:

     <item>
      <tunable>dev.netmap.buf_num</tunable>
      <value>100000</value>
      <descr>suggested by zenarmor</descr>
    </item>
  </sysctl>
OPNsense HW:

Minisforum Venus series UN100C, 16 GB RAM, 512 GB SSD
T-bao N9N Pro, 16 GB RAM, 512 GB SSD

Version 1.12.1 consumes a lot more ram memory than the previous version.

Quote from: almodovaris on November 17, 2022, 07:13:32 AM
Yup, fixed it with:

     <item>
      <tunable>dev.netmap.buf_num</tunable>
      <value>100000</value>
      <descr>suggested by zenarmor</descr>
    </item>
  </sysctl>



How and where can this be configured?

That is a copy/paste from config.xml. That means a tunable with that name and that value, the other stuff are comments for the tunable.
OPNsense HW:

Minisforum Venus series UN100C, 16 GB RAM, 512 GB SSD
T-bao N9N Pro, 16 GB RAM, 512 GB SSD