Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 916707

Summary: app-portage/portage-utils-0.96.1 qlop wrong about parallel jobs
Product: Gentoo Linux Reporter: Massimo Burcheri <burcheri.massimo+bugs-gentoo>
Component: Current packagesAssignee: Fabian Groffen <grobian>
Status: UNCONFIRMED ---    
Severity: normal CC: gentoo, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=916955
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge.log

Description Massimo Burcheri 2023-11-02 09:50:03 UTC
Running parallel jobs:
emerge -auUDtv world --keep-going --with-bdeps\=y --jobs\=8 --load-average\=25

I see
>>> Jobs: 12 of 14 complete, 2 running              Load avg: 16.0, 18.9, 19.3

So 2 jobs running in parallel.

Asking genlop about the jobs:

genlop -c
using logfile /var/log/emerge.log
using logfile /var/log/emerge.log.1.bz2

 Currently merging 12 out of 14

 * net-libs/webkit-gtk-2.42.1-r600 

       current merge time: 2 hours, 9 minutes and 36 seconds.
       ETA: 2 hours, 38 minutes and 23 seconds.

 Currently merging 12 out of 14

 * net-libs/webkit-gtk-2.42.1-r600 

       current merge time: 2 hours, 9 minutes and 36 seconds.
       ETA: 2 hours, 38 minutes and 8 seconds.

Asking qlop about the jobs:

qlop -vr
2023-11-02T07:41:50 >>> net-libs/webkit-gtk-2.42.1-r600... (12 of 14) ETA: unknown

qlop only reports 1 running job, while genlop seems to show 2 duplicate jobs about net-libs/webkit-gtk-2.42.1-r600 which would be bad.

As there is no real emerge monitor I checked
watch -d find /var/tmp/portage/ -mmin -1
and found
/var/tmp/portage/net-libs/webkit-gtk-2.42.1-r410...
and
/var/tmp/portage/net-libs/webkit-gtk-2.42.1-r600...

So it rather seems that emerge is working on 2 different slots and both qlop and genlop are wrong.

Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2023-11-06 05:08:01 UTC
qlop an genlop are contained in separate packages maintained by different people. Please file separate bugs for issues with these tools.
Comment 2 Massimo Burcheri 2023-11-06 09:11:50 UTC
Ok. This bug should apply only for qlop from app-portage/portage-utils, while the new separate bug 916955 might apply for app-portage/genlop.
Comment 3 Fabian Groffen gentoo-dev 2023-11-06 10:02:45 UTC
not sure if this is fixable, because portage's logging is not allowing to see sessions

In any case, can you attach your logfile?
Comment 4 Massimo Burcheri 2023-11-06 10:36:55 UTC
Created attachment 874146 [details]
emerge.log

I can, if that helps.