Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/src/linux-oracle-5.13-headers-5.13.0-1018/tools/testing/selftests/rcutorture/bin/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/bin/bash # SPDX-License-Identifier: GPL-2.0+ # # Get an estimate of how CPU-hoggy to be. # # Usage: cpus2use.sh # # Copyright (C) IBM Corporation, 2013 # # Authors: Paul E. McKenney <[email protected]> if test -n "$TORTURE_ALLOTED_CPUS" then echo $TORTURE_ALLOTED_CPUS exit 0 fi ncpus=`grep '^processor' /proc/cpuinfo | wc -l` if mpstat -V > /dev/null 2>&1 then idlecpus=`mpstat | tail -1 | \ awk -v ncpus=$ncpus '{ print ncpus * ($7 + $NF) / 100 }'` else # No mpstat command, so use all available CPUs. idlecpus=$ncpus fi awk -v ncpus=$ncpus -v idlecpus=$idlecpus < /dev/null ' BEGIN { cpus2use = idlecpus; if (cpus2use < 1) cpus2use = 1; if (cpus2use < ncpus / 10) cpus2use = ncpus / 10; if (cpus2use == int(cpus2use)) cpus2use = int(cpus2use) else cpus2use = int(cpus2use) + 1 print cpus2use; }' |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0042 ]-- |