Unbound Cache on RAM Disk
-
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?
-
@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. -
@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.
-
Ah, I didn't realize it was architected that way already, in pfsense. Thanks for filling me in.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy