Failed to compile lttng module on small Azure nodes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| ubuntu-kernel-tests |
Medium
|
Po-Hsu Lin |
Bug Description
Node:
* BasicA1
* StandardA0
* StandardB1s
Running 'cat /var/lib/
DKMS make.log for lttng-modules-
Thu Aug 30 14:27:53 UTC 2018
make: Entering directory '/usr/src/
Makefile:976: "Cannot use CONFIG_
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
virtual memory exhausted: Cannot allocate memory
scripts/
make[1]: *** [/var/lib/
Makefile:1552: recipe for target '_module_
Po-Hsu Lin (cypressyew) wrote : | #1 |
Po-Hsu Lin (cypressyew) wrote : | #2 |
Memory / Disk usage on Standard_B1s:
azure@t-
Filesystem Size Used Avail Use% Mounted on
udev 454M 12K 454M 1% /dev
tmpfs 93M 332K 92M 1% /run
/dev/sda1 30G 1.4G 27G 5% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 462M 0 462M 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/sdb1 3.9G 8.0M 3.7G 1% /mnt
azure@t-
total used free shared buffers cached
Mem: 922 653 268 0 11 419
-/+ buffers/cache: 222 699
Swap: 0 0 0
Po-Hsu Lin (cypressyew) wrote : | #3 |
Memory / Disk usage on Standard_A0:
azure@t-
total used free shared buffers cached
Mem: 670 599 70 0 23 354
-/+ buffers/cache: 221 448
Swap: 0 0 0
azure@t-
Filesystem Size Used Avail Use% Mounted on
udev 328M 12K 328M 1% /dev
tmpfs 68M 332K 67M 1% /run
/dev/sda1 30G 1.5G 27G 6% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 336M 0 336M 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/sdb1 20G 44M 19G 1% /mnt
no longer affects: | stress-ng |
Changed in ubuntu-kernel-tests: | |
importance: | Undecided → Medium |
status: | New → In Progress |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Po-Hsu Lin (cypressyew) wrote : | #4 |
Error message on Standard_A0:
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
CC [M] /var/lib/
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
Colin Ian King (colin-king) wrote : | #5 |
Looks like out of memory killing gcc again.
Po-Hsu Lin (cypressyew) wrote : | #6 |
Patch sent, it will create a swapfile for a node that:
* Running with Azure kernel
* No swap
* < 1.8 GB ram
* > 4 GB free disk space
Po-Hsu Lin (cypressyew) wrote : | #7 |
Changed in ubuntu-kernel-tests: | |
status: | In Progress → Fix Released |
Arnis Jaundzeikars (sangsatori) wrote : | #8 |
Still affecting Standard B1ls nodes.
Ubuntu 18.04 with Linux 4.18; system info --
uname -r
4.18.0-1013-azure
uname -v
#13~18.04.1-Ubuntu SMP Thu Feb 28 23:48:47 UTC 2019
Encountered with DKMS build failing with --
...
gcc: internal compiler error: Killed (program cc1)
Available instance memory --
free -m
total used free shared buff/cache available
Mem: 415 220 18 0 177 184
Swap: 2047 44 2003
Adding a 2G swap file solved the issue.
Memory usage on Basic A1: la-azure- 4-15-0- Basic-A1- aio-dio- bugs:~$ free -m
azure@b-
total used free shared buff/cache available
Mem: 1678 230 1279 0 168 1252
Swap: 0 0 0
Adding a 1G swap as suggested by Colin can solve this issue.