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

    How do I check my Cache and Hard Disk Space is full

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    7 Posts 3 Posters 20.1k 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
      nearones
      last edited by

      Dear All,
      As an Squid Proxy Sever, how can  I check my Cache size and Hard Disk Space is full. Right now I am using 50 GB HDD and 1GB RAM in Virtual Xeon Server, how much capacity of space will require. I am using PFsense 2.0. So that i will start clearing cache regularly. And how would I know that how much SWAP space is been assigned in my server. I had attached my dashboard, which shows SWAP space is used very low, How can i make use of it
      Squid.jpg
      Squid.jpg_thumb

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        Using swap space will slow down your server.

        Why do you want it?

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

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

          @marcelloc:

          Using swap space will slow down your server.

          Why do you want it?

          Ok, Thanks for ur update giving guidence about SWAP space, but I also wanted to know how can I check my Cache and Hard Disk Space is it full. Right now I am using only 50 GB HDD and with 1GB RAM in Virtual Xeon Server, how much capacity of space should i alot. I am using PFsense 2.0. and how frequent should i clear cache.

          Thanks again.

          1 Reply Last reply Reply Quote 0
          • marcellocM
            marcelloc
            last edited by

            50g is fine. Squid handles with cache age, you do not need to clean it.

            Treinamentos de Elite: http://sys-squad.com

            Help a community developer! ;D

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

              You can select option 8(shell) from the console or SSH into pfsense and run:

              df -h
              (That will show you the hard drive size and how much is used/free)

              Or to answer your question, from the shell, navigate to the cache directory. cd /var/squid/cache/ and type du -h

              It will then show you how much cache you have in MB or GB.

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

                @steviep:

                You can select option 8(shell) from the console or SSH into pfsense and run:

                df -h
                (That will show you the hard drive size and how much is used/free)

                Or to answer your question, from the shell, navigate to the cache directory. cd /var/squid/cache/ and type du -h

                It will then show you how much cache you have in MB or GB.

                Thanks u very much u r genius. Can u provide me more shell commands as i not that good in linux. Also can i tell me how do i clear cache log from shell?

                Thanks again

                1 Reply Last reply Reply Quote 0
                • marcellocM
                  marcelloc
                  last edited by

                  @nearones:

                  Thanks u very much u r genius. Can u provide me more shell commands as i not that good in linux. Also can i tell me how do i clear cache log from shell?

                  rm -rf /var/squi/cache/*
                  

                  The command to rebuild squid cache after removing old cache files:

                  squid -z
                  

                  Aftert it finishes, restart squid.

                  Treinamentos de Elite: http://sys-squad.com

                  Help a community developer! ;D

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