From 1a47ee37442674dcc0d34b4d1d5a7857beaca15f Mon Sep 17 00:00:00 2001 From: Pelochus Date: Sun, 14 Apr 2024 20:32:28 +0000 Subject: [PATCH] Fixed ulimits and changed build permissions --- install.sh | 3 ++- rkllm-runtime/examples/rkllm_api_demo/build-linux.sh | 0 2 files changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 rkllm-runtime/examples/rkllm_api_demo/build-linux.sh diff --git a/install.sh b/install.sh index 4ad5ed5..71a4c9b 100644 --- a/install.sh +++ b/install.sh @@ -39,6 +39,7 @@ cp ./build/build_aarch64_Release/llm_demo /usr/bin/rkllm # We also change the na message_print "Increasing file limit for all users (needed for LLMs to run)..." -echo "* soft nofile 8096" >> /etc/security/limit.conf +echo "* soft nofile 8096" >> /etc/security/limits.conf +echo "* hard nofile 1048576" >> /etc/security/limits.conf message_print "Done installing ezrknn-llm!" diff --git a/rkllm-runtime/examples/rkllm_api_demo/build-linux.sh b/rkllm-runtime/examples/rkllm_api_demo/build-linux.sh old mode 100644 new mode 100755