Skip to content

Commit

Permalink
Set RLIM_INFINITY to rlimit nofile
Browse files Browse the repository at this point in the history
Former limit 4096 isn't enough for `--all-kmods`, lsof shows pwru uses
as many as 5269 fds in that case.

Siged-off-by: Zhichuan Liang <gray.liang@isovalent.com>
  • Loading branch information
jschwinger233 committed Aug 28, 2023
1 parent 44708d3 commit 00db1b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func main() {
}

if err := unix.Setrlimit(unix.RLIMIT_NOFILE, &unix.Rlimit{
Cur: 4096,
Max: 4096,
Cur: unix.RLIM_INFINITY,
Max: unix.RLIM_INFINITY,
}); err != nil {
log.Fatalf("failed to set temporary rlimit: %s", err)
}
Expand Down

0 comments on commit 00db1b0

Please sign in to comment.