mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-09 17:22:40 -04:00
comment
This commit is contained in:
parent
a5eed00eba
commit
cac5bbad99
1 changed files with 5 additions and 0 deletions
|
@ -3,8 +3,13 @@
|
||||||
|
|
||||||
## Lower parallel compilation jobs to 1 if less than 2 GB RAM to avoid freezing of virtual machines.
|
## Lower parallel compilation jobs to 1 if less than 2 GB RAM to avoid freezing of virtual machines.
|
||||||
## This does not necessarily belong into security-misc.
|
## This does not necessarily belong into security-misc.
|
||||||
|
##
|
||||||
## Example here:
|
## Example here:
|
||||||
## https://forums.whonix.org/t/linux-kernel-runtime-guard-lkrg-linux-kernel-runtime-integrity-checking-and-exploit-detection/8477/26
|
## https://forums.whonix.org/t/linux-kernel-runtime-guard-lkrg-linux-kernel-runtime-integrity-checking-and-exploit-detection/8477/26
|
||||||
|
##
|
||||||
|
## This might no longer be possible in the future. See:
|
||||||
|
## "Stop handling dkms.conf as a bash/shell script"
|
||||||
|
## https://github.com/dell/dkms/issues/414
|
||||||
ENOUGH_RAM="1950"
|
ENOUGH_RAM="1950"
|
||||||
total_ram="$(free -m | sed -n -e '/^Mem:/s/^[^0-9]*\([0-9]*\) .*/\1/p')"
|
total_ram="$(free -m | sed -n -e '/^Mem:/s/^[^0-9]*\([0-9]*\) .*/\1/p')"
|
||||||
if [ "$total_ram" -ge "$ENOUGH_RAM" ]; then
|
if [ "$total_ram" -ge "$ENOUGH_RAM" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue