From a4b434ff18e2c7785e06ea5dbab94f18087f13ae Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 7 Mar 2024 09:52:23 +0100 Subject: [PATCH] introduce ulimit --- .github/workflows/main.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e63b301..34bd974 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,13 +12,14 @@ jobs: - name: Debug run: | cat /proc/sys/fs/file-max - sudo sysctl -w fs.file-max=500000 - cat /proc/sys/fs/file-max - sudo prlimit --pid $$ --nofile=1048576:1048576 - sudo sysctl fs.inotify.max_user_instances=1280 - sudo sysctl fs.inotify.max_user_watches=655360 + ulimit -Sn # Shows the soft limit + ulimit -Hn # Shows the hard limit + sudo ulimit -n 10485760 + sudo prlimit --pid $$ --nofile=10485760:10485760 sudo sysctl -p cat /proc/sys/fs/file-max + ulimit -Sn # Shows the soft limit + ulimit -Hn # Shows the hard limit - name: Checkout uses: actions/checkout@v4