Navigation

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

    Error in logs

    General pfSense Questions
    2
    13
    66
    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.
    • J
      J7529 last edited by

      Hello,

      I have just checked my logs and noticed a lot of "swap_page_getswapspace():failed (See image below)
      pfsense errorlog.PNG

      How would I go about fixing this?

      Thanks,
      Jord

      1 Reply Last reply Reply Quote 0
      • NogBadTheBad
        NogBadTheBad last edited by

        What's the output from the swapinfo command and output from the grep command ?

        [2.4.4-RELEASE][admin@pfsense]/root: swapinfo
        Device 1K-blocks Used Avail Capacity
        /dev/label/swap0 16777212 41544 16735668 0%
        [2.4.4-RELEASE][admin@pfsense]/root:

        [2.4.4-RELEASE][admin@pfsenset]/root: grep memory /var/run/dmesg.boot
        real memory = 10737418240 (10240 MB)
        avail memory = 8211410944 (7831 MB)
        [2.4.4-RELEASE][admin@pfsense]/root:

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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

          @NogBadTheBad said in Error in logs:

          grep memory /var/run/dmesg.boot

          When I do swapinfo I receive the following output:
          Device 1K-blocks Used Avail Capacity
          /dev/gptid/2b57240d-1623-11e8-b 1048536 824156 224380 79%

          Doing the second command doesn't give me any output.

          1 Reply Last reply Reply Quote 0
          • NogBadTheBad
            NogBadTheBad last edited by

            What version of pfSense are you running ?

            It looks like you are running out of swap space, the following should tell you the process that's eating all your swap space.

            Run top -w, press o then type in swap

            Andy

            1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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

              I am running 2.4.4-RELEASE-p2

              Running that cmd the top results flicks between Squid, ntopng & clamd

              1 Reply Last reply Reply Quote 0
              • NogBadTheBad
                NogBadTheBad last edited by

                grep memory /var/run/dmesg.boot should work.

                How much RAM do you have ?

                Andy

                1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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

                  I have just tried running that command again but by tabbing out each word, I don't have a option for memory after typing grep

                  I currently have it set to use 4GB RAM

                  NogBadTheBad 1 Reply Last reply Reply Quote 0
                  • NogBadTheBad
                    NogBadTheBad @J7529 last edited by

                    @J7529 said in Error in logs:

                    I have just tried running that command again but by tabbing out each word, I don't have a option for memory after typing grep

                    I currently have it set to use 4GB RAM

                    You probally need more RAM.

                    Screenshot 2019-03-19 at 10.18.23.png

                    Andy

                    1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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

                      @NogBadTheBad said in Error in logs:

                      grep memory /var/run/dmesg.boot

                      pfsense Memory.PNG

                      It looks like im using only 48% or am I looking at the wrong thing?

                      1 Reply Last reply Reply Quote 0
                      • NogBadTheBad
                        NogBadTheBad last edited by NogBadTheBad

                        @J7529

                        The above screenshot is the current state, do you see errors in the log all the time ?

                        https://en.wikipedia.org/wiki/Paging#Unix_and_Unix-like_systems

                        I have 8Gb of RAM and I never swap memory from RAM to disk.

                        Disable ntopng, does the swap usage change ?

                        Andy

                        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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

                          I see error logs maybe twice a day they have happened since I posted this,

                          When disabling ntopng the swap usage doesn't move but I have noticed that the SWAP usage is 1023 assuming if I upped the RAM this would increase automatically.

                          1 Reply Last reply Reply Quote 0
                          • NogBadTheBad
                            NogBadTheBad last edited by NogBadTheBad

                            Upping the RAM causes memory staying in RAM and not being swapped out to swap ( RAM disk ).

                            Can you tie in the time stamps to what squid, ntopng or clamd might be doing ?

                            Andy

                            1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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

                              Just gone through the logs and can't see anything around the time where I received the swap errors

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post