<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 26, 2019 at 5:59 PM Jan Stancek <<a href="mailto:jstancek@redhat.com">jstancek@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"><br>
<span class="gmail_default" style="font-size:small">...</span><br>
> <br>
> If a system(e.g PowerKVM guest) configured with NO huge page support, then<br>
> the file '/proc/sys/vm/nr_hugepages' exist but EOPNOTSUPP to read/write. In<br>
> this key01, perhaps I shouldn't use the "/proc/.../nr_hugepages" to detect<br>
> that at the beginning.<br>
> <br>
> Seems the correct way is to use "/sys/kernel/mm/hugepages/" for huge page<br>
> detecting and leave the SAFE_FILE_* still in setup(). Because we need to<br>
> catch the "/proc/.../nr_hugepages" open/close or read/write issue in<br>
> testing.<br>
<br>
That should work, I see we used that in some tests already.<br></blockquote><div><br></div><div class="gmail_default" style="font-size:small">Thanks, should I format new patch v5? or any more comments?</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>