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

    Squid on 2 TB harddisk

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 4 Posters 3.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.
    • C
      crazyzoar Banned
      last edited by

      I have 2 TB hard disk. I want to buy CPU for pf-sense for making web caching server(squid server) of 2 TB harddisk.
      What is the requirement of CPU(Ram, processor etc).
      My friend say you need core 2 due 1.8 ghz, 4gb ram.
      what's your view??????

      1 Reply Last reply Reply Quote 0
      • M
        mostlyharmless
        last edited by

        How much traffic are you expecting? More traffic = more cpu and ram.
        That setup would be just fine if not even a little overkill, for a medium sized office.
        I'm running pfSense embedded on an AMD Geode 500 MHZ proc with 256 megs of RAM. Granted, i'm not running squid on it. If anything I would say to give it as much ram as possible so the cache doesn't have to resort to retrieving data from the slower hard drive, CPU isn't as important.

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

          Keep in mind also that squid will use ~10MB of RAM for every 1GB of cahce.

          2TB=2,000GB
          2,000*10=20,000MB
          20,000MB=20GB of RAM.

          You don't have enough. :-)

          http://wiki.squid-cache.org/SquidFaq/SquidMemory#Why_does_Squid_use_so_much_memory.21.3F

          (And that's for i386, amd64 takes 14MB of RAM per 1GB of cache!)

          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
          • C
            crazyzoar Banned
            last edited by

            Now I have 2 questions:

            1-what is the requirement of PC processor for it?
            2-On squid setting tab(proxy server:cache management) it is written near Memory cache size
            ""This is amount pf physical RAM(in megabytes) to be used for negative cache. This value should not exceed more than 50% of the installed RAM""
            It means that for 20TB harddisk for squid, we need 40gb of ram????

            thank for support

            1 Reply Last reply Reply Quote 0
            • D
              dhatz
              last edited by

              A Squid cache of 2TB is HUGE and you'll need to do some careful squid & OS tuning, depending on the type of files you'll be caching … You'd need a fast system, with multiple (2-3) 15K rpm disks (to minimize seek time), plenty of memory, smart filesystem partitioning etc.

              Btw this subject has been discussed before, and iirc some people have expressed the opinion that pfSense system defaults are optimal for its role as a firewall/security device, not for a full-blown FreeBSD server.

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

                Indeed these are questions that belong on a squid forum - you're trying to far exceed the intention of the package - it's not meant to be a gigantic full-blown proxy of such proportions. If it's going to be that large and busy it should be off on its own dedicated box.

                The design and specs of such a system are debatable but a squid forum/list would be a more likely place to get accurate suggestions.

                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.