From caed8116cbe7a1e8142bb05f3c9eac2b9c6519c0 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 6 Sep 2012 13:03:47 -0400 Subject: [PATCH] set proc limit based on # of cpus --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 76154e2..02b3fbb 100644 --- a/.bashrc +++ b/.bashrc @@ -34,4 +34,4 @@ eval `dircolors 2>/dev/null` export GTK2_RC_FILES="$HOME/.gtkrc-2.0:$HOME/.kde/share/config/gtkrc-2.0:/etc/gtk-2.0/gtkrc" ulimit -c $(( 512 * 1024 )) # units of KiB -ulimit -u 1000 +ulimit -u $(( 500 * $(getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1) )) -- 2.39.5