# Huge pages support within LXD

**URL:** <https://travis-ci.community/t/huge-pages-support-within-lxd/5615>\
**Category:** Multi CPU Architecture\
**Created:** [October 22, 2019, 10:08am UTC](https://travis-ci.community/t/huge-pages-support-within-lxd/5615 "2019-10-22T10:08:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reyfone](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/reyfone/32/4449_2.png) [@Reyfone](https://travis-ci.community/u/Reyfone)\
**Post date:** [October 22, 2019, 10:08am UTC](https://travis-ci.community/t/huge-pages-support-within-lxd/5615/1 "2019-10-22T10:08:59Z")

</div>

I’m trying this for DPDK project. There is permission issue when setting hugepage which is required to run DPDK: [https://travis-ci.com/Reyfone/dpdk/jobs/245236623](https://travis-ci.com/Reyfone/dpdk/jobs/245236623)  
Used “sudo sh -c ‘echo 1024 \> /proc/sys/vm/nr\_hugepages’” in setup.sh.

Although we can skip hugepage setting for compiling jobs, unit test jobs will require this to run.  
So LXD itself is not sufficient due to security constraints.

Will you support huge pages within LXD?

Thank you.

---

<div class="post-metadata">

**Author:** ![Michal](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/michal/32/2848_2.png) [@Michal](https://travis-ci.community/u/Michal)\
**Post date:** [October 22, 2019, 11:24am UTC](https://travis-ci.community/t/huge-pages-support-within-lxd/5615/2 "2019-10-22T11:24:59Z")

</div>

Hi @Reyfone

Thanks for testing out the ARM builds!

We really appreciate such feedback, as various use cases presented allow us to refine the feature and make it more complete.

Wrt to security: as ARM builds are currently run within LXD containers, some priviliged access is not possible, as it could allow access from within container to a host-wide features/resources.

For reference: [Multi CPU Architecture#LXD and security](https://docs.travis-ci.com/user/multi-cpu-architectures/#security-and-lxd-container), [one of the topics where it’s been explained](https://travis-ci.community/t/debugging-docker-run-issue-on-arm64/5491)

Wrt hugepages usage from within LXD container: after some consultation it won’t be available quickly. It requires certain changes in Linux kernel and integrating these with LXD. Although feasible, it’s not the highest priority at the moment. It’s been filed within LXD team for now and we need to respect their current work plan.  
Thus, it seems to me your use case qualifies for ‘full VM support’ on ARM - that’s kind of feedback we need at the moment. No set dates yet though, but please stay tuned.

I know it’s not necessarily what you hoped for, however we are looking forward to change that.

Best Regards  
Michał

---

<div class="post-metadata">

**Author:** ![jlinkes](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@jlinkes](https://travis-ci.community/u/jlinkes)\
**Post date:** [June 16, 2020, 7:23am UTC](https://travis-ci.community/t/huge-pages-support-within-lxd/5615/3 "2020-06-16T07:23:20Z")

</div>

Hi Michal,

Are there any updates on hugepage support for aarch64?

Thanks,  
Juraj
