Search code examples
travis-cihuge-pages

How to enable hugepages on Travis CI build


I tried following config lines and got Permission denied

install:
 - sudo echo 2000 > /proc/sys/vm/nr_hugepages

Solution

  • On a Travis VM you can set up hugepages using sudo sysctl -w vm.nr_hugepages=<Number of pages>.

    The maximum number of pages that can be allocated is 512. For an example of using huge pages in Travis, see this .travis.yml.