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

    Caching not working, screenshots attached

    Scheduled Pinned Locked Moved Cache/Proxy
    18 Posts 2 Posters 1.9k 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.
    • H
      hardingnick
      last edited by

      The access logs are showing a lot of information so trafic is being routed through it i believe, but by the looks of it nothing is being cached?

      Cheers.

      15.png
      15.png_thumb

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        but mainly with the read and write limits of ssd's? dont want drive failures any time soon?

        You likely won't come anywhere near exhausting the write-cycles of todays SSDs so don't worry about it.

        Could you give me some recommended values for local cache size? I have 2 60gb ssd's in a Geom mirror so 60gb working space.

        Unless you're using  alot of site sthat have a lot of static content, it's very likely that you won't be able to cache all that much, or at least a lot less than you would expect.  In my experiences here, with about a dozen users I am caching in the 4-7% range.  To answer your question, since you have all that space you could ealy do a 5-10 GB cache just to start and see how it works for you.

        Personally, I only use squid as the base for squidguard URL filtering.

        Also how would i test that its working and caching?

        Check Services - Squid Proxy Server - Realtime - Squid Access Table.  All requests are shown there.  Cache.log only shows you some squid internal messages and isn't all that useful.

        Edit;  It's working for you as I can see the access.log above your cache.log.

        1 Reply Last reply Reply Quote 0
        • H
          hardingnick
          last edited by

          Thanks for clearing up my SSD lifetime question, its always been a worry of mine as done lots and lots of reading into running full install of pfsense on ssd's and it killing them, but the articles were a few years old!

          Ok great, aslong as its working, hopefully in a couple days once the cache has built up a bit it will take some strain off of the WAN connection, we have good speeds here anyway, but would rather have it running :).

          Think i will set cache to 10gb as you suggested, see how it goes, is that a lot of data to cache? i wouldnt have a clue as never ran squid before.

          Whats your thoughts on squid guard? is it quite demanding on the system? dont have anything to block out atm but might run it anyway to learn about.

          Also, how large should this be? ..

          Disk usage ( /var )
          98% of 145MiB - ufs in RAM

          Its filled up in no time!

          Edit: …

          Squid has now stopped working (Nagios Monitoring System just informed me) .. logged into pfsense and seen .

          Disk usage ( /var )
          100% of 145MiB - ufs in RAM

          So guessing thats why, how do i set it so it overwrites it to stop it shutting down squid?

          2nd Edit...

          Squid has come to a stop and cannot manually be started, im guessing because /var is at 100%? I also have no logs in system logs, accross any of the options!

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            is that a lot of data to cache?

            10GB is pretty large, but it depends on the data being cached and the user requirements so it's hard to say without knowing more.  The default cache size is 100MB.

            Whats your thoughts on squid guard? is it quite demanding on the system?

            It's a simple but effective URL filter.  You can do the same thing with pfBlocker I believe (and much more), but squidguard is much lighter on resources.

            As for your current problem, the squid cache lives in /var/squid/cache IIRC.  II would stop squid if it isn't already and reset your disk and RAM settings back to default.  Save them, clear the cache via the button and then start squid again and see how it goes.

            1 Reply Last reply Reply Quote 0
            • H
              hardingnick
              last edited by

              @KOM:

              is that a lot of data to cache?

              10GB is pretty large, but it depends on the data being cached and the user requirements so it's hard to say without knowing more.  The default cache size is 100MB.

              Whats your thoughts on squid guard? is it quite demanding on the system?

              It's a simple but effective URL filter.  You can do the same thing with pfBlocker I believe (and much more), but squidguard is much lighter on resources.

              As for your current problem, the squid cache lives in /var/squid/cache IIRC.  II would stop squid if it isn't already and reset your disk and RAM settings back to default.  Save them, clear the cache via the button and then start squid again and see how it goes.

              Super, will give it a go and report back, would you mind if I was to contact you through PM?

              Cheers!

              1 Reply Last reply Reply Quote 0
              • KOMK
                KOM
                last edited by

                would you mind if I was to contact you through PM?

                I'd really rather you didn't, thanks.  I don't help out here anywhere as much as I used to so you're better off posting it publicly so that anyone can address it.

                1 Reply Last reply Reply Quote 0
                • H
                  hardingnick
                  last edited by

                  Problem 1: Squid stops running and wont start once ufs in ram gets to 10% and cannot be manually started?

                  Problem 2: Nothing is being logged in the system logs, anything regarding firewall, VPN etc, just says there are no logs?

                  1 Reply Last reply Reply Quote 0
                  • KOMK
                    KOM
                    last edited by

                    No idea.  At this point I would be sorely tempted to blow it all away, install fresh and then install squid and reconfigure using defaults.

                    1 Reply Last reply Reply Quote 0
                    • H
                      hardingnick
                      last edited by

                      I dont understand what the point of running defaults is? i mean my system is more than capable of running 100 times more than the default spec, just dont understand why it would cause this issue?

                      I mean i thought running squid would be fantastic! might just bin it!

                      Wanted to run it for its squidguard also which im still yet to install

                      Edit:….

                      After looking back over my settings, it appears that i had this selected!.. "Use memory file system for /tmp and /var" so this would make a lot of sense to why my logs arn't showing and why /var was filling up so fast, will restart and post any updates!

                      1 Reply Last reply Reply Quote 0
                      • KOMK
                        KOM
                        last edited by

                        I dont understand what the point of running defaults is?

                        After looking back over my settings, it appears that i had this selected!..

                        ** cough **

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