[ovirt-users] Re: about the hugepage setting of the KVM server

2021-08-26 Thread Tommy Sway
Thank you for your reply!

 

In fact, large page memory is mainly used for the SGA area of Oracle database. 
As you mentioned, large page memory is not used for other places except SGA. 

Therefore, WHEN allocating virtual machine memory, I will consider using fixed 
large page memory and ordinary memory to allocate.

 

But it's worth revisiting my confusion:

First, if I need to allocate large page memory to my virtual machine, do I need 
to specify large page memory on the physical machine it is located on first ? 

Otherwise, if the physical machine is not suitable, just assign large page 
memory to the virtual machine, is that ok?

I see from your document, it is set to the physical machine first huge page 
memory, is through the kernel parameter way to set.

 

Second, whether it is a physical machine or a virtual machine, once the large 
page memory is set, does it mean that the memory is divided into two areas, 

one is the normal 4K size area, the other is the large page memory area, for 
the application that uses them can only choose one of the two, can not mix, 
right? 

If so, I need to make a strict distinction between these applications, evaluate 
which use large page memory and which use plain memory, 

and plan for capacity to prevent overflow of memory requirements.

 

 

 

 

From: Gianluca Cecchi  
Sent: Thursday, August 26, 2021 5:07 PM
To: Tommy Sway ; users 
Subject: Re: [ovirt-users] Re: about the hugepage setting of the KVM server

 

On Thu, Aug 26, 2021 at 9:50 AM Tommy Sway mailto:sz_cui...@163.com> > wrote:

 

Hi:

 

I am running virtual machines on the KVM servers of oVirt env. The virtual 
machine is running  database, which needs to set the memory huge page on the 
OPERATING system of the virtual machine. 

If I need to set the huge page on the VIRTUAL machine, do I also need to set 
huge page on the KVM physical machine? Or just on the virtual machine? 

 

What best practices do you recommend? 

 

Thank you very much!

 

I think that this is still the reference for 4.4

https://mpolednik.github.io/2017/06/26/hugepages-and-ovirt/

 

The downside, if I'm correct, is that you will allocate as huge pages all the 
memory of the virtual machine and not only what potentially needed.

Coming to your example of database VM: I want to allocate 32Gb as huge pages in 
a VM because that would be the memory assigned to the DB instance. But the VM 
for its work (user processes of the connections and other needs) will be 
configured as a 64Gb ram VM.

In that case you "waste" 32Gb of huge pages allocation on the host, that you 
would prefer to be instead as normal pages

 

Gianluca

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/3QDZLVOQMJGEB2AWPPSLEXL7OROXMTFQ/


[ovirt-users] Re: about the hugepage setting of the KVM server

2021-08-26 Thread Gianluca Cecchi
On Thu, Aug 26, 2021 at 9:50 AM Tommy Sway  wrote:

>
>
> Hi:
>
>
>
> I am running virtual machines on the KVM servers of oVirt env. The virtual
> machine is running  database, which needs to set the memory huge page on
> the OPERATING system of the virtual machine.
>
> If I need to set the huge page on the VIRTUAL machine, do I also need to
> set huge page on the KVM physical machine? Or just on the virtual machine?
>
>
>
> What best practices do you recommend?
>
>
>
> Thank you very much!
>

I think that this is still the reference for 4.4
https://mpolednik.github.io/2017/06/26/hugepages-and-ovirt/

The downside, if I'm correct, is that you will allocate as huge pages all
the memory of the virtual machine and not only what potentially needed.
Coming to your example of database VM: I want to allocate 32Gb as huge
pages in a VM because that would be the memory assigned to the DB instance.
But the VM for its work (user processes of the connections and other needs)
will be configured as a 64Gb ram VM.
In that case you "waste" 32Gb of huge pages allocation on the host, that
you would prefer to be instead as normal pages

Gianluca
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/WSXXOE2NSFWWSDNQMRBHYBUZ6UJPBI5B/


[ovirt-users] Re: about the hugepage setting of the KVM server

2021-08-26 Thread Tommy Sway
Anyone can help me ?

 

From: users-boun...@ovirt.org  On Behalf Of Tommy
Sway
Sent: Thursday, August 26, 2021 12:27 AM
To: users@ovirt.org
Subject: [ovirt-users] about the hugepage setting of the KVM server

 

Hi:

 

I am running virtual machines on the KVM servers of oVirt env. The virtual
machine is running  database, which needs to set the memory huge page on the
OPERATING system of the virtual machine. 

If I need to set the huge page on the VIRTUAL machine, do I also need to set
huge page on the KVM physical machine? Or just on the virtual machine? 

 

What best practices do you recommend? 

 

Thank you very much!

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/BEME44FDS2RXRSEIZ2FGRD3QKCW46SZ4/