<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">On November 5, 2015 at 10:49:32, Alex Williamson (<a href="mailto:alex.l.williamson@gmail.com">alex.l.williamson@gmail.com</a>) wrote:</div><div><div><blockquote type="cite" class="clean_bq" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>The fragmentation issue with hugepages is generally that as memory gets fragmented, there's no guarantee that you can reliably allocate hugepages.  A script that doesn't do any error checking to test how many huge pages are actually available might work 99% of the time, but the 100th time you start that guest without a host system reboot, maybe it won't get all the pages you requested and starting the VM will fail.  That's the more significant benefit of boot time allocated hugepages I think, but you also lose the flexibility of having that memory available for general use otherwise, which is why transparent hugepages are so nice, but as I already mentioned, those don't work with page pinning for device assignment.</div></div></div></div></span></blockquote></div><p>Thanks for your explanation, Alex. A 99% chance is more than enough for me. If that’s the case, OP’s way of creating hugepages should be enough and probably I’ll use that myself to have a more dynamic allocation for other uses (VirtualBox, etc.). </p><p><br></p><p>Best regards,</p></div><div id="bloop_sign_1446697213665950976" class="bloop_sign"><font face="helvetica, arial">-- </font><br><span data-mce-style="orphans: 2; text-align: -webkit-auto; widows: 2; background-color: #ffffff; color: #020103; font-family: 'Times New Roman', serif;" style="color: rgb(2, 1, 3);"><font face="Calibri"><b>Okky Hendriansyah</b></font></span><div data-mce-style="font-family: Helvetica, Arial; font-size: 13px; orphans: 2; text-align: -webkit-auto; widows: 2; background-color: #ffffff;"><div data-mce-style="font-family: Helvetica; font-size: 12px;"><font face="Times New Roman"><span style="font-size: 12px;"></span></font></div></div></div><div><span data-mce-style="orphans: 2; text-align: -webkit-auto; widows: 2; background-color: #ffffff; color: #020103; font-family: 'Times New Roman', serif;" style="color: rgb(2, 1, 3);"><font face="Calibri"><b><br></b></font></span></div><div><blockquote type="cite" class="clean_bq" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span><div><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"></div></div></div></div></div></span></blockquote></div></body></html>