Thread (3 messages) 3 messages, 2 authors, 2020-07-05

Re: Input requirement for persistent configuration items in bcache

From: Matthias Ferdinand <hidden>
Date: 2020-07-05 09:14:37

On Sun, Jul 05, 2020 at 12:45:41PM +0800, Coly Li wrote:
While I am thinking about this, I do appreciate your help about the
input on which configuration item should be stored in the on-disk
superblock.
Hi,

my use case is rather limited, all my bcache devices run in writeback
mode, and the only parameters I keep playing with are writeback_percent
and sequential_cutoff.

My short list of favourites:

   - cache_mode
   - writeback_percent
   - sequential_cutoff

But I vaguely remember that I used rebooting as last resort after too
much fiddling with tunables; persisting them in the superblock means
losing this reset-to-defaults method. Would be nice to have some other
way of resetting.

An alternative to modifying the superblock might be something
more out-of-band like iptables does with iptables-save and
iptables-restore: convert current settings to text, e.g. on shutdown or
at regular intervals, and restore settings on boot from this text file.

Regards
Matthias
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help