Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] "emerge gcc" fails due to out of memory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
solamour
Guru
Guru


Joined: 21 Dec 2004
Posts: 583
Location: San Diego, CA

PostPosted: Tue Jan 16, 2018 7:59 pm    Post subject: [Solved] "emerge gcc" fails due to out of memory Reply with quote

When I tried to update gcc to the latest, I received the following.

Code:
/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build/./prev-gcc/xg++ -B/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build/./prev-gcc/ -B/usr/i486-pc-linux-gnu/bin/ -nostdinc++ -B/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build/prev-i486-pc-linux-gnu/libstdc++-v3/src/.libs -B/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build/prev-i486-pc-linux-gnu/libstdc++-v3/libsupc++/.libs  -isystem /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build/prev-i486-pc-linux-gnu/libstdc++-v3/include/i486-pc-linux-gnu  -isystem /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build/prev-i486-pc-linux-gnu/libstdc++-v3/include  -isystem /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/libstdc++-v3/libsupc++ -L/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build/prev-i486-pc-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build/prev-i486-pc-linux-gnu/libstdc++-v3/libsupc++/.libs    -march=geode -O2 -gtoggle -DIN_GCC     -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -static-libstdc++ -static-libgcc  -no-pie -o build/genautomata \
    build/genautomata.o build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o build/hash-table.o build/read-md.o build/errors.o .././libiberty/libiberty.a -lm
build/genautomata /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/gcc/common.md /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/gcc/config/i386/i386.md \
  insn-conditions.md > tmp-automata.c
/bin/bash: line 1: 26524 Killed                  build/genautomata /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/gcc/common.md /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/gcc/config/i386/i386.md insn-conditions.md > tmp-automata.c
make[3]: *** [Makefile:2188: s-automata] Error 137
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build/gcc'
make[2]: *** [Makefile:4428: all-stage2-gcc] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build'
make[1]: *** [Makefile:20339: stage2-bubble] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build'
make: *** [Makefile:20554: bootstrap-lean] Error 2
 * ERROR: sys-devel/gcc-6.4.0-r1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-devel/gcc-6.4.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-devel/gcc-6.4.0-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build'
 * S: '/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0'
 *
 * Please include /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-build-logs.tar.bz2 in your bug report.
 *


And dmesg shows "genautomata" was killed due to out of memory.

Code:
[Tue Jan 16 09:44:47 2018] dhcpcd-run-hook invoked oom-killer: gfp_mask=0x27080c0(GFP_KERNEL_ACCOUNT|__GFP_ZERO|__GFP_NOTRACK), nodemask=0, order=1, oom_score_adj=0
[Tue Jan 16 09:44:47 2018] COMPACTION is disabled!!!
[Tue Jan 16 09:44:47 2018] dhcpcd-run-hook cpuset=/ mems_allowed=0
[Tue Jan 16 09:44:47 2018] CPU: 0 PID: 13133 Comm: dhcpcd-run-hook Not tainted 4.9.34-gentoo #1
[Tue Jan 16 09:44:47 2018] Hardware name: CompuLab AMD "CM-iGLX" Geode LX/CS5536 /CM-iGLX Platform, BIOS Version 5.2 09/02/2007
[Tue Jan 16 09:44:47 2018]  c0669de0 c1210cf9 c0669e04 c10d5650 c0669e04 c10abd01 00000000 c03d1a00
[Tue Jan 16 09:44:47 2018]  c03d1a00 c16d5c44 00000052 c0669e28 c10abdba c0669e24 c10abc6e c0669ea8
[Tue Jan 16 09:44:47 2018]  c0669ea8 c0669ea8 c178cd80 c178cfb8 c0669e44 c10ac31d 000162c1 00000000
[Tue Jan 16 09:44:47 2018] Call Trace:
[Tue Jan 16 09:44:47 2018]  [<c1210cf9>] dump_stack+0x16/0x18
[Tue Jan 16 09:44:47 2018]  [<c10d5650>] dump_header.isra.19+0x6c/0x14b
[Tue Jan 16 09:44:47 2018]  [<c10abd01>] ? task_will_free_mem+0x1f/0x8b
[Tue Jan 16 09:44:47 2018]  [<c10abdba>] oom_kill_process+0x4d/0x265
[Tue Jan 16 09:44:47 2018]  [<c10abc6e>] ? oom_badness+0x92/0xc4
[Tue Jan 16 09:44:47 2018]  [<c10ac31d>] out_of_memory+0x24d/0x268
[Tue Jan 16 09:44:47 2018]  [<c10ae9d1>] __alloc_pages_nodemask+0x794/0x82e
[Tue Jan 16 09:44:47 2018]  [<c102ecd1>] copy_process.part.63+0xbe/0x11b4
[Tue Jan 16 09:44:47 2018]  [<c11cdba2>] ? security_file_alloc+0x1a/0x28
[Tue Jan 16 09:44:47 2018]  [<c103737b>] ? recalc_sigpending+0x11/0x36
[Tue Jan 16 09:44:47 2018]  [<c102ff1c>] _do_fork+0xa1/0x1e5
[Tue Jan 16 09:44:47 2018]  [<c121b2bf>] ? _copy_to_user+0x2f/0x38
[Tue Jan 16 09:44:47 2018]  [<c10300cc>] SyS_clone+0x19/0x1b
[Tue Jan 16 09:44:47 2018]  [<c100128e>] do_int80_syscall_32+0x40/0x52
[Tue Jan 16 09:44:47 2018]  [<c1509e42>] entry_INT80_32+0x2a/0x2a
[Tue Jan 16 09:44:47 2018] Mem-Info:
[Tue Jan 16 09:44:47 2018] active_anon:23069 inactive_anon:23084 isolated_anon:5
[Tue Jan 16 09:44:47 2018] Node 0 active_anon:92276kB inactive_anon:92336kB active_file:7284kB inactive_file:4344kB unevictable:20kB isolated(anon):20kB isolated(file):0kB mapped:8472kB dirty:0kB writeback:47516kB shmem:4kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no
[Tue Jan 16 09:44:47 2018] DMA free:960kB min:132kB low:164kB high:196kB active_anon:5652kB inactive_anon:6888kB active_file:408kB inactive_file:224kB unevictable:0kB writepending:4388kB present:15984kB managed:15908kB mlocked:0kB slab_reclaimable:476kB slab_unreclaimable:908kB kernel_stack:128kB pagetables:180kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[Tue Jan 16 09:44:47 2018] lowmem_reserve[]: 0 207 207 207
[Tue Jan 16 09:44:47 2018] Normal free:4028kB min:1772kB low:2212kB high:2652kB active_anon:86624kB inactive_anon:85448kB active_file:6876kB inactive_file:4120kB unevictable:20kB writepending:43128kB present:225176kB managed:213992kB mlocked:0kB slab_reclaimable:8016kB slab_unreclaimable:11064kB kernel_stack:984kB pagetables:1828kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[Tue Jan 16 09:44:47 2018] lowmem_reserve[]: 0 0 0 0
[Tue Jan 16 09:44:47 2018] DMA: 240*4kB (UE) 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 960kB
[Tue Jan 16 09:44:47 2018] Normal: 79*4kB (UMH) 30*8kB (H) 29*16kB (H) 24*32kB (H) 21*64kB (H) 5*128kB (H) 1*256kB (H) 0*512kB 0*1024kB 0*2048kB 0*4096kB = 4028kB
[Tue Jan 16 09:44:47 2018] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=4096kB
[Tue Jan 16 09:44:47 2018] 15475 total pagecache pages
[Tue Jan 16 09:44:47 2018] 12562 pages in swap cache
[Tue Jan 16 09:44:47 2018] Swap cache stats: add 235568816, delete 235556254, find 150706285/246904902
[Tue Jan 16 09:44:47 2018] Free swap  = 3820292kB
[Tue Jan 16 09:44:47 2018] Total swap = 4193852kB
[Tue Jan 16 09:44:47 2018] 60290 pages RAM
[Tue Jan 16 09:44:47 2018] 0 pages HighMem/MovableOnly
[Tue Jan 16 09:44:47 2018] 2815 pages reserved
[Tue Jan 16 09:44:47 2018] [ pid ]   uid  tgid total_vm      rss nr_ptes nr_pmds swapents oom_score_adj name
[Tue Jan 16 09:44:47 2018] [  627]     0   627      203        4       3       0       10             0 v86d
[Tue Jan 16 09:44:47 2018] [ 3077]     0  3077     2658        1       5       0      101         -1000 systemd-udevd
[Tue Jan 16 09:44:47 2018] [ 4056]     0  4056     1605        0       5       0      102             0 syslog-ng
[Tue Jan 16 09:44:47 2018] [ 4085]     0  4085     1184      120       6       0      124             0 crond
[Tue Jan 16 09:44:47 2018] [ 4278]     0  4278      582      147       4       0       52             0 dhcpcd
[Tue Jan 16 09:44:47 2018] [ 4934]     0  4934     1294        4       5       0       87         -1000 sshd
[Tue Jan 16 09:44:47 2018] [ 4982]   107  4982     1458      176       4       0      137             0 lighttpd
[Tue Jan 16 09:44:47 2018] [ 5158]     0  5158     6075      156      10       0      315             0 smbd
[Tue Jan 16 09:44:47 2018] [ 5162]     0  5162     8275       22      10       0      322             0 smbd-notifyd
[Tue Jan 16 09:44:47 2018] [ 5163]     0  5163     5974       18       9       0      320             0 cleanupd
[Tue Jan 16 09:44:47 2018] [ 5166]     0  5166     6074      126      10       0      343             0 lpqd
[Tue Jan 16 09:44:47 2018] [ 5167]     0  5167     4020      321       6       0      227             0 nmbd
[Tue Jan 16 09:44:47 2018] [ 5734] 65534  5734      562      129       4       0       37             0 noip2
[Tue Jan 16 09:44:47 2018] [ 5740]     0  5740      937        1       4       0       32             0 agetty
[Tue Jan 16 09:44:47 2018] [ 5741]     0  5741      937        1       4       0       31             0 agetty
[Tue Jan 16 09:44:47 2018] [ 5742]     0  5742      937        1       4       0       32             0 agetty
[Tue Jan 16 09:44:47 2018] [ 5743]     0  5743      937        1       5       0       34             0 agetty
[Tue Jan 16 09:44:47 2018] [ 5744]     0  5744      937        1       5       0       31             0 agetty
[Tue Jan 16 09:44:47 2018] [ 5745]     0  5745      937        1       4       0       32             0 agetty
[Tue Jan 16 09:44:47 2018] [ 7502]  1000  7502     3129      282       7       0     1892             0 screen
[Tue Jan 16 09:44:47 2018] [ 7527]  1000  7527     1364        1       5       0      182             0 bash
[Tue Jan 16 09:44:47 2018] [ 7528]  1000  7528     1419        1       4       0      261             0 bash
[Tue Jan 16 09:44:47 2018] [ 7529]  1000  7529     1424        1       5       0      266             0 bash
[Tue Jan 16 09:44:47 2018] [ 7534]  1000  7534     1113        1       5       0       78             0 su
[Tue Jan 16 09:44:47 2018] [ 7537]  1000  7537      997      223       4       0       10             0 watch
[Tue Jan 16 09:44:47 2018] [ 7540]     0  7540     1205        1       4       0       72             0 sudo
[Tue Jan 16 09:44:47 2018] [ 7541]  1000  7541     1364        1       5       0      178             0 bash
[Tue Jan 16 09:44:47 2018] [ 7542]  1000  7542     1364        1       5       0      191             0 bash
[Tue Jan 16 09:44:47 2018] [ 7547]     0  7547     1261      286       5       0       60             0 htop
[Tue Jan 16 09:44:47 2018] [ 7815]     0  7815     1388      140       6       0      209             0 bash
[Tue Jan 16 09:44:47 2018] [ 8319]  1000  8319     2190        1       5       0      676             0 vi
[Tue Jan 16 09:44:47 2018] [17577]   110 17577     1040      171       4       0       22             0 dnsmasq
[Tue Jan 16 09:44:47 2018] [25363]     0 25363     2696        4       7       0      557             0 cupsd
[Tue Jan 16 09:44:47 2018] [ 6498]  1000  6498     1433        4       5       0      275             0 bash
[Tue Jan 16 09:44:47 2018] [22641]  1000 22641     2345        1       6       0      553             0 python
[Tue Jan 16 09:44:47 2018] [29097]     0 29097     8440      272       8       0      169             0 syslog-ng
[Tue Jan 16 09:44:47 2018] [26317]  1000 26317      529       35       4       0       11             0 distccmon-text
[Tue Jan 16 09:44:47 2018] [ 1519]  1000  1519     1417        1       5       0      185             0 bash
[Tue Jan 16 09:44:47 2018] [ 1655]  1000  1655     1148        1       5       0       78             0 su
[Tue Jan 16 09:44:47 2018] [ 1747]     0  1747     1442        1       5       0      212             0 bash
[Tue Jan 16 09:44:47 2018] [24530]     0 24530     1422        1       5       0      129             0 sshd
[Tue Jan 16 09:44:47 2018] [24546]  1000 24546     1422       64       5       0      114             0 sshd
[Tue Jan 16 09:44:47 2018] [24558]  1000 24558     1415        1       5       0      184             0 bash
[Tue Jan 16 09:44:47 2018] [23876]     0 23876    22666       74      25       0    20302             0 emerge
[Tue Jan 16 09:44:47 2018] [ 6621]   250  6621      501       67       4       0       30             0 sandbox
[Tue Jan 16 09:44:47 2018] [ 6622]   250  6622     2026       67       6       0      696             0 ebuild.sh
[Tue Jan 16 09:44:47 2018] [ 6664]   250  6664     2159       66       6       0      831             0 ebuild.sh
[Tue Jan 16 09:44:47 2018] [ 6688]   250  6688     1438       67       5       0      166             0 emake
[Tue Jan 16 09:44:47 2018] [ 6692]   250  6692     1391       67       4       0      392             0 make
[Tue Jan 16 09:44:47 2018] [ 6725]   250  6725     1406       67       5       0      130             0 bash
[Tue Jan 16 09:44:47 2018] [ 6737]   250  6737     1393       83       5       0      397             0 make
[Tue Jan 16 09:44:47 2018] [15000]   250 15000     1407       98       5       0      139             0 bash
[Tue Jan 16 09:44:47 2018] [15113]   250 15113     1430       97       6       0      438             0 make
[Tue Jan 16 09:44:47 2018] [ 9862]   250  9862     1446       98       5       0      175             0 bash
[Tue Jan 16 09:44:47 2018] [ 9898]   250  9898     2819       96       7       0     1803             0 make
[Tue Jan 16 09:44:47 2018] [ 8959]     0  8959     1423       97       5       0      129             0 sshd
[Tue Jan 16 09:44:47 2018] [ 8992]  1000  8992     1423      138       5       0      113             0 sshd
[Tue Jan 16 09:44:47 2018] [ 9014]  1000  9014     1211      131       5       0       42             0 screen
[Tue Jan 16 09:44:47 2018] [22291]     0 22291     8660      183       7       0       76             0 master
[Tue Jan 16 09:44:47 2018] [22293]   207 22293     8656      186       7       0       74             0 pickup
[Tue Jan 16 09:44:47 2018] [22294]   207 22294     8693      136       7       0      102             0 qmgr
[Tue Jan 16 09:44:47 2018] [22619]   207 22619     9281      291       8       0      111             0 tlsmgr
[Tue Jan 16 09:44:47 2018] [26523]   250 26523     1409       98       5       0      129             0 bash
[Tue Jan 16 09:44:47 2018] [26524]   250 26524    92643    31657      94       0    59066             0 genautomata
[Tue Jan 16 09:44:47 2018] [12515]   207 12515     9366      725       8       0        0             0 smtpd
[Tue Jan 16 09:44:47 2018] [12516]   207 12516     8656      524       7       0        0             0 proxymap
[Tue Jan 16 09:44:47 2018] [12547]   207 12547     8656      491       6       0        0             0 anvil
[Tue Jan 16 09:44:47 2018] [13108]  1000 13108      997      210       4       0        8             0 watch
[Tue Jan 16 09:44:47 2018] [13109]  1000 13109     1224      483       5       0        0             0 sh
[Tue Jan 16 09:44:47 2018] [13110]  1000 13110     3221     2253       7       0        0             0 dropbox-cli
[Tue Jan 16 09:44:47 2018] [13133]     0 13133      931      604       4       0        0             0 dhcpcd-run-hook
[Tue Jan 16 09:44:47 2018] Out of memory: Kill process 26524 (genautomata) score 82 or sacrifice child
[Tue Jan 16 09:44:47 2018] Killed process 26524 (genautomata) total-vm:370572kB, anon-rss:126004kB, file-rss:624kB, shmem-rss:0kB
[Tue Jan 16 09:44:47 2018] oom_reaper: reaped process 26524 (genautomata), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB


And here are the current limits and the memory (after gcc failed).

Code:
# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 1781
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1781
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

# free -h
              total        used        free      shared  buff/cache   available
Mem:           224M         80M         20M        172K        124M        135M
Swap:          4.0G         78M        3.9G


I'd appreciate any suggestions on how to resolve this problem, short of adding more RAM.
__
sol


Last edited by solamour on Thu Jan 25, 2018 7:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 40650
Location: 56N 3W

PostPosted: Tue Jan 16, 2018 8:27 pm    Post subject: Reply with quote

solamour,

Code:
              total       
Mem:           224M
That's a challenge.

I guess, its 256M fitted and 32 M is used for graphics?

If you are already using MAKEOPTS="-j1" for gcc, there is not a lot you can do.
a) don't run anything you don't need to.

b) squeeze the graphics so it does not need as much RAM. Reduce the colour depth and the resolution.
Switch to the 80x25 VGA text console, that's as miserly as a console gets with RAM.

c) build gcc elsewhere and install the binary.

d) upgrade the RAM if that's possible.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 18584
Location: here

PostPosted: Tue Jan 16, 2018 8:30 pm    Post subject: Reply with quote

If you use already MAKEOPTS="-j1" and you removed -pipe from CFLAGS (like in your llvm problem)... remains the the cross compilation
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
solamour
Guru
Guru


Joined: 21 Dec 2004
Posts: 583
Location: San Diego, CA

PostPosted: Tue Jan 16, 2018 9:26 pm    Post subject: Reply with quote

I'm using "-j1" with no "-pipe", and the RAM is not upgradable. I also turned off many non-critical services, although I need to check what else I can turn off.

What concerns me is that it wasn't a problem until, say, a few months ago. Sure, it took a week or so to build a large package such as GCC, but it still worked. But now, it just gives up, and adding more swap doesn't help either.

Also, I'm not sure why dhcpcd is doing the killing and whether that's even normal.
Code:
[Tue Jan 16 09:44:47 2018] dhcpcd-run-hook invoked oom-killer:"


But first, let me see if I can reduce the memory reserved for the video.
__
sol
Back to top
View user's profile Send private message
mike155
Guru
Guru


Joined: 17 Sep 2010
Posts: 467
Location: Frankfurt, Germany

PostPosted: Tue Jan 16, 2018 9:44 pm    Post subject: Reply with quote

Quote:
Tue Jan 16 09:44:47 2018] COMPACTION is disabled!!!

This line looks strange. I've never seen it before. Did you turn off memory compaction in the kernel config?
Back to top
View user's profile Send private message
Dr.Willy
Guru
Guru


Joined: 15 Jul 2007
Posts: 446
Location: NRW, Germany

PostPosted: Tue Jan 16, 2018 11:14 pm    Post subject: Reply with quote

There was a bug in older GCC versions (including 6.x) where genautomata used a lot of memory.
The 7.x series requires a lot less memory to compile.
Back to top
View user's profile Send private message
solamour
Guru
Guru


Joined: 21 Dec 2004
Posts: 583
Location: San Diego, CA

PostPosted: Tue Jan 16, 2018 11:27 pm    Post subject: Reply with quote

mike155 wrote:
Quote:
Tue Jan 16 09:44:47 2018] COMPACTION is disabled!!!

This line looks strange. I've never seen it before. Did you turn off memory compaction in the kernel config?


Most likely not, but if I did, it couldn't have been intentional.
Code:
# grep COMPACT .config
CONFIG_COMPACTION=y


And that's another thing as well; I updated the kernel, but instead of migrating the old kernel config, I started fresh with "make defconfig" and set only the things I needed. Right now, I'm giving gcc one more try, so if it fails again, I'll turn the system off, adjust video memory, and see if the new kernel makes any difference.
__
sol
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 40650
Location: 56N 3W

PostPosted: Tue Jan 16, 2018 11:45 pm    Post subject: Reply with quote

solamour,

I'm fairly sure that compaction allows the kernel to move dynamically allocated RAM around, so that it can satisfy a request for a big chunk of RAM from lots of little ones.

malloc and free eventually leave RAM fragmented.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
solamour
Guru
Guru


Joined: 21 Dec 2004
Posts: 583
Location: San Diego, CA

PostPosted: Thu Jan 25, 2018 7:43 pm    Post subject: Reply with quote

After several days of compiling, "gcc-6.4.0-r1" is finally done. I'm not exactly sure what solved the problem though, because I made the following changes all at once. Perhaps it's a combination of everything.

1) Reduced the video memory to increase the main memory by whopping 12MB. Reducing the video memory to 0MB wasn't a good idea, because I ended up with a blank screen and had to reset the BIOS.
2) Started with "make defconfig" to reset the kernel configuration and added only the things I need (and removed a bunch that I know for sure I don't need).
3) Turned off the services that weren't mission critical.

Thank you everyone for taking time to share your opinions and suggestions.
__
sol
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum