OPNsense Forum

English Forums => Zenarmor (Sensei) => Topic started by: almodovaris on November 14, 2022, 02:22:13 pm

Title: Memory usage
Post by: almodovaris on November 14, 2022, 02:22:13 pm
On my APU2 (4 GB RAM), 93% of memory are used, and 2% of 8 GB swap are used.
Title: Re: Memory usage
Post by: Patrick M. Hausen on November 14, 2022, 02:29:21 pm
So? And your problem/question is?
Title: Re: Memory usage
Post by: mb on November 14, 2022, 02:44:06 pm
@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.
Title: Re: Memory usage
Post by: almodovaris on November 17, 2022, 07:13:32 am
Yup, fixed it with:
Code: [Select]
     <item>
      <tunable>dev.netmap.buf_num</tunable>
      <value>100000</value>
      <descr>suggested by zenarmor</descr>
    </item>
  </sysctl>
Title: Re: Memory usage
Post by: yeraycito on November 17, 2022, 09:10:07 pm
Version 1.12.1 consumes a lot more ram memory than the previous version.
Title: Re: Memory usage
Post by: yeraycito on November 17, 2022, 09:11:26 pm
Yup, fixed it with:
Code: [Select]
     <item>
      <tunable>dev.netmap.buf_num</tunable>
      <value>100000</value>
      <descr>suggested by zenarmor</descr>
    </item>
  </sysctl>


How and where can this be configured?
Title: Re: Memory usage
Post by: almodovaris on November 18, 2022, 05:36:34 am
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.