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

    Recomended Squid Cache Management

    Scheduled Pinned Locked Moved pfSense Packages
    7 Posts 4 Posters 36.2k 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.
    • N
      NeophyteHeaven
      last edited by

      been searching in the forum n googling, seems cant find the right answer or recommended cache for squid..

      im using lusca_cache

      Im using Quad Core CPU, 4GB Memory and 160GB HDD

      approximately : 70 user

      Hard disk cache system : coss + aufs
      coss Hard disk cache size : 25600
      Hard disk cache size : 25600
      COSS Hard disk cache location : /var/squid
      Hard disk cache location : /var/squid/cache
      Object size : 512
      Memory cache size : 1024
      Minimum object size : 0
      Max memory object size : 1024
      Maximum object size : 64
      Memory replacement policy : Heap GDSF
      Cache replacement policy : Heap LFUDA

      cachemgmt.jpg
      cachemgmt.jpg_thumb

      running pfsense 1.2.3-RELEASE on Dell R300 (raid1), Lusca/LUSCA_HEAD r14560 patched by chudy r11

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

        There isn't really one good 'recommended' setting, it varies a lot from site to site depending on exactly what you want to do, what you want to cache, etc, etc.

        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
        • N
          NeophyteHeaven
          last edited by

          i open this thread because sometimes when there is many user, internet become slow..and the memory usage will become high and higher… to clear the memory usage, i need to restart the server within 3 days..

          just afraid it was my configuration mistake.. :-\

          running pfsense 1.2.3-RELEASE on Dell R300 (raid1), Lusca/LUSCA_HEAD r14560 patched by chudy r11

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

            It could be, but those are the kinds of details you should have given in the first post of the thread so people would have some idea of how to help.

            I haven't seen that kind of thing happen, but I also just use the standard squid install. I don't think I've got more than 25 people behind any instance though.

            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
            • A
              Alan87i
              last edited by

              Are you running havp at the same time with squid?

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

                @Alan87i:

                Are you running havp at the same time with squid?

                nope…

                running pfsense 1.2.3-RELEASE on Dell R300 (raid1), Lusca/LUSCA_HEAD r14560 patched by chudy r11

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

                  COSS+AUFS:
                  COSS is for small content size.
                  AUFS is for large content size.
                  both separated by Object size.
                  Your COSS size is too big. If you restart more often then you don't need that big.
                  Most accessed contents range from 1byte to 8Kbyte. I recommend use 10KB to 16KB(thumbnail picture size) for object size.
                  On restart COSS contents will be lost(developent still on progress for this issue)

                  for your memory issues:
                  squid/lusca would use 10MB per GB of total cache(when full).
                  http://wiki.squid-cache.org/SquidFaq/SquidMemory#How_much_memory_do_I_need_in_my_Squid_server.3F

                  If your system starts to use SWAP file(due to lack of RAM) then it will definitely slows your internet.
                  Squid/lusca starts to grow Page faults it also affects performance.

                  You might need to consider changing your cache_mem and give them to your OS.
                  This FAQ would help you.
                  http://wiki.squid-cache.org/SquidFaq

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