I need some help with installing NixOS on armv7l (Cubietruck 3) SBC. The installation fails with Segmentation fault due to low memory. I do use a swap partition of 8Gb which was turned on at the time of the build.
nix-build: page allocation failure: order:0, mode:0xa20(GFP_ATOMIC), nodemask=(null)
[ 1375.204461] CPU: 0 PID: 1607 Comm: nix-build Notn tainted 5.8.18 #1-NixOS
[ 1375.216476] Hardware name: Allwinner sun7i (A20) Family
The whole dmesg log of the error can be found here: https://pastebin.pl/view/b5a62e8f
The interesting part starts at line 480.
Any advice or ideas on solving this?
Here is some information for the swap partition:
[nixos@nixos:~]$ cat /proc/meminfo | grep -B 1000 -A 1000 -i swap
MemTotal: 2043220 kB
MemFree: 1660016 kB
MemAvailable: 1931596 kB
Buffers: 140036 kB
Cached: 128888 kB
SwapCached: 0 kB
Active: 184420 kB
Inactive: 101152 kB
Active(anon): 4056 kB
Inactive(anon): 23824 kB
Active(file): 180364 kB
Inactive(file): 77328 kB
Unevictable: 0 kB
Mlocked: 0 kB
HighTotal: 1302620 kB
HighFree: 1155324 kB
LowTotal: 740600 kB
LowFree: 504692 kB
SwapTotal: 8388604 kB
SwapFree: 8388604 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 16648 kB
Mapped: 23148 kB
Shmem: 11232 kB
KReclaimable: 40520 kB
Slab: 65132 kB
SReclaimable: 40520 kB
SUnreclaim: 24612 kB
KernelStack: 776 kB
PageTables: 788 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 9410212 kB
Committed_AS: 110112 kB
VmallocTotal: 245760 kB
VmallocUsed: 7844 kB
VmallocChunk: 0 kB
Percpu: 504 kB
CmaTotal: 98304 kB
CmaFree: 79788 kB
[nixos@nixos:~]$ grep 'Swap' /proc/meminfo
SwapCached: 0 kB
SwapTotal: 8388604 kB
SwapFree: 8388604 kB
[nixos@nixos:~]$ swapon --show
NAME TYPE SIZE USED PRIO
/dev/sda2 partition 8G 0B -2