Linux: limit RAM usage
Posted: Thu May 21, 2020 1:25 pm
I'm backfilling on a batch system that limits the job's RAM usage. Unfortunately, many folding jobs are terminated because they use too much RAM. Does the --memory option do any good?
It did detect the amout of system memory, but how to tell it to use only 5GiB of it?
Code: Select all
*********************** Log Started 2020-05-21T13:02:06Z ***********************
13:02:06:****************************** FAHClient ******************************
13:02:06: Version: 7.6.9
13:02:06: Author: Joseph Coffland <joseph@cauldrondevelopment.com>
13:02:06: Copyright: 2020 foldingathome.org
13:02:06: Homepage: https://foldingathome.org/
13:02:06: Date: Apr 17 2020
13:02:06: Time: 18:11:26
13:02:06: Revision: 398c2b17fa535e0cc6c9d10856b2154c32771646
13:02:06: Branch: master
13:02:06: Compiler: GNU 8.3.0
13:02:06: Options: -std=c++11 -ffunction-sections -fdata-sections -O3
13:02:06: -funroll-loops -fno-pie
13:02:06: Platform: linux2 4.19.0-5-amd64
13:02:06: Bits: 64
13:02:06: Mode: Release
13:02:06: Args: --user=DESY-ZN_GPU --team=38188
13:02:06: --passkey=******************************** --gpu=true
13:02:06: --smp=false --max-units=1 --exit-when-done=true
13:02:06: --web-enable=false --command-enable=false --memory=5368709120
13:02:06: Config: /batch/60848470.17.gpu.q/config.xml
13:02:06:******************************** CBang ********************************
13:02:06: Date: Apr 17 2020
13:02:06: Time: 18:10:13
13:02:06: Revision: 2fb0be7809c5e45287a122ca5fbc15b5ae859a3b
13:02:06: Branch: master
13:02:06: Compiler: GNU 8.3.0
13:02:06: Options: -std=c++11 -ffunction-sections -fdata-sections -O3
13:02:06: -funroll-loops -fno-pie -fPIC
13:02:06: Platform: linux2 4.19.0-5-amd64
13:02:06: Bits: 64
13:02:06: Mode: Release
13:02:06:******************************* System ********************************
13:02:06: CPU: Intel(R) Xeon(R) Gold 6130 CPU @ 2.10GHz
13:02:06: CPU ID: GenuineIntel Family 6 Model 85 Stepping 4
13:02:06: CPUs: 64
13:02:06: Memory: 376.38GiB
13:02:06: Free Memory: 180.65GiB
13:02:06: Threads: POSIX_THREADS
13:02:06: OS Version: 3.10
13:02:06: Has Battery: false
13:02:06: On Battery: false
13:02:06: UTC Offset: 2
13:02:06: PID: 98732