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

    RAM disk config

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 3 Posters 1.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.
    • ARAMP1A
      ARAMP1
      last edited by

      I need some opinions…

      I have a 256Gb SSD and 16Gb of RAM.  I've have a 4Gb RAM disk setup that I'm using for Squid cache and it's getting maxed out very quickly to the point that I'm having to go in and clear cache.  I've set up periodic RAM disk backups to 6.

      What can I do to optimize my RAM disk seupt?
      ![RAM Usage.jpg](/public/imported_attachments/1/RAM Usage.jpg)
      ![RAM Usage.jpg_thumb](/public/imported_attachments/1/RAM Usage.jpg_thumb)

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        Remove squid ?

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • CybermazeC
          Cybermaze
          last edited by

          Maybe you could tell us what you are trying to achieve?

          1 Reply Last reply Reply Quote 0
          • ARAMP1A
            ARAMP1
            last edited by

            @Cybermaze:

            Maybe you could tell us what you are trying to achieve?

            Is there a way to move the data from the RAM disk to the SSD?  That way, the RAM disk doesn't completely fill up so quickly?

            1 Reply Last reply Reply Quote 0
            • GertjanG
              Gertjan
              last edited by

              When I said this :
              @Gertjan:

              Remove squid ?

              I was close (half way) a possible answer.

              I saw this when installing :

                     Note:
                     You must initialize new cache directories before you can start
                     squid.  Do this by running "squid -z" as 'root' or 'squid'.
                     If your cache directories are already initialized (e.g. after an
                     upgrade of squid) you do not need to initialize them again.
              

              … but running "squid -z" as 'root' didn't not ask any questions about "where to cache". Login ("su - squid" was not possible).

              Although I found in MENU =>  Package => Proxy Server =>  Cache Management => Local Cache => Hard Disk Cache Location, set by default to /var/squid/cache - isn't this what you are looking for ?

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              1 Reply Last reply Reply Quote 0
              • CybermazeC
                Cybermaze
                last edited by

                Yeah, you need to change the standard location for the hard disk cache, since you have placed /var in your ramdisk.

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