<div dir="ltr">Hi Sean,<div><br></div><div>Thank you for your explanation. I want to use the 2MB hugepage. So, do you mean that I have to put hw:mem_page_size=large on used flavor and hw_mem_page_size=2MB used image? What is the difference with current hw:mem_page_size=2MB on used flavor only?</div><div><br></div><div>Best regards.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 13, 2023 at 8:45 PM Sean Mooney <<a href="mailto:smooney@redhat.com">smooney@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 2023-02-13 at 18:22 +0700, Lazuardi Nasution wrote:<br>
> Hi,<br>
> <br>
> There is a weird situation if it is not a bug.<br>
> <br>
Its not a bug<br>
<br>
hw_mem_page_size can be used in the image only if<br>
hw:mem_page_size=larage or hw:mem_page_size=any<br>
<br>
in the case of hw:mem_page_size=large the image can be used to choose a speccific hugepage size<br>
<br>
hw:mem_page_size=large hw_mem_page_size=1G<br>
<br>
hw:mem_page_size=any will by default be the same as hw:mem_page_size=small and use the smallest pagezise<br>
which is typically 4k. the differnece bettwen hw:mem_page_size=any and hw:mem_page_size=small is<br>
hw:mem_page_size=any allows the image to set any value for hw_mem_page_size.<br>
so <br>
hw:mem_page_size=any and hw_mem_page_size=large is valid where as <br>
hw:mem_page_size=small and hw_mem_page_size=large is not and will raise an error.<br>
<br>
when hugepage support was added it was decided that permission form the operator was required<br>
to allow you to request hugepages via the image which is why the flavor must have and hw_mem_page_size=large|any<br>
set.<br>
<br>
> Hugepage instance launching<br>
> is working if I put hw:mem_page_size on the used flavor. But, when I try<br>
> the same launching configuration and change hw:mem_page_size on used flavor<br>
> to hw_mem_page_size on used image, it cannot work as expected. It seems<br>
> that this issue is like on<br>
> <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1791132" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1791132</a>, but it still happens<br>
> on Zed. Is this an old bug? Should I submit a bug report for this?<br>
no we cloased <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1791132" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1791132</a> as not a bug because they were not aware of this requriement.<br>
> <br>
> Best regards.<br>
<br>
</blockquote></div>