Skip to content

Commit 5bd1397

Browse files
committed
setup_dependencies: Add mention of ulimit issues on Fedora
This should at least provide a hint for the issue described in #63. Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
1 parent 07aa509 commit 5bd1397

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

setup_dependencies.org

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ On a machine running the Fedora Linux distribution, install the packages:
6565
$ sudo dnf install elfutils-libelf-devel perf
6666
#+end_example
6767

68+
Note also that Fedora by default sets a limit on the amount of locked memory
69+
the kernel will allow, which can interfere with loading BPF maps. The
70+
=testenv.sh= script will adjust this for you, but if you're not using that
71+
you will probably run into problems. Use this command to raise the limit:
72+
73+
#+begin_example
74+
# ulimit -l 1024
75+
#+end_example
76+
77+
Note that you need to do this in the shell you are using to load programs
78+
(in particular, it won't work with =sudo=).
79+
6880
** Packages on Debian/Ubuntu
6981

7082
On Debian and Ubuntu installations, install the dependencies like this:

0 commit comments

Comments
 (0)