Replies: 1 comment
-
|
We have a script which does a similar for some Servarr applications, though I am actually not sure whether it still works well with latest versions: https://github.com/MichaIng/DietPi/blob/dev/dietpi/misc/dietpi-arr_to_RAM Could be tried to be made more flexible/generic. But let's see which "cache" you actually mean, which could slow down DNS queries?
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! Would it be possible to create a Dietpi option for AdGuard Home to write its cache to RAM instead of disk? This would save a bit of strain on the memory card and speed up DNS-requests a bit. Of course, this is a temporary solution... but making it permanent would require fstab etc.
I'm not entirely sure here... but wouldn't it be possible to do something like this:
1 - Stop AdGuard Home
dietpi-services stop adguardhome
2 - Create backup of AdGuardHome config
3 - Mount data dir on tmpfs
Create a tmpfs mount at that path (e.g. 256 MB size, adjust if needed):
sudo mount -t tmpfs -o size=256M tmpfs /mnt/dietpi_userdata/AdGuardHome
4 - Restore config into RAM
Copy just the config back, so AdGuard Home can start:
cp -r /mnt/dietpi_userdata/AdGuardHome_backup/* /mnt/dietpi_userdata/AdGuardHome/
5 - Start AdGuard Home
dietpi-services start adguardhome
1 vote ·
Beta Was this translation helpful? Give feedback.
All reactions