Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Emerging qtwebengine fails (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
koschi
Tux's lil' helper
Tux's lil' helper


Joined: 09 Oct 2004
Posts: 123
Location: Tianjin, CN

PostPosted: Sat Jul 24, 2021 6:04 am    Post subject: [solved] Emerging qtwebengine fails (out of memory) Reply with quote

Hello all,

I'm failing to emerge the latest qtwebengine-5.15.2_p20210625 because I'm running out of memory. Short system specs:
Core i5-10300H
8GB RAM
10GB SWAP

I activated zswap in my kernel and deactivated the "jumbo-build" use-flag but it still fails.

On every attempt I find this in my /var/log/kern.log:
Code:
Jul 24 02:07:25 mobiletux kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=cc1plus,pid=5410,uid=250
Jul 24 02:07:25 mobiletux kernel: Out of memory: Killed process 5410 (cc1plus) total-vm:2354836kB, anon-rss:657056kB, file-rss:2940kB, shmem-rss:0kB, UID:250 pgtables:4472kB oom_score_adj:0
Jul 24 02:07:26 mobiletux kernel: oom_reaper: reaped process 5410 (cc1plus), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB


Any suggestions for a workaround to avoid buying another 8GB RAM module? Did anyone try a swap partition on an USB drive?

Thanks!
_________________
Der Digitalrechner ist ein Vollidiot mit einer einseitigen Begabung im schnellen Addieren.


Last edited by koschi on Sat Jul 24, 2021 6:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4152
Location: Bavaria

PostPosted: Sat Jul 24, 2021 7:55 am    Post subject: Reply with quote

koschi wrote:
Any suggestions for a workaround to avoid buying another 8GB RAM module?

Forget to build any bigger swap. You have to lower your MAKEOPTS. With 8GB you can try to set "jumbo-build" and this (its from my machine):
Code:
# mkdir /etc/portage/env
# nano -w /etc/portage/env/monster.conf
=>
MAKEOPTS="-j2"
<=
# nano -w /etc/portage/package.env
=>
# app-office/libreoffice monster.conf
# dev-lang/rust monster.conf
dev-qt/qtwebengine monster.conf
# sys-devel/gcc monster.conf
<=

See more here: https://wiki.gentoo.org/wiki//etc/portage/package.env
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2008

PostPosted: Sat Jul 24, 2021 10:21 am    Post subject: Reply with quote

Other (additional) ways to reduce memory load: don't use tmpfs for PORTAGE_TEMPDIR, and possibly don't use "-pipe" in CFLAGS - I don't know if the second is significant.
Both will reduce the speed of compilation a bit, but they're far better than than overcommitting memory leading to page thrashing.
_________________
Greybeard
Back to top
View user's profile Send private message
koschi
Tux's lil' helper
Tux's lil' helper


Joined: 09 Oct 2004
Posts: 123
Location: Tianjin, CN

PostPosted: Sat Jul 24, 2021 6:45 pm    Post subject: Reply with quote

pietinger wrote:
koschi wrote:
Any suggestions for a workaround to avoid buying another 8GB RAM module?

Forget to build any bigger swap. You have to lower your MAKEOPTS. With 8GB you can try to set "jumbo-build" and this (its from my machine):
Code:
# mkdir /etc/portage/env
# nano -w /etc/portage/env/monster.conf
=>
MAKEOPTS="-j2"
<=
# nano -w /etc/portage/package.env
=>
# app-office/libreoffice monster.conf
# dev-lang/rust monster.conf
dev-qt/qtwebengine monster.conf
# sys-devel/gcc monster.conf
<=

See more here: https://wiki.gentoo.org/wiki//etc/portage/package.env


Thanks! This proposal worked for me -> issue solved
_________________
Der Digitalrechner ist ein Vollidiot mit einer einseitigen Begabung im schnellen Addieren.
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