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: 6849

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: 226
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: 226
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: 777
Location: usually offline

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: 909

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
edgar_uriel84
Guru
Guru


Joined: 21 Dec 2008
Posts: 473
Location: Tultitlan, México

PostPosted: Tue May 01, 2018 7:40 pm    Post subject: Reply with quote

It's funny

Code:
┌─ [4966][14:24:27][genomorro@genomorro-xps-15-9550][~]
└ᐅ qlist -I | xargs qlop -t | awk '{secs += $2} END { printf("%dh:%dm:%ds\n", secs / 3600, (secs % 3600) / 60, secs % 60); }'
7h:31m:19s
┌─ [4966][14:29:10][genomorro@genomorro-xps-15-9550][~]
└ᐅ qlist -I | xargs qlop -t | awk '{ if ($2 > 1800) printf("%s  %dd:%dh:%dm:%ds\n", $1, $2 / 86400, ($2 % 86400) / 3600, ($2 % 3600) / 60, $2 % 60); }'
libreoffice:  0d:1h:4m:54s
┌─ [4966][14:29:19][genomorro@genomorro-xps-15-9550][~]
└ᐅ uname -a
Linux genomorro-xps-15-9550 4.9.76-gentoo-r1 #1 SMP PREEMPT Mon Apr 2 01:56:45 CDT 2018 x86_64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz GenuineIntel GNU/Linux


I'm using DWM as WM.
_________________
Algún día habrá una persona mejor que yo, pero esa persona no eres tú ni ese momento es ahora.
Back to top
View user's profile Send private message
Nreal
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jan 2009
Posts: 128

PostPosted: Sat Jun 16, 2018 12:43 pm    Post subject: Reply with quote

Two of those bastards Intel(R) Xeon(R) CPU E5-2696 v3 @ 2.30GHz is together 72 threads, (36 actual cores)

Code:
qlist -I | xargs qlop -t | awk '{secs += $2} END { printf("%dh:%dm:%ds\n", secs / 3600, (secs % 3600) / 60, secs % 60); }'
1024819115206107h:1m:20s


Waiting for more ram as 16gt swaps with anything above -j30.. Its fast though :)

Code:
boxi /home/markus # uname -a
Linux boxi 4.17.1-gentoo #6 SMP PREEMPT Sat Jun 16 12:55:42 EEST 2018 x86_64 Intel(R) Xeon(R) CPU E5-2696 v3 @ 2.30GHz GenuineIntel GNU/Linux

processor   : 71
vendor_id   : GenuineIntel
cpu family   : 6
model      : 63
model name   : Intel(R) Xeon(R) CPU E5-2696 v3 @ 2.30GHz
stepping   : 2
microcode   : 0x3c
cpu MHz      : 2793.850
cache size   : 46080 KB
physical id   : 1
siblings   : 36
core id      : 27
cpu cores   : 18
apicid      : 119
initial apicid   : 119
fpu      : yes
fpu_exception   : yes
cpuid level   : 15
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti intel_ppin ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc dtherm ida arat pln pts
bugs      : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass
bogomips   : 4590.71
clflush size   : 64
cache_alignment   : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 226
Location: Brazil

PostPosted: Sat Jun 23, 2018 1:57 pm    Post subject: Reply with quote

I posted a bug report asking for add this functionality into qlop (app-portage/portage-utils) https://bugs.gentoo.org/658824
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
phelix
n00b
n00b


Joined: 28 Oct 2018
Posts: 2

PostPosted: Sun Oct 28, 2018 2:16 am    Post subject: Reply with quote

Hi there,

have you tried genlop?

Code:

$ emerge --pretend --emptytree @world | genlop --pretend
[...]
Estimated update time: 5 hours, 39 minutes.


cheers

-- edited for formatting
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