Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Calculate your world compile time
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
lordoftheworld
n00b
n00b


Joined: 16 Jun 2004
Posts: 10

PostPosted: Tue Apr 10, 2018 3:47 am    Post subject: Reply with quote

Great info, I added a sort to see which packages might be taking up more time:

qlist -I | xargs qlop -t |sort -t" " -rnk2
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6501

PostPosted: Tue Apr 10, 2018 12:35 pm    Post subject: Reply with quote

Code:
 qlist -I | xargs qlop -t | awk '{ if ($2 > 5400) printf("%s  %dd:%dh:%dm:%ds\n", $1, $2 / 86400, $2 / 3600, ($2 % 3600) / 60, $2 % 60); }'
gzip:  1d:26h:52m:15s
perl:  0d:7h:48m:44s
libxslt:  0d:1h:41m:7s
gimp:  0d:6h:0m:47s
libpng:  0d:8h:18m:2s
wireshark:  0d:5h:19m:57s
diffutils:  4d:114h:42m:38s
findutils:  3d:81h:57m:18s
gawk:  0d:21h:10m:11s
grep:  0d:19h:58m:8s
kbd:  4d:110h:17m:48s
fuse:  14233598822306d:341606371735361h:55m:12s
e2fsprogs-libs:  0d:18h:23m:13s
perl-version:  0d:1h:50m:40s
lynx:  1d:25h:54m:59s

yep something is weird, thanks for the update
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 225
Location: Brazil

PostPosted: Tue Apr 10, 2018 5:36 pm    Post subject: Reply with quote

krinn wrote:
Code:
 qlist -I | xargs qlop -t | awk '{ if ($2 > 5400) printf("%s  %dd:%dh:%dm:%ds\n", $1, $2 / 86400, $2 / 3600, ($2 % 3600) / 60, $2 % 60); }'
gzip:  1d:26h:52m:15s
perl:  0d:7h:48m:44s
libxslt:  0d:1h:41m:7s
gimp:  0d:6h:0m:47s
libpng:  0d:8h:18m:2s
wireshark:  0d:5h:19m:57s
diffutils:  4d:114h:42m:38s
findutils:  3d:81h:57m:18s
gawk:  0d:21h:10m:11s
grep:  0d:19h:58m:8s
kbd:  4d:110h:17m:48s
fuse:  14233598822306d:341606371735361h:55m:12s
e2fsprogs-libs:  0d:18h:23m:13s
perl-version:  0d:1h:50m:40s
lynx:  1d:25h:54m:59s

yep something is weird, thanks for the update
Thanks for pointing out my mistake krinn, there was really an error. Since the format of the output from this command is d:h:m:s hours should be always less than 24 (remainder from 86400 seconds division), like minutes (remainder from 3600 seconds division) and seconds (remainder from 60 seconds division) are less than 60. $2 / 3600 should be ($2 % 86400) / 3600

I updated again the first post.
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 225
Location: Brazil

PostPosted: Tue Apr 10, 2018 6:58 pm    Post subject: Reply with quote

<3 wrote:
can we make an ebuild of this to put in portage or add this to gentoolkit?
I think it would be suitable for qlop from q applets.

I can open a bug report asking for this feature if people want to.
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 663

PostPosted: Fri Apr 13, 2018 10:18 pm    Post subject: Re: [TIP] Calculate your world compile time Reply with quote

rudregues wrote:
EDIT2: Mitigating/troubleshooting the outlier problem. People with absurd build times can use two commands to adapt the situation.

1) Calculating total sum excluding outliers defined by the user. I want everything bigger than 5400 seconds (1h30min) to be removed from calculation


Why would you want to remove bigger packages? Those are the ones which matter for this purpose.

Something still doesn't look right :?:
Code:
$ qlist -I | xargs qlop -t | awk '{ if ($2 > 5400) printf("%s  %dd:%dh:%dm:%ds\n", $1, $2 / 86400, ($2 % 86400) / 3600, ($2 % 3600) / 60, $2 % 60); }'
sudo:  1d:18h:35m:44s
libreoffice:  0d:12h:38m:34s
libnl:  0d:1h:56m:27s
libpcre:  0d:1h:46m:3s
qtdbus:  0d:1h:51m:35s
qtprintsupport:  0d:2h:42m:36s
qtwebengine:  0d:19h:4m:1s
qtwebkit:  6d:18h:9m:2s
qtxmlpatterns:  0d:2h:0m:40s
terminus-font:  1d:13h:15m:10s
opus:  0d:2h:22m:54s
ffmpeg:  0d:10h:3m:37s
libpcap:  6d:2h:7m:37s
busybox:  0d:2h:4m:8s
man-db:  0d:8h:59m:9s
man-pages:  0d:1h:47m:35s
gcc:  0d:3h:46m:6s
llvm:  0d:2h:16m:34s
gentoo-sources:  0d:16h:49m:9s
kergen:  4d:3h:17m:40s
e2fsprogs-libs:  0d:2h:11m:54s
package-manager:  1d:22h:54m:13s
service-manager:  1d:22h:31m:27s
ssh:  1d:22h:50m:52s
firefox:  0d:8h:38m:9s
adwaita-icon-theme:  0d:3h:51m:9s

_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Back to top
View user's profile Send private message
<3
l33t
l33t


Joined: 21 Oct 2004
Posts: 886

PostPosted: Sat Apr 21, 2018 8:05 am    Post subject: Reply with quote

rudregues wrote:
<3 wrote:
can we make an ebuild of this to put in portage or add this to gentoolkit?
I think it would be suitable for qlop from q applets.

I can open a bug report asking for this feature if people want to.


that would be great
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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