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

    High memory usage

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 4 Posters 3.6k 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.
    • L
      luke240778
      last edited by

      Hey, i have 4gb ram in my pfSense box, and its basically just a transparent proxy.

      I know squid uses a fair bit of memory, but my system seems to be always around 90% memory usage, and also 3% swap usage.. is this bad?

      1 Reply Last reply Reply Quote 0
      • N
        Nachtfalke
        last edited by

        Hi,

        SWAP file ist bad because this slow down the squid process.

        How much hard disk cache did you assign to squid ?
        How much memory did you assign to squid ?
        How much memory do you have installed on your pfsense machine ?

        In general it is normal and no problem when you are running squid and much RAM is used. But the RAM usage shouldn't be higher than ~80% I think. You have to remember:
        When you assign 1GB RAM for squid, than this is the MINIMUM squid is using. squid always uses more RAM because you need additional RAM for every GB of hard disk cache.

        1 Reply Last reply Reply Quote 0
        • Y
          yohansc
          last edited by

          And how can you solve the swap file issue, mine is always 0%.

          1 Reply Last reply Reply Quote 0
          • N
            Nachtfalke
            last edited by

            @yohansc:

            And how can you solve the swap file issue, mine is always 0%.

            Lower your RAM and/or corresponding to this the HDD cache size.
            If there isn't enough RAM for squid than squid has two possibilities: SWAP or die.

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              Free RAM is wasted RAM. If the system is just using it for caching and whatnot, that's better than letting it sit empty.

              Run top -SH for a bit and see what the memory breakdown looks like there.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

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