Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Approaching the limit on PV entries

    Scheduled Pinned Locked Moved Virtualization
    11 Posts 6 Posters 2.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      frostmir
      last edited by

      Hi,

      I'm having this error right now on my VM.

      "Approaching the limit on PV entries, consider increasing either the vm.pmap.shpgperproc or the vm.pmap.pv_entry_max tunable"

      From my research the default value of vm.pmap.shpgperproc=200 mine was set to 500. Should i need to increas the value. If then what value should I replace on it the same as the value for vm.pmap.pv_entry_max=? if needs to be changed. Right now pfsense is currently running smooth, but we are clueless if what will happen if this was not solved.

      Can anybody help us on this please. Thank you in advance

      Capture.PNG
      Capture.PNG_thumb

      1 Reply Last reply Reply Quote 0
      • F
        frostmir
        last edited by

        Any help from anybody please…  :'( :'( :'(

        1 Reply Last reply Reply Quote 0
        • V
          viragomann
          last edited by

          Have you tried a web search on this topic?

          The first hit of my favorite search engine give a solution: https://forums.freebsd.org/threads/17786/

          1 Reply Last reply Reply Quote 0
          • F
            frostmir
            last edited by

            Yes I've been through this site. And from their advice the default value of vm.pmap.shpgperproc=200 should be increased but I already have an value of 500 I am not sure if should I still need to increase this. Dont really know what drawback we get if I modified this, cant risk it, we dont have a backup plan if this router went down.

            1 Reply Last reply Reply Quote 0
            • C
              chrcoluk
              last edited by

              looks like you on ancient unsupported version as that variable (and limit) is gone from FreeBSD for about 3-4 years now.

              It doesnt exist in FreeBSD 9 and newer.

              pfSense CE 2.8.0

              1 Reply Last reply Reply Quote 0
              • F
                frostmir
                last edited by

                Now pfSense crashes just by now and we dont have the log message anymore on the console "Approaching the limit on PV entries, consider increasing either the vm.pmap.shpgperproc or the vm.pmap.pv_entry_max tunable". Was this the reason why our pfsense crashed?

                We are currently running a 2.2.6-RELEASE (i386) FreeBSD 10.1-RELEASE-p25

                1 Reply Last reply Reply Quote 0
                • H
                  heper
                  last edited by

                  @frostmir:

                  We are currently running a 2.2.6-RELEASE (i386) FreeBSD 10.1-RELEASE-p25

                  unless someone has encountered this in the past, you won't get many replies. Almost none of the frequent posters / developers run an out-dated version.

                  the only post i've found that is related is from august 2015 & remained without resolution.
                  https://forum.pfsense.org/index.php?topic=98799

                  1 Reply Last reply Reply Quote 0
                  • F
                    frostmir
                    last edited by

                    That's bad news then. Well I guess my only hope now will be upgrading my firewall to a latest pfSense version

                    1 Reply Last reply Reply Quote 0
                    • J
                      jammcla
                      last edited by

                      I still use version 2.2.6 in multiple VMs, running solid 200+ days no reboot, and they have been rock solid since install.  One thing I noticed is that you are running on 32 bit.  If you want to stay on 2.2.6 I would recommend trying 64-bit if it is supported by your system, that is what we use.

                      1 Reply Last reply Reply Quote 0
                      • F
                        frostmir
                        last edited by

                        @jammcla:

                        I still use version 2.2.6 in multiple VMs, running solid 200+ days no reboot, and they have been rock solid since install.  One thing I noticed is that you are running on 32 bit.  If you want to stay on 2.2.6 I would recommend trying 64-bit if it is supported by your system, that is what we use.

                        Our planned resolution to this is to install a new pfsense 2.3.2 version hopefully this logs wont occur again.
                        Thanks everyone for your attention.

                        1 Reply Last reply Reply Quote 0
                        • I
                          ipfftw
                          last edited by

                          Just ran across this on one of my firewall appliances.

                          Approaching the limit on PV entries, consider increasing either the vm.pmap.shpgperproc or the vm.pmap.pv_entries tunable.
                          

                          What exactly is a "PV" entry? No one said.

                          This firewall has been running for 840 days and just started dropping some phonecalls for the site this week, so i am just going to reboot it and see if this error goes away. But it would be interesting to know what exactly this error message indicates. What can cause this behaviour?

                          From this article here: https://supportportal.juniper.net/s/article/EX2300-C-printing-logs-Approaching-the-limit-on-PV-entries?language=en_US

                          Seems to have something to do with virtual memory.

                          On the kernel, each virtual address which is mapped to a given dynamically-allocated physical memory page uses up one pv_entry in the kernel, which contains information about that specific virtual translation. The kernel imposes a max limit on the number of pv entries that can be allocated on the system.

                          This message means the system is running low on pv entries in the kernel,

                          will post back if rebooting fixes it.

                          device is an SG-3100 running 21.05.2-RELEASE

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.