3

I tried following config lines and got Permission denied

install:
 - sudo echo 2000 > /proc/sys/vm/nr_hugepages
chicks
  • 2,393
  • 3
  • 24
  • 40
Andriy Plokhotnyuk
  • 7,883
  • 2
  • 44
  • 68

1 Answers1

1

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.

twink_ml
  • 512
  • 3
  • 14