Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] It consumes a lot of memory when compiling...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Verdazil
n00b
n00b


Joined: 14 Feb 2019
Posts: 47
Location: One small country ...

PostPosted: Wed Mar 06, 2019 11:03 am    Post subject: [SOLVED] It consumes a lot of memory when compiling... Reply with quote

My PC has 8 GB of DDR3 memory. But when I emerge, for example, the net-libs/webkit-gtk package, more than 10 GB of memory is required. The system gets into a swap and starts to buzz HDD for many hours. This is normal? I have already adjust swappiness to use all memory, but this does not solve the problem, since memory is needed more than physically is present. How to reduce memory consumption when compiling?

Last edited by Verdazil on Wed Mar 06, 2019 11:20 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21328
Location: here

PostPosted: Wed Mar 06, 2019 11:13 am    Post subject: Reply with quote

You can decrease value of MAKEOPTS, this usaually with high value consume a lot of RAM with heavy packages like net-libs/webkit-gtk
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Verdazil
n00b
n00b


Joined: 14 Feb 2019
Posts: 47
Location: One small country ...

PostPosted: Wed Mar 06, 2019 11:19 am    Post subject: Reply with quote

fedeliallalinea wrote:
You can decrease value of MAKEOPTS
Simple and effective solution! Thank you.
Back to top
View user's profile Send private message
g2g591
Tux's lil' helper
Tux's lil' helper


Joined: 17 Sep 2007
Posts: 135

PostPosted: Sun Mar 24, 2019 10:47 am    Post subject: Reply with quote

you can even set MAKEOPTS (and many many other things) per package by using /etc/portage/package.env so on packages that don't use huge amounts of ram you can still speed up compiliation using a high job count.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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