Navigation

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

    RAM disk config

    General pfSense Questions
    3
    6
    1031
    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.
    • ARAMP1
      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
      • Gertjan
        Gertjan last edited by

        Remove squid ?

        No "help me" PM's please. Use the forum.

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

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

          1 Reply Last reply Reply Quote 0
          • ARAMP1
            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
            • Gertjan
              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.

              1 Reply Last reply Reply Quote 0
              • Cybermaze
                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