Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 441672 - emerge should use a timer
Summary: emerge should use a timer
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-04 00:46 UTC by Alexander Berntsen (RETIRED)
Modified: 2018-03-24 21:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Berntsen (RETIRED) gentoo-dev 2012-11-04 00:46:02 UTC
Problem: hibernate-ram, ^Z, and other things that temporarily pauses emerge breaks the logged merge time.

$ genlop -t firefox
 * www-client/firefox

     Sun Oct 21 03:45:15 2012 >>> www-client/firefox-10.0.7
       merge time: 21 minutes and 5 seconds.

     Wed Oct 24 12:24:57 2012 >>> www-client/firefox-10.0.9
       merge time: 22 minutes and 6 seconds.

     Wed Oct 24 13:32:04 2012 >>> www-client/firefox-10.0.9
       merge time: 20 minutes and 3 seconds.

     Sat Nov  3 22:45:56 2012 >>> www-client/firefox-10.0.10
       merge time: 7 hours, 8 minutes and 18 seconds.

Solution: use a timer that is paused along with emerge.
Comment 1 Zac Medico gentoo-dev 2012-11-04 21:25:56 UTC
We'd have to extend the format of /var/log/emerge.log to indicate the relationship between clock time and actual run time, and then tools like genlop would have to be able to interpret the extended log format.

I really don't think that it's worth the effort, because people typically don't need to sigstop/sigcontinue builds like this.
Comment 2 Alexander Berntsen (RETIRED) gentoo-dev 2012-11-04 21:48:59 UTC
(In reply to comment #1)
> people typically don't need to sigstop/sigcontinue builds like this.

[citation needed]? Because all of the people I know and talk to at school that run Gentoo Linux (granted, there's only four of us, but still) actually do this. being laptop users.
Comment 3 Zac Medico gentoo-dev 2012-11-04 21:55:25 UTC
Okay, maybe it is a common practice for some people. I did it a couple of times in the past, but lately I just build an image on my desktop system and sync it to my laptop(s).

For the log extension, I guess we could simply handle SIGCONT and add a line to the log to indicate that emerge has resumed. Then tools like genlop could subtract the time between that log entry and the previous one.
Comment 4 Alexander Berntsen (RETIRED) gentoo-dev 2012-11-04 21:56:42 UTC
(In reply to comment #3)
> For the log extension, I guess we could simply handle SIGCONT and add a line
> to the log to indicate that emerge has resumed. Then tools like genlop could
> subtract the time between that log entry and the previous one.

I suppose that would work just as well.