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

    Ram file system

    Scheduled Pinned Locked Moved General pfSense Questions
    14 Posts 4 Posters 4.0k 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.
    • Cry HavokC
      Cry Havok
      last edited by

      Exactly what do you expect a ramdisk (mdfs) to help with?  The OS will already be using all the free RAM it can to cache disk accesses.  Configuring a ramdisk may make matters worse if you don't know what you're doing.

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

        First thank you for the replay.
        Second i was thinking to pun 2 GB of RAM on this machine, to allocate 1-1,5 for the system use and 512mb for the fsram.
        I want more speed regading the rules execution and maybe the webserver.
        Thank you again for you interest to help me.

        pfsense 2.3.4 on Supermicro A1SRi-2758F + 8GB ECC + SSD

        Happy PfSense user :)

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

          @nikkon:

          First thank you for the replay.
          Second i was thinking to pun 2 GB of RAM on this machine, to allocate 1-1,5 for the system use and 512mb for the fsram.
          I want more speed regading the rules execution and maybe the webserver.
          Thank you again for you interest to help me.

          Which rules (firewall, snort, etc), what webserver?  I really don't think you're going to get any meaningful performance improvement on your firewall.

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

            firewall rules.
            I just ask because i know that is possible.
            thanks again.

            pfsense 2.3.4 on Supermicro A1SRi-2758F + 8GB ECC + SSD

            Happy PfSense user :)

            1 Reply Last reply Reply Quote 0
            • GruensFroeschliG
              GruensFroeschli
              last edited by

              A ramdisk wont bring you any performance gain regarding execution-speed of the firewall rules.

              The only thing i can think of where it would bring something is to have a ram disk as swap partition for a proxy.
              But… if you have enough ram to have a ramdisk its better to use this ram directly for the proxy (so it does not have to swap).

              We do what we must, because we can.

              Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

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

                i have a proxy ! ;D
                THX

                pfsense 2.3.4 on Supermicro A1SRi-2758F + 8GB ECC + SSD

                Happy PfSense user :)

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

                  @nikkon:

                  firewall rules.
                  I just ask because i know that is possible.
                  thanks again.

                  Ok, so, you're going to copy the firewall rules from disk to ramdisk, then again from ramdisk to RAM when they're loaded.  How exactly do you think this will improve things?

                  Can I suggest that you apply the KISS principle.  There are a few things that ramdisks bring benefits for, however unless you're dealing with those and know what you're doing (which, no offence, it doesn't seem like you do) you should trust the OS creators to know what they're doing ;)

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

                    first of all :
                    1. i know that is possible to make an ramfs and it's fast.
                    2. i just ask if is possible to make it on pfsense.
                    3. i just think that will be faster if i pust some files there (ex proxy)
                    4. i have a test machine with pfsense istalled and i will try to make this.If it's will work ok, if not it's no problem.

                    pfsense 2.3.4 on Supermicro A1SRi-2758F + 8GB ECC + SSD

                    Happy PfSense user :)

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

                      Can I suggest you go re-read this thread.  Putting the proxy's cache on ramdisk will NOT improve the proxy's performance.  The proxy could better use that RAM for memory caching.

                      If you really want to go down this pretty pointless route, check the FreeBSD man pages and handbook for documentation on the required commands.

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

                        ok. sory for the reading mistake.

                        pfsense 2.3.4 on Supermicro A1SRi-2758F + 8GB ECC + SSD

                        Happy PfSense user :)

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