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

    Atom D510 4GB for Squid/SquidGuard? 500 Users

    Scheduled Pinned Locked Moved Hardware
    17 Posts 6 Posters 11.4k 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.
    • S
      stramato
      last edited by

      Hello all,

      I'll be procuring servers for pfSense now.

      I was just wondering if this is ok?

      Supermicro 1U Rack-mount (200w psu)
      Supermicro Intel Atom D510
      4GB DDR2 Kingston
      250GB SATA 2.5" Hitachi
      2x Integrated Intel Gigabit Ethernet
      1x PCIe Supermicro Quad-Port Gigabit Ethernet

      I will have 2 of these, 1 for a dedicated Multi-ADSL Load Balancer / Basic Firewall / PPTP and 1 for a dedicated Multi-LAN Traffic Shaper / Squid / SquidGuard Proxy

      I'm quite confident that this will be sufficient for the Load Balancer function, but i'm quite skeptic on the hardware for the proxy server function?

      What are your thoughts?

      1 Reply Last reply Reply Quote 0
      • Cry HavokC
        Cry Havok
        last edited by

        You've only provided a tiny part of the relevant information.  What bandwidth do you have, what bandwidth will the users be using, how dynamic will the content be, how many users at a time…?

        1 Reply Last reply Reply Quote 0
        • S
          stramato
          last edited by

          @Cry:

          You've only provided a tiny part of the relevant information.  What bandwidth do you have, what bandwidth will the users be using, how dynamic will the content be, how many users at a time…?

          [Machine A: Traffic Shaper, Squid Proxy, Basic Firewall]
          on an average, around 200 concurrent users, competing for load balanced total of ~16Mbps (8 + 4 + 4) WAN download bandwidth.

          Traffic Shaper is configured for catching P2P traffic and attempting to down-throttle them, plus Level7 filter trying to drop P2P traffic. And limiters for some specific traffic. There are lots of Torrent hogs on the network, and we want to control torrent traffic as much as possible.

          Squid is configured to maximize the cache space. With a bunch of sites in blacklist. With Squidguard and LightSquid.

          [Machine B: Load Balancer, Firewall]
          This does nothing but Load Balance the 3 DSL lines. And basic Firewall functions.

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

            That's a lot of hardware for just load balancing. The extra CPU is nice for speeding up the UI and updating the firmware, but will be mostly idle when just routing (unless you're doing vpn with it too). If it were mine I would probably save money by using only 1GB of RAM and possibly dropping the extra NICs in favour of a small vlan switch, such as the GS108T.

            As for the squid box, here is where the extra RAM and HDD can be useful. squid recommends 1/10 RAM/HDD space, and using only half your system RAM. Thus, with 4GB RAM, they would recommend 2GB for cache, and not more than 200GB of HDD, so your balance is pretty good there.

            Again, I would consider dropping the quad-port NIC and running my LANs on a vlan switch. Take the money you saved and put it toward replacing the HDD with a decent SSD. If squid is really loaded it will benefit immensely from the random read/write performance, which can be up to 2 orders of magnitude better than a HDD.

            I have a similar setup to yours, using a single X7SPA-H with 4GB RAM and a 240GB Vertex 2. My WAN is 8x5 mlppp. I'm only using the 2 on-board NICs with everything running through a GS724T. I haven't had a chance to really load it down yet, but I expect it will fit the bill nicely.

            Let us know how yours goes.

            db

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

              You could technically ditch the HDD in favour of a CF card for the load balancer.  Should be more reliable than the HDD unless you need VGA output.

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

                @dreamslacker:

                You could technically ditch the HDD in favour of a CF card for the load balancer.  Should be more reliable than the HDD unless you need VGA output.

                Let me understand: do you mean that VGA output doesn't works if a CF card is installed?

                you would not believe the view up here

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

                  You run a significant risk of killing the CF card prematurely if you install anything other than the embedded version, which has no vga output.

                  db

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

                    @clarknova:

                    You run a significant risk of killing the CF card prematurely if you install anything other than the embedded version, which has no vga output.

                    I got it: only embedded version to CF card. Thanks clarknova.

                    you would not believe the view up here

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

                      @johnnybe:

                      I got it: only embedded version to CF card. Thanks clarknova.

                      You could technically run the full install on a high quality CF card (SLC flash with wear-levelling controller) and plausibly extend the lifespan further by disabling logging functions internally for reduced amount of data being written.
                      However, seeing as that this would be in a corporate environment of sorts, I'm not sure if this is feasible.  Not to mention, a full install writes much more often to the CF card and the chances of corruption upon power loss would be greater.
                      Having been through 3 harddrive failures in my boxes over the past 2 years or so, I'm slowly migrating them to embedded on solid state media.  Not to mention, power consumption is greatly reduced and thermals are improved on the tiny boxes.

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

                        I use full installs on 8GB SLC CF cards and have not had one fail yet.  These are what I use.

                        http://www.transcendusa.com/products/ModDetail.asp?ModNo=203&SpNo=1&LangNo=0

                        I can break anything.

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

                          @dreamslacker:

                          You could technically run the full install on a high quality CF card (SLC flash with wear-levelling controller) and plausibly extend the lifespan further by disabling logging functions internally for reduced amount of data being written.

                          So, log is the drug to HHD drives, right?

                          @dreamslacker:

                          However, seeing as that this would be in a corporate environment of sorts, I'm not sure if this is feasible.  Not to mention, a full install writes much more often to the CF card and the chances of corruption upon power loss would be greater.
                          Having been through 3 harddrive failures in my boxes over the past 2 years or so, I'm slowly migrating them to embedded on solid state media.  Not to mention, power consumption is greatly reduced and thermals are improved on the tiny boxes.

                          And let me know if I'm wrong:
                          The best usage in an environment running Proxy/Snort is a large CF card, or better yet, a Sata SSD.

                          you would not believe the view up here

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

                            Wear levelling is probably the most important feature in prolonging the life of flash that is being written to frequently. Almost any modern SSD will have it, while most CF cards will not. If a CF card has it the marketing will tell you so.

                            SLC flash generally has 10x the write life cycle of MLC flash, and so is another good feature if you're not using embedded pfsense.

                            db

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

                              That is enlightening. Thx clarknova and dreamslacker.

                              you would not believe the view up here

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

                                @johnnybe:

                                So, log is the drug to HHD drives, right?

                                And let me know if I'm wrong:
                                The best usage in an environment running Proxy/Snort is a large CF card, or better yet, a Sata SSD.

                                1)  Not quite but logging is a form of writing to the drive.  Evidently, less logging equates to less data being written.  If you intend to attempt a full install on a CF card, make sure it is minimally a SLC NAND flash.  Ideally it should also have wear-levelling (will be stated prominently in marketing literature).  The Transcend CF200 series of CF cards have both.  The regular industrial flash from them uses SLC but doesn't have wear levelling.

                                2)  You will want to probably use a HDD for such usage patterns.  Those that are built to run 24/7 are nice to have but not exactly necessary.  Western Digital Raid Edition & Velociraptor or Hitachi's CinemaStar are nice but may be a bit pricey for some.  I won't touch the Seagates short of their SCSI/ SAS drives so don't expect any recommendations here.
                                As far as SSDs go, the best bang for buck now would have to be either the Sandforce 1200 series or the Intel X25M.  However, both will still require some form of clean-up (TRIM) which you aren't going to get on pfsense.  The only controller that does a clean-up without OS filesystem support is the Indilinx but it doesn't quite stack up in performance.  So at some point in time, you're still going to have an SSD that bogs down.
                                I'd say, save the money from buying an SSD.  Get more cooling for the HDD and more importantly, get a UPS that is supported by the NUT package so that the pfsense box can gracefully shutdown during a power failure.

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

                                  @dreamslacker:

                                  As far as SSDs go, the best bang for buck now would have to be either the Sandforce 1200 series or the Intel X25M.  However, both will still require some form of clean-up (TRIM) which you aren't going to get on pfsense.

                                  All true. Without TRIM your SSD's performance will degrade over time. Some models experience this worse than others, and you can look at anandtech.com's SSD section for all the details and benchmarks you could ever wish for.

                                  Besides trim, there are issues that will affect an SSD's performance and life expectancy, the most significant being write amplification, partition alignment, and IO scheduling. Unfortunately pfsense does not currently address these things, as SSDs have not been a focus, and frankly pfsense's storage performance is not even a consideration for most users.

                                  The exception however is squid. In particular, if your squid is going to be doing high volume with many users, a well-tuned storage/IO system should really maximize the performance advantage of squid, which is why I have ultimately decided to handle my SSD in Linux and export the squid cache to pfsense via nfs. I don't know how well this will perform over a standard hdd install, but I have some R&D funding, so I'm going to find out. At worst I will extend the life of my SSD as long as possible and maintain a consistent performance. At best squid will take full advantage of the SSD's superior IO performance to shine under load.

                                  I mention this because you stated from the start that you intend to do a 2-box solution, and I think this is one sensible option for setting it up (particularly if you decide to go SSD for squid cache). Another option would be to move squid entirely to the Linux box and just let pfsense do the firewalling. Either way, squid + SSD + pfsense is not an ideal combination until pfsense includes at least TRIM support, and preferably some install support for saner partition alignment.

                                  On the other hand, there's nothing wrong with a hard drive install. The trail is a little more clearly marked ;)

                                  db

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

                                    Well, that's awesome. Anyone increases knowledge with you two, guys.

                                    you would not believe the view up here

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

                                      clarknova basically nailed it.
                                      I'm not sure how much latencies would be incurred by NFS but it's definitely much better than traversing the internet to retrieve the data.  With enough knowledge/ help, I do suppose he could try to implement iscsi or gasp FC-HBA for better performance.
                                      That said, this is out of the realms of us mere mortals without much in-depth knowledge of the OS's or coding and re-compiling them.

                                      If you just want to stick to one box, I vaguely recall seeing a guide on the forums for attaching and mounting a separate hdd just for Squid.  That could be a way to go for embedded with a separate mechanical drive for caching so your flash drive doesn't get thrashed.

                                      Also, since you have the budget for a SSD, I do suppose you can go for more RAM and a Velociraptor.  Whilst the latter won't quite hold its own against the SSDs for small files IOPS, it is remarkably decent for larger files.  You can always tune Squid to cache smaller files in memory (hence, the beefing up on ram) and larger files on the Veloci. (reducing the 'penalties' of small I/Os which isn't quite its forte).

                                      Whether you go for SSD or mechanical drives, you'll still want a UPS for full installs to lower the risk of corruption (half written files on SSD is no less corruption than on a mech. drive during power losses).

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