From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Friedrich Weber <f.weber@proxmox.com>,
Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] [PATCH storage 1/2] fix #5779: rbd: allow to pass custom krbd map options
Date: Mon, 27 Jan 2025 08:37:47 +0100 [thread overview]
Message-ID: <0fdd8f93-8ef6-4c83-92ab-8e86d5386343@proxmox.com> (raw)
In-Reply-To: <f665fcbe-6ce3-44ad-b63b-b2b22d927958@proxmox.com>
Am 19.12.24 um 09:05 schrieb Friedrich Weber:
> On 30/10/2024 17:49, Friedrich Weber wrote:
>> [...]
>>
>> Yeah, I see the point.
>>
>> Of course, another alternative is enabling `rxbounce` unconditionally,
>> as initially requested in [1]. I'm a hesitant to do that because from
>> reading its description I'd expect it could have a performance impact --
>> it's probably small, if any, but this should probably be checked before
>> changing the default.
>>
>
> I took another look at this: When rxbounce was first introduced, there
> was a discussion whether krbd could enabled automatically switch to
> "rxbounce mode" if needed [0]. I asked upstream whether this seems
> realistic [1], and they responded it's very unlikely to happen.
>
> So the cleanest solution from a user point of view might be if PVE
> automatically passes rxbounce only when mapping disks of Windows VMs.
> But as Fabian points out [2], this would require some way to pass this
> information to the storage layer.
One option here might be to add a small base module in pve-storage for
guest hints that then qemu-server and potentially pve-container can
implement and pass along as instance through a new parameter to
respective calls to the storage layer.
Or, instead of a whole module and all that just an optional callback,
that would be quite similar just less boilerplate.
Parameters and how hints are returned would still need some careful
thought out design to avoid adding some annoying coupling here.
From top of my head the hints could be constants provided by each
pve-storage plugin and the callback would then receive the available
hints as hash plus potentially some other info, like the storage type
ore (some) storage options' values. As then the callback can check if
it even makes sense to return some hint and one avoids the need for
bumping version dependencies constantly (if this even gets used that
much).
> Of course always passing rxbounce is still an option. Upstream confirmed
> there is a theoretical performance impact, but it might be negligible in
> practice [0]. So if benchmarks show the impact is indeed negligible, we
> could go for that route.
>
> But even with benchmarks done carefully, there is a chance that they
> fail to catch a performance impact on some types of workloads. So in
> order to not disturb setups that currently work fine without rxbounce, I
> have a slight preference for only passing rxbounce when needed, even if
> that requires some architectural changes.
I agree with your sentiment. IMO if it would be OK to enable in general
then our work should probably be to make upstream enable it by default.
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2025-01-27 7:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-25 11:13 [pve-devel] [PATCH storage/docs 0/2] fix #5779: storage: rbd: allow setting custom KRBD map option(s) Friedrich Weber
2024-10-25 11:13 ` [pve-devel] [PATCH storage 1/2] fix #5779: rbd: allow to pass custom krbd map options Friedrich Weber
2024-10-29 13:58 ` Aaron Lauterer
2024-10-29 17:01 ` Friedrich Weber
2024-10-30 8:41 ` Thomas Lamprecht
2024-10-30 13:29 ` Fabian Grünbichler
2024-10-30 16:49 ` Friedrich Weber
2024-12-19 8:05 ` Friedrich Weber
2025-01-27 7:37 ` Thomas Lamprecht [this message]
2024-10-25 11:13 ` [pve-devel] [PATCH docs 2/2] storage: rbd: document KRBD map options property Friedrich Weber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0fdd8f93-8ef6-4c83-92ab-8e86d5386343@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=f.weber@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.