Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Oddly long compile (install?) times
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
Zucca
Moderator
Moderator


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

PostPosted: Tue Jul 30, 2024 10:30 am    Post subject: Oddly long compile (install?) times Reply with quote

the relevant part:
panther-box ~ # qlop gentoolkit
2024-01-27T20:29:57 >>> app-portage/gentoolkit: 27s
2024-02-01T18:16:47 >>> app-portage/gentoolkit: 38s
2024-03-12T16:04:57 >>> app-portage/gentoolkit: 30s
2024-04-11T13:21:07 >>> app-portage/gentoolkit: 33s
2024-05-16T03:53:08 >>> app-portage/gentoolkit: 4:53:03
2024-07-30T01:08:46 >>> app-portage/gentoolkit: 4:40:49

See? This is obviously wrong. There are some other packages that seem to have way too long compile times.
I have suspicion:
*snip*:
2024-07-30T01:03:54 >>> net-misc/modemmanager-1.20.6: 4′52″
2024-07-30T01:08:46 >>> app-portage/gentoolkit-0.6.5: 4:40:49
2024-07-30T01:08:50 >>> sys-devel/llvm-18.1.8-r1: 4:40:56
2024-07-30T05:49:46 >>> sys-devel/llvm-toolchain-symlinks-18: 15s
2024-07-30T05:50:01 >>> sys-devel/llvmgold-18: 16s
2024-07-30T05:50:17 >>> dev-util/spirv-llvm-translator-18.1.2: 8′13″
2024-07-30T05:58:30 >>> sys-devel/clang-18.1.8: 4:50:41
2024-07-30T10:49:11 >>> sys-devel/clang-toolchain-symlinks-18: 14s
... in this case gentoolkit was being held in a state between compilation and installation until llvm was ready.

I wonder if this is a bug in portage or just a small parsing bug in qlop..?

This is a "remote" machine on in my home, so I don't have access to in in next few days.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9822
Location: almost Mile High in the USA

PostPosted: Tue Jul 30, 2024 2:06 pm    Post subject: Reply with quote

Yeah I think this is due to running emerge --jobs and due to install ordering it chose to install it after llvm finished for whatever reason... I totally discount any build times in /var/log/emerge.log due to this if I do emerge --jobs ... at the very least, and yes this has happened, I've had emerge --jobs build qtwebengine and firefox at the same time. That's definitely going to hurt.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22618

PostPosted: Tue Jul 30, 2024 2:13 pm    Post subject: Reply with quote

In my opinion, this represents a design limitation in creating tools like qlop. Portage logs enough information to get this right in simple cases, but if you really want accurate data, then you need Portage to log the data in a way that does not require qlop to infer anything, and instead allows qlop to be a glorified grep + reformatting tool.
Back to top
View user's profile Send private message
eschwartz
Developer
Developer


Joined: 29 Oct 2023
Posts: 214

PostPosted: Tue Jul 30, 2024 3:56 pm    Post subject: Reply with quote

FEATURES=merge-wait is relevant here as well -- note the description: "it can be disabled in order to trade the possibility of random build failures for greater parallelism."

See also https://bugs.gentoo.org/663324

Of course, the "build qtwebengine and firefox at the same time" case is broadly speaking unsolvable since in such a scenario every package genuinely takes longer to build since they fail to get an exclusive lock on system resources.
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