On Thu, 19 Nov 2026, Yongpeng Yang wrote:

> On Wed, Nov 18, 2026 at 05:41:42PM +0100, Mikulas Patocka wrote:
> > There may be multiple targets in a table - if you use the name of the md
> > device as the base directory, they will clash.
> 
> That would be a real problem, but none of the existing dm-bufio users
> can reach it for now: dm-verity, dm-thin and dm-integrity are all
> DM_TARGET_SINGLETON, so a table can hold at most one of them and the
> directory under a device holds at most one "hash"/"fec"/"fec-data"
> client per role.  If a custom targe_type which allows multi target and
> each of them have a dm-bufio client, that will be hard to handle. I just
> want to show the client info through sysfs, how about show such info via
> message?

Yes, showing the state in a message is better.

> > What do you think? Which of these two possibilities is better?
> 
> I prefer messages, please review [PATCH 4/4]:
> 1. The constructor line would have to be taught to veritysetup,
>    dmctl in android and lvm2; a message is one command, no userspace
>    change.
> 2. This knob wants runtime adjustment (raise at boot, drop later);
>    persisting it in the table line makes every tweak a suspend/resume
>    reload, while a message adjusts the live device directly.
> 
> Thanks for the review,
> Yongpeng

I see.

BTW. I'd like to ask another question - please describe in detail the 
performance problem that you are experiencing and that this patchset is 
fixing.

Is the kernel dropping dm-bufio buffers too aggressively? Or is it not 
dropping them so that they consume too much memory?

Could it be fixed through other means that are more general? (for example, 
having a global dm-bufio shrinker and dropping buffers from the client 
that has the longest unused buffer)

Mikulas


Reply via email to