Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-13 Thread Alexandre DERUMIER
ll try to send it today. - Mail original - De: "dietmar" <diet...@proxmox.com> À: "aderumier" <aderum...@odiso.com>, "pve-devel" <pve-devel@pve.proxmox.com> Envoyé: Vendredi 13 Mai 2016 10:51:08 Objet: Re: [pve-devel] [PATCH 1/2] add hugep

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-13 Thread Dietmar Maurer
> As I don't have enough contigous memory, all 1GB hugepages can't be allocated. > > > Of course, with 2MB, it's a lot more easier. Which leads to the next question: Is it worth to use 1GB pages? ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-13 Thread Alexandre DERUMIER
>>In my experience, it always works, but you might end up with a unresponsive >>system for minutes/hours/days, because it swaps out the memory (if you have >>enough), which is in the way. I killed at least two machines with this. >>Therefore, I always configure hugepages and do a reboot. This

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-13 Thread Andreas Steinel
On Fri, May 13, 2016 at 8:32 AM, Alexandre DERUMIER wrote: > >>Also, allocation 1GB pages may can fail due to fragmentation, while > >>allocation of 2MB pages still work? > > yes. > But this is a little bit more complex to manage. > In my experience, it always works, but

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-13 Thread Alexandre DERUMIER
mox.com> À: "aderumier" <aderum...@odiso.com>, "pve-devel" <pve-devel@pve.proxmox.com> Envoyé: Vendredi 13 Mai 2016 07:29:39 Objet: Re: [pve-devel] [PATCH 1/2] add hugepages option > a simple > > echo x > > /sys/devices/system/node/nodeX/hugepag

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-13 Thread Alexandre DERUMIER
el@pve.proxmox.com> Envoyé: Vendredi 13 Mai 2016 07:26:22 Objet: Re: [pve-devel] [PATCH 1/2] add hugepages option > Technically, it's possible to allocate, 1pages of 1GB and 250pages of 2MB, > with 2 mounts point. > > But It's a little bit more complex > > Opinions ?

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-12 Thread Dietmar Maurer
> 2M : /run/hugepages/kvm > 1G : /run/hugepages/kvm_1GB > > for example > > (It's possible to have /dev/hugepages and /run/hugepages/kvm at the same > time, as the files are allocated by process using pages, so they are no > conflict) would be OK for me.

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-12 Thread Dietmar Maurer
> a simple > > echo x > > /sys/devices/system/node/nodeX/hugepages/hugepages-1048576kB/nr_hugepages > echo x > > /sys/devices/system/node/nodeX/hugepages/hugepages-2048kB/nr_hugepages > > is enough (need to be done for each numa node) > > freehuges can be checked > > cat >

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-12 Thread Dietmar Maurer
> Technically, it's possible to allocate, 1pages of 1GB and 250pages of 2MB, > with 2 mounts point. > > But It's a little bit more complex > > Opinions ? Why not. Also, allocation 1GB pages may can fail due to fragmentation, while allocation of 2MB pages still work?

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-12 Thread Alexandre DERUMIER
;aderumier" <aderum...@odiso.com>, "pve-devel" <pve-devel@pve.proxmox.com> Envoyé: Jeudi 12 Mai 2016 12:57:42 Objet: Re: [pve-devel] [PATCH 1/2] add hugepages option > host configuration > -- > hugepages need to

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-12 Thread Alexandre DERUMIER
mox.com> Cc: "pve-devel" <pve-devel@pve.proxmox.com> Envoyé: Vendredi 13 Mai 2016 05:21:20 Objet: Re: [pve-devel] [PATCH 1/2] add hugepages option Another question, currently my patch manage only 1 size of hugepages. one /dev/hupagepages mount, with 2MB or 1GB hugepages. Th

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-12 Thread Alexandre DERUMIER
voyé: Jeudi 12 Mai 2016 17:32:41 Objet: Re: [pve-devel] [PATCH 1/2] add hugepages option > but I have a default > > hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime) I wonder what program creates that? Will try to find out ...

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-12 Thread Dietmar Maurer
> but I have a default > > hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime) I wonder what program creates that? Will try to find out ... ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-12 Thread Alexandre DERUMIER
/dev/hugepages type hugetlbfs (rw,relatime) - Mail original - De: "dietmar" <diet...@proxmox.com> À: "aderumier" <aderum...@odiso.com>, "pve-devel" <pve-devel@pve.proxmox.com> Envoyé: Jeudi 12 Mai 2016 12:57:42 Objet: Re: [pve-devel] [PAT

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-12 Thread Alexandre DERUMIER
"aderumier" <aderum...@odiso.com> À: "dietmar" <diet...@proxmox.com> Cc: "pve-devel" <pve-devel@pve.proxmox.com> Envoyé: Jeudi 12 Mai 2016 14:05:56 Objet: Re: [pve-devel] [PATCH 1/2] add hugepages option >>who mount that? Do I still need above setup? H

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-12 Thread Alexandre DERUMIER
tmar" <diet...@proxmox.com>, "pve-devel" <pve-devel@pve.proxmox.com> Cc: "aderumier" <aderum...@odiso.com> Envoyé: Jeudi 12 Mai 2016 13:30:08 Objet: Re: [pve-devel] [PATCH 1/2] add hugepages option Normally hugepages are setup via sysctl.conf. Default size is alway

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-12 Thread Alexandre DERUMIER
s memory - Mail original - De: "dietmar" <diet...@proxmox.com> À: "aderumier" <aderum...@odiso.com>, "pve-devel" <pve-devel@pve.proxmox.com> Envoyé: Jeudi 12 Mai 2016 12:57:42 Objet: Re: [pve-devel] [PATCH 1/2] add hugepages option > ho

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-12 Thread Andreas Steinel
Normally hugepages are setup via sysctl.conf. Default size is always 2 MB. No need for kernel commandline editing. Why exactly are you using hugepages? Can KVM handle hugepages? Normally hugepages implies no KSM, isn't that right? On Thu, May 12, 2016 at 12:57 PM, Dietmar Maurer

Re: [pve-devel] [PATCH 1/2] add hugepages option

2016-05-12 Thread Dietmar Maurer
> host configuration > -- > hugepages need to be allocated at boot > > for 4GB of 2M hugepages > > /etc/default/grub > - > GRUB_CMDLINE_LINUX_DEFAULT="quiet hugepagesz=2M hugepages=2048" > > /etc/fstab > -- > hugetlbfs /dev/hugepages hugetlbfs

[pve-devel] [PATCH 1/2] add hugepages option

2016-05-08 Thread Alexandre Derumier
vm configuration hugepages: 1 host configuration -- hugepages need to be allocated at boot for 4GB of 2M hugepages /etc/default/grub - GRUB_CMDLINE_LINUX_DEFAULT="quiet hugepagesz=2M hugepages=2048" /etc/fstab -- hugetlbfs