public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH pve-kernel] add patch: vhost: bump max_mem_regions to 509
@ 2020-11-15 18:36 Alexandre Derumier
  2020-11-16  6:38 ` Alexandre Derumier
  2020-11-16 10:25 ` Thomas Lamprecht
  0 siblings, 2 replies; 4+ messages in thread
From: Alexandre Derumier @ 2020-11-15 18:36 UTC (permalink / raw)
  To: pve-devel

Currently, default value is 64, so qemu is limited to 64 hotplug dimm

original patch from 2015
https://patchwork.kernel.org/project/kvm/patch/1438180163-275465-3-git-send-email-imammedo@redhat.com/

We have discusted about this in 2016 (At this time some optimisations patches were missing)
https://lists.proxmox.com/pipermail/pve-devel/2016-December/024502.html

Also, this fix this bugzilla
https://bugzilla.proxmox.com/show_bug.cgi?id=1426

Wolfgang proposed to have explicit dimm module management, it could be great,
but for now this patch is fixed the current implemlentation.



Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
---
 ...08-vhost-bump-max_mem_regions-to-509.patch | 32 +++++++++++++++++++
 submodules/ubuntu-focal                       |  2 +-
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 patches/kernel/0008-vhost-bump-max_mem_regions-to-509.patch

diff --git a/patches/kernel/0008-vhost-bump-max_mem_regions-to-509.patch b/patches/kernel/0008-vhost-bump-max_mem_regions-to-509.patch
new file mode 100644
index 0000000..f547b7d
--- /dev/null
+++ b/patches/kernel/0008-vhost-bump-max_mem_regions-to-509.patch
@@ -0,0 +1,32 @@
+From 721ac248403a4c7ea98c416fc28f22c0bfbbb63d Mon Sep 17 00:00:00 2001
+From: Alexandre Derumier <aderumier@odiso.com>
+Date: Sun, 15 Nov 2020 19:19:28 +0100
+Subject: [PATCH] vhost: bump max_mem_regions to 509
+
+Currently, default value is 64, so qemu is limited to 64 hotplug dimm
+
+Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
+---
+ drivers/vhost/vhost.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
+index 36ca2cf419bf..1d3eae6555fa 100644
+--- a/drivers/vhost/vhost.c
++++ b/drivers/vhost/vhost.c
+@@ -33,10 +33,10 @@
+ 
+ #include "vhost.h"
+ 
+-static ushort max_mem_regions = 64;
++static ushort max_mem_regions = 509;
+ module_param(max_mem_regions, ushort, 0444);
+ MODULE_PARM_DESC(max_mem_regions,
+-	"Maximum number of memory regions in memory map. (default: 64)");
++	"Maximum number of memory regions in memory map. (default: 509)");
+ static int max_iotlb_entries = 2048;
+ module_param(max_iotlb_entries, int, 0444);
+ MODULE_PARM_DESC(max_iotlb_entries,
+-- 
+2.20.1
+
diff --git a/submodules/ubuntu-focal b/submodules/ubuntu-focal
index fd386a6..721ac24 160000
--- a/submodules/ubuntu-focal
+++ b/submodules/ubuntu-focal
@@ -1 +1 @@
-Subproject commit fd386a64a1ed3f2f047318508ebd733f56a4fab2
+Subproject commit 721ac248403a4c7ea98c416fc28f22c0bfbbb63d
-- 
2.20.1




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [pve-devel] [PATCH pve-kernel] add patch: vhost: bump max_mem_regions to 509
  2020-11-15 18:36 [pve-devel] [PATCH pve-kernel] add patch: vhost: bump max_mem_regions to 509 Alexandre Derumier
@ 2020-11-16  6:38 ` Alexandre Derumier
  2020-11-16 10:25 ` Thomas Lamprecht
  1 sibling, 0 replies; 4+ messages in thread
From: Alexandre Derumier @ 2020-11-16  6:38 UTC (permalink / raw)
  To: Proxmox VE development discussion

BTW,
maybe as futur improvement, we could add an option to specify static
dimm size. (like all dimm are 2GB, 4GB,...)
Should be easy to implement, and only change increment in gui for
maxmem,balloon.

(I'm also looking to implement virtio-mem, but I think it's not 100%
complete for unplug currently)

Le dim. 15 nov. 2020 à 19:36, Alexandre Derumier <aderumier@odiso.com> a écrit :
>
> Currently, default value is 64, so qemu is limited to 64 hotplug dimm
>
> original patch from 2015
> https://patchwork.kernel.org/project/kvm/patch/1438180163-275465-3-git-send-email-imammedo@redhat.com/
>
> We have discusted about this in 2016 (At this time some optimisations patches were missing)
> https://lists.proxmox.com/pipermail/pve-devel/2016-December/024502.html
>
> Also, this fix this bugzilla
> https://bugzilla.proxmox.com/show_bug.cgi?id=1426
>
> Wolfgang proposed to have explicit dimm module management, it could be great,
> but for now this patch is fixed the current implemlentation.
>
>
>
> Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
> ---
>  ...08-vhost-bump-max_mem_regions-to-509.patch | 32 +++++++++++++++++++
>  submodules/ubuntu-focal                       |  2 +-
>  2 files changed, 33 insertions(+), 1 deletion(-)
>  create mode 100644 patches/kernel/0008-vhost-bump-max_mem_regions-to-509.patch
>
> diff --git a/patches/kernel/0008-vhost-bump-max_mem_regions-to-509.patch b/patches/kernel/0008-vhost-bump-max_mem_regions-to-509.patch
> new file mode 100644
> index 0000000..f547b7d
> --- /dev/null
> +++ b/patches/kernel/0008-vhost-bump-max_mem_regions-to-509.patch
> @@ -0,0 +1,32 @@
> +From 721ac248403a4c7ea98c416fc28f22c0bfbbb63d Mon Sep 17 00:00:00 2001
> +From: Alexandre Derumier <aderumier@odiso.com>
> +Date: Sun, 15 Nov 2020 19:19:28 +0100
> +Subject: [PATCH] vhost: bump max_mem_regions to 509
> +
> +Currently, default value is 64, so qemu is limited to 64 hotplug dimm
> +
> +Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
> +---
> + drivers/vhost/vhost.c | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
> +index 36ca2cf419bf..1d3eae6555fa 100644
> +--- a/drivers/vhost/vhost.c
> ++++ b/drivers/vhost/vhost.c
> +@@ -33,10 +33,10 @@
> +
> + #include "vhost.h"
> +
> +-static ushort max_mem_regions = 64;
> ++static ushort max_mem_regions = 509;
> + module_param(max_mem_regions, ushort, 0444);
> + MODULE_PARM_DESC(max_mem_regions,
> +-      "Maximum number of memory regions in memory map. (default: 64)");
> ++      "Maximum number of memory regions in memory map. (default: 509)");
> + static int max_iotlb_entries = 2048;
> + module_param(max_iotlb_entries, int, 0444);
> + MODULE_PARM_DESC(max_iotlb_entries,
> +--
> +2.20.1
> +
> diff --git a/submodules/ubuntu-focal b/submodules/ubuntu-focal
> index fd386a6..721ac24 160000
> --- a/submodules/ubuntu-focal
> +++ b/submodules/ubuntu-focal
> @@ -1 +1 @@
> -Subproject commit fd386a64a1ed3f2f047318508ebd733f56a4fab2
> +Subproject commit 721ac248403a4c7ea98c416fc28f22c0bfbbb63d
> --
> 2.20.1
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [pve-devel] [PATCH pve-kernel] add patch: vhost: bump max_mem_regions to 509
  2020-11-15 18:36 [pve-devel] [PATCH pve-kernel] add patch: vhost: bump max_mem_regions to 509 Alexandre Derumier
  2020-11-16  6:38 ` Alexandre Derumier
@ 2020-11-16 10:25 ` Thomas Lamprecht
  2020-11-17 10:53   ` Alexandre Derumier
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Lamprecht @ 2020-11-16 10:25 UTC (permalink / raw)
  To: Proxmox VE development discussion, Alexandre Derumier

On 15.11.20 19:36, Alexandre Derumier wrote:
> Currently, default value is 64, so qemu is limited to 64 hotplug dimm
> 
> original patch from 2015
> https://patchwork.kernel.org/project/kvm/patch/1438180163-275465-3-git-send-email-imammedo@redhat.com/
> 
> We have discusted about this in 2016 (At this time some optimisations patches were missing)
> https://lists.proxmox.com/pipermail/pve-devel/2016-December/024502.html
> 

What is wrong with setting it as module option?
https://lists.proxmox.com/pipermail/pve-devel/2016-December/024508.html

> Also, this fix this bugzilla
> https://bugzilla.proxmox.com/show_bug.cgi?id=1426
> 
> Wolfgang proposed to have explicit dimm module management, it could be great,
> but for now this patch is fixed the current implemlentation.
> 
> 

maybe Stefan gets around to make this all a nicer approach?

https://lists.proxmox.com/pipermail/pve-devel/2016-December/024519.html

> 
> Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
> ---
>  ...08-vhost-bump-max_mem_regions-to-509.patch | 32 +++++++++++++++++++
>  submodules/ubuntu-focal                       |  2 +-
>  2 files changed, 33 insertions(+), 1 deletion(-)
>  create mode 100644 patches/kernel/0008-vhost-bump-max_mem_regions-to-509.patch
snip
> diff --git a/submodules/ubuntu-focal b/submodules/ubuntu-focal
> index fd386a6..721ac24 160000
> --- a/submodules/ubuntu-focal
> +++ b/submodules/ubuntu-focal
> @@ -1 +1 @@
> -Subproject commit fd386a64a1ed3f2f047318508ebd733f56a4fab2
> +Subproject commit 721ac248403a4c7ea98c416fc28f22c0bfbbb63d
> 

above hunk for the submodule shouldn't be included in the patch, it refers to
a git object which is not in ubuntus tree, probably only local in your working
tree.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [pve-devel] [PATCH pve-kernel] add patch: vhost: bump max_mem_regions to 509
  2020-11-16 10:25 ` Thomas Lamprecht
@ 2020-11-17 10:53   ` Alexandre Derumier
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Derumier @ 2020-11-17 10:53 UTC (permalink / raw)
  To: Thomas Lamprecht; +Cc: Proxmox VE development discussion, Stefan Reiter

>>What is wrong with setting it as module option?

Nothing wrong.  in 2016, Dietmar wanted it in kernel. (don't remember,
maybe the module option didn't exist at this time)


>>above hunk for the submodule shouldn't be included in the patch, it refers to
>>a git object which is not in ubuntus tree, probably only local in your working
>>tree.
oops, sorry.

Do you prefer a module option file ?

Le lun. 16 nov. 2020 à 11:25, Thomas Lamprecht
<t.lamprecht@proxmox.com> a écrit :
>
> On 15.11.20 19:36, Alexandre Derumier wrote:
> > Currently, default value is 64, so qemu is limited to 64 hotplug dimm
> >
> > original patch from 2015
> > https://patchwork.kernel.org/project/kvm/patch/1438180163-275465-3-git-send-email-imammedo@redhat.com/
> >
> > We have discusted about this in 2016 (At this time some optimisations patches were missing)
> > https://lists.proxmox.com/pipermail/pve-devel/2016-December/024502.html
> >
>
> What is wrong with setting it as module option?
> https://lists.proxmox.com/pipermail/pve-devel/2016-December/024508.html
>
> > Also, this fix this bugzilla
> > https://bugzilla.proxmox.com/show_bug.cgi?id=1426
> >
> > Wolfgang proposed to have explicit dimm module management, it could be great,
> > but for now this patch is fixed the current implemlentation.
> >
> >
>
> maybe Stefan gets around to make this all a nicer approach?
>
> https://lists.proxmox.com/pipermail/pve-devel/2016-December/024519.html
>
> >
> > Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
> > ---
> >  ...08-vhost-bump-max_mem_regions-to-509.patch | 32 +++++++++++++++++++
> >  submodules/ubuntu-focal                       |  2 +-
> >  2 files changed, 33 insertions(+), 1 deletion(-)
> >  create mode 100644 patches/kernel/0008-vhost-bump-max_mem_regions-to-509.patch
> snip
> > diff --git a/submodules/ubuntu-focal b/submodules/ubuntu-focal
> > index fd386a6..721ac24 160000
> > --- a/submodules/ubuntu-focal
> > +++ b/submodules/ubuntu-focal
> > @@ -1 +1 @@
> > -Subproject commit fd386a64a1ed3f2f047318508ebd733f56a4fab2
> > +Subproject commit 721ac248403a4c7ea98c416fc28f22c0bfbbb63d
> >
>
> above hunk for the submodule shouldn't be included in the patch, it refers to
> a git object which is not in ubuntus tree, probably only local in your working
> tree.
>
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-17 10:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-15 18:36 [pve-devel] [PATCH pve-kernel] add patch: vhost: bump max_mem_regions to 509 Alexandre Derumier
2020-11-16  6:38 ` Alexandre Derumier
2020-11-16 10:25 ` Thomas Lamprecht
2020-11-17 10:53   ` Alexandre Derumier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal