Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Slow install phase on some ebuilds.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Sun Apr 14, 2024 10:38 am    Post subject: Slow install phase on some ebuilds. Reply with quote

Some ebuilf in install phase are VERY slow.
It so happens swap file is obviously involved in the slow down.
SEEMS like some files to be installed are stored in swap instead of $PORTAGE_TMPDIR, which is on disk.

Couple of minutes lost in the process...

Any thought on the subject?

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1395
Location: Germany

PostPosted: Sun Apr 14, 2024 9:01 pm    Post subject: Reply with quote

I assume you know what swap is and what it is supposed to do, right? https://wiki.archlinux.org/title/Swap

Run the build and whatch RAM and swap usage, it should tell you what is going on.
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.


Last edited by Banana on Mon Apr 15, 2024 5:43 am; edited 1 time in total
Back to top
View user's profile Send private message
sublogic
Apprentice
Apprentice


Joined: 21 Mar 2022
Posts: 222
Location: Pennsylvania, USA

PostPosted: Sun Apr 14, 2024 10:05 pm    Post subject: Reply with quote

I would add: run vmstat 1 --unit m in a terminal window to confirm that swap is involved. The si and so columns are swap. bi and bo are disk I/O, but not swap.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3348
Location: Rasi, Finland

PostPosted: Tue Apr 16, 2024 6:00 pm    Post subject: Re: Slow install phase on some ebuilds. Reply with quote

CaptainBlood wrote:
SEEMS like some files to be installed are stored in swap instead of $PORTAGE_TMPDIR, which is on disk.
Are you using -pipe. Afaik it consumes more ram to avoid temporary files during compilation.
_________________
..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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