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

Unbound Cache on RAM Disk

Scheduled Pinned Locked Moved DHCP and DNS
4 Posts 3 Posters 1.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.
  • D
    DWAyotte
    last edited by Jul 29, 2020, 8:47 PM

    I was thinking it might be nice to have Unbound's cache sit in a RAM drive for a system that has a slow spinning hard drive, but an abundance of RAM. Any chance this is possible without much trouble?

    N 1 Reply Last reply Jul 30, 2020, 4:38 AM Reply Quote 0
    • N
      netblues @DWAyotte
      last edited by Jul 30, 2020, 4:38 AM

      @DWAyotte Judging from the fact that unbound ram usage skyrockets as more lists are loaded, I think it has everything in ram in the first place, without any cache file.
      There is an option that can be compiled in --enable-cache-db, and it can be configured to use redis as a secondary cache server, but this is much more work than a ramdisk.
      And scanning a memory array is probably faster anyways.

      G 1 Reply Last reply Jul 30, 2020, 5:13 AM Reply Quote 0
      • G
        Gertjan @netblues
        last edited by Jul 30, 2020, 5:13 AM

        @netblues said in Unbound Cache on RAM Disk:

        And scanning a memory array is probably faster anyways.

        Yep, a whole lot faster as having the same structure on a disk type device : the access would have to flow through the entire file system function calls instead of accessing local processes memory.

        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
        • D
          DWAyotte
          last edited by Jul 31, 2020, 3:03 AM

          Ah, I didn't realize it was architected that way already, in pfsense. Thanks for filling me in.

          1 Reply Last reply Reply Quote 0
          1 out of 4
          • First post
            1/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received