You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Though on recent kernels (starting with 5.2, commit
8c7829b04c523cdc732cb77f59f03320e09f3386 ("mm: fix false-positive
OVERCOMMIT_GUESS failures"), overcommit accounting allows for allocating up
to MemTotal memory, older kernels have a much more complicated overcommit
guess accounting.
That leads to mmap failing on small enough systems:
mmap1.c:205: TBROK: mmap((nil),2088370176,3,34,-1,0) failed: ENOMEM (12)
Allocating only half of the total memory would generally work on test
systems.
Signed-off-by: Thadeu Lima de Souza Cascardo <[email protected]>
Acked-by: Jan Stancek <[email protected]>
Reviewed-by: Cyril Hrubis <[email protected]>
0 commit comments