lyallp wrote:Still building.... sigh.... now I remember why I dropped chromium.
Still, my firefox is broken, despite my best efforts, so other than konqueror...
32G RAM, of which 24G is devoted to /tmp (tmpfs) and portage configured to use /tmp, not /var/portage/tmp.Code: Select all
# uname -a Linux Lyalls-PC 6.6.21-gentoo #14 SMP PREEMPT_DYNAMIC Fri May 3 19:07:10 ACST 2024 x86_64 Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz GenuineIntel GNU/Linux root@Lyalls-PC package.use # genlop -cte Currently merging 3 out of 3 * www-client/chromium-124.0.6367.60 current merge time: 23 hours and 54 seconds. ETA: unknown. root@Lyalls-PC package.use #
I figure RAM disk would be faster than SSD...
What you're doing does not make sense. You're running 8 cores (or rather 8 threads as you CPU has 4 cores) with 8GB of RAM. And that makes no sense even more given that you have 32GB RAM but wasting 24 of them on a tmpfs. Do you realize what insane amount of swapping is taking place?lyallp wrote:1 day, 7 hours and counting using all 8 cores.
35634 source files compiled out of 59628
Sheesh, I am only just over half way!

Code: Select all
root@Lyalls-PC temp
# free -m
total used free shared buff/cache available
Mem: 32036 7631 1272 17030 23132 6906
Swap: 32505 1669 30836
root@Lyalls-PC temp
# htop
0[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%] 4[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%]
1[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%] 5[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%]
2[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%] 6[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%]
3[|||||||||||||| 16.7%] 7[|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| 83.3%]
Mem[||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||24.2G/31.3G] Tasks: 159, 444 thr, 173 kthr; 8 running
Swp[||||| 1.59G/31.7G] Load average: 6.16 6.35 6.34
Uptime: 1 day, 08:59:56
[Main] [I/O]
PID USER PRI NI VIRT RES SHR S CPU%▽MEM% TIME+ Command
4284 portage 20 0 675M 453M 148M R 94.1 1.4 1:53.38 x86_64-pc-linux-gnu-clang++ -MD -MF obj/components/feedback/feedback/feedback_uploader.o.d -DUSE_UDEV -DUSE_
4609 portage 20 0 467M 243M 141M R 78.4 0.8 0:30.49 x86_64-pc-linux-gnu-clang++ -MD -MF obj/components/history/core/browser/browser/expire_history_backend.o.d -
4652 portage 20 0 452M 226M 140M R 78.4 0.7 0:24.02 x86_64-pc-linux-gnu-clang++ -MD -MF obj/components/history/core/browser/browser/features.o.d -DUSE_UDEV -DUS
4676 portage 20 0 426M 200M 138M R 78.4 0.6 0:15.85 x86_64-pc-linux-gnu-clang++ -MD -MF obj/components/history/core/browser/browser/history_backend.o.d -DUSE_UD
4677 portage 20 0 419M 193M 138M R 78.4 0.6 0:15.15 x86_64-pc-linux-gnu-clang++ -MD -MF obj/components/history/core/browser/browser/history_constants.o.d -DUSE_
4720 portage 20 0 378M 151M 133M R 78.4 0.5 0:02.05 x86_64-pc-linux-gnu-clang++ -MD -MF obj/components/history/core/browser/browser/history_database.o.d -DUSE_U
4749 root 20 0 9348 5504 3456 R 78.4 0.0 0:00.10 htop -n 1
1 root 20 0 2384 1504 1504 S 0.0 0.0 0:01.00 init [3]
That machine should finish within less than 11 hours if Turbo Boost is not disabled.lyallp wrote:(...)Code: Select all
Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz GenuineIntel GNU/Linux (...) current merge time: 23 hours and 54 seconds.
32G RAM(...)


It takes my Atom around 120 hours to do its yearly updates...so a long time is relative.lyallp wrote:Just an fyi: 2/3 through, 44 hours down, looks like 20 hours to go.
It totally depends on how your using your RAM, can't say swap is always bad. If you're using RAM as a buffer (like tmpfs) and it swaps out, swap actually helps significantly. 1GB of swap is not a big deal.adcr wrote:IMO no matter how little swap use there is, it'll still be a bottleneck. Just try filling up your memory with whatever and opening wikipedia in a web browser. There'll be no more than 1G of swap in use, yet the system will be unusable.
Code: Select all
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 43 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 32
On-line CPU(s) list: 0-31
Vendor ID: AuthenticAMD
BIOS Vendor ID: Advanced Micro Devices, Inc.
Model name: AMD Ryzen 9 3950X 16-Core Processor
BIOS Model name: AMD Ryzen 9 3950X 16-Core Processor Unknow
n CPU @ 3.5GHz
BIOS CPU family: 107
CPU family: 23
Model: 113
Thread(s) per core: 2
Core(s) per socket: 16
Socket(s): 1
Stepping: 0
Frequency boost: enabled
CPU(s) scaling MHz: 48%
CPU max MHz: 4761.2300
CPU min MHz: 2200.0000
BogoMIPS: 7002.61
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge m
ca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall
nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep
_good nopl nonstop_tsc cpuid extd_apicid aperfmperf ra
pl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2
movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_leg
acy svm extapic cr8_legacy abm sse4a misalignsse 3dnow
prefetch osvw ibs skinit wdt tce topoext perfctr_core
perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3
hw_pstate ssbd mba ibpb stibp vmmcall fsgsbase bmi1 av
x2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb
sha_ni xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc
cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr r
dpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_sca
le vmcb_clean flushbyasid decodeassists pausefilter pf
threshold avic v_vmsave_vmload vgif v_spec_ctrl umip r
dpid overflow_recov succor smca sev sev_es
Virtualization features:
Virtualization: AMD-V
Caches (sum of all):
L1d: 512 KiB (16 instances)
L1i: 512 KiB (16 instances)
L2: 8 MiB (16 instances)
L3: 64 MiB (4 instances)
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0-31
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Reg file data sampling: Not affected
Retbleed: Mitigation; untrained return thunk; SMT enabled with STIBP protection
Spec rstack overflow: Mitigation; Safe RET
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP always -on; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
Srbds: Not affected
Tsx async abort: Not affected
Code: Select all
COMMON_FLAGS="-O2 -march=znver2 -mtune=znver2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j32"
FEATURES="-preserve-libs"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
LINGUAS="en"
INPUT_DEVISES="libinput"
VIDEO_CARDS="amdgpu radeonsi"
SANE_BACKENDS="hp"
DESKTOPUSE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib "
USE="${DESKTOPUSE}-kde -gnome -qt5 -ipv6 -bluetooth -systemd -multilib lm_sensors alsa"
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"
GRUB_PLATFORMS="pc"Code: Select all
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 11.17 s (backtrack: 0/20).
[ebuild N ] acct-group/pipewire-0-r2::gentoo 0 KiB
[ebuild R ] media-libs/libpng-1.6.43:0/16::gentoo USE="-apng* -static-libs -test" CPU_FLAGS_X86="sse" 0 KiB
[ebuild N ] media-libs/openh264-2.4.1:0/7::gentoo USE="plugin -test -utils" CPU_FLAGS_X86="avx2" 0 KiB
[ebuild N ] net-libs/nodejs-20.12.1:0/20::gentoo USE="icu inspector npm snapshot ssl system-icu system-ssl -corepack -debug -doc (-lto) -pax-kernel -test" CPU_FLAGS_X86="sse2" 0 KiB
[ebuild N ] dev-util/wayland-scanner-1.22.0::gentoo 225 KiB
[ebuild N ] dev-libs/wayland-1.22.0::gentoo USE="-doc -test" 0 KiB
[ebuild N ] dev-libs/wayland-protocols-1.33::gentoo USE="-test" 90 KiB
[ebuild N ] media-libs/libva-2.21.0:0/2::gentoo USE="X wayland" 0 KiB
[ebuild N ] dev-build/gn-0.2157::gentoo 731 KiB
[ebuild R ] media-libs/mesa-24.0.4::gentoo USE="X gles2 llvm (opengl) proprietary-codecs vulkan wayland* zstd -d3d9 -debug -gles1 -lm-sensors -opencl -osmesa (-selinux) -test -unwind -vaapi -valgrind -vdpau -vulkan-overlay -xa (-zink)" CPU_FLAGS_X86="sse2" LLVM_SLOT="17 -15 -16" VIDEO_CARDS="radeonsi -d3d12 (-freedreno) -intel -lavapipe (-lima) -nouveau (-panfrost) -r300 -r600 -radeon (-v3d) (-vc4) -virgl (-vivante) -vmware" 0 KiB
[ebuild R ] x11-libs/gtk+-3.24.41:3::gentoo USE="X cups examples gtk-doc introspection wayland* (-aqua) -broadway -cloudproviders -colord -sysprof -test -vim-syntax -xinerama" 0 KiB
[ebuild R ] dev-lang/rust-1.77.1:stable/1.77::gentoo USE="profiler* rustfmt (-big-endian) -clippy -debug -dist -doc (-llvm-libunwind) -lto (-miri) (-nightly) (-parallel-compiler) -rust-analyzer -rust-src (-system-bootstrap) (-system-llvm) -test -verify-sig -wasm" CPU_FLAGS_X86="sse2" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARC -ARM -AVR -BPF -CSKY -DirectX -Hexagon -Lanai -LoongArch -M68k -MSP430 -Mips -NVPTX -PowerPC -RISCV -SPIRV -Sparc -SystemZ -VE -WebAssembly -XCore -Xtensa" 0 KiB
[ebuild R ] virtual/rust-1.77.1:0/llvm-17::gentoo USE="profiler* -rustfmt" 0 KiB
[ebuild N ] media-video/pipewire-1.0.4:0/0.4::gentoo USE="X dbus readline ssl -bluetooth -doc -echo-cancel -extra -ffmpeg -flatpak -gsettings -gstreamer -ieee1394 -jack-client -jack-sdk -liblc3 -lv2 -man -modemmanager -pipewire-alsa -roc (-selinux) -sound-server (-system-service) -systemd -test -v4l -zeroconf" 1,692 KiB
[ebuild N ] media-video/wireplumber-0.4.17-r1:0/0.4::gentoo USE="elogind (-system-service) -systemd -test" LUA_SINGLE_TARGET="lua5-4 -lua5-3" 323 KiB
[ebuild N ] sys-devel/lld-17.0.6:17::gentoo USE="zstd -debug -test -verify-sig" 0 KiB
[ebuild N ] sys-devel/lld-toolchain-symlinks-17:17::gentoo USE="native-symlinks -multilib-symlinks" 0 KiB
[ebuild N ] www-client/chromium-124.0.6367.60:0/stable::gentoo USE="X cups hangouts official proprietary-codecs screencast system-harfbuzz system-icu system-png system-toolchain system-zstd vaapi wayland widevine -bindist -custom-cflags -debug -ffmpeg-chromium -gtk4 (-headless) -kerberos (-libcxx) (-lto) -pax-kernel (-pgo) -pulseaudio -qt5 -qt6 (-selinux)" L10N="af am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr sv sw ta te th tr uk ur vi zh-CN zh-TW" 3,352,285 KiB
Total: 18 packages (13 new, 5 reinstalls), Size of downloads: 3,355,343 KiB
The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by www-client/chromium-124.0.6367.60::gentoo[system-png]
# required by chromium (argument)
>=media-libs/libpng-1.6.43 -apng
# required by www-client/chromium-124.0.6367.60::gentoo[vaapi]
# required by chromium (argument)
>=media-libs/libva-2.21.0 wayland
# required by www-client/chromium-124.0.6367.60::gentoo
# required by chromium (argument)
>=media-libs/mesa-24.0.4 wayland
# required by www-client/chromium-124.0.6367.60::gentoo[-gtk4]
# required by chromium (argument)
>=x11-libs/gtk+-3.24.41 wayland
# required by www-client/chromium-124.0.6367.60::gentoo
# required by chromium (argument)
>=net-libs/nodejs-20.12.1 inspector
# required by www-client/chromium-124.0.6367.60::gentoo[system-toolchain]
# required by chromium (argument)
>=virtual/rust-1.77.1 profiler
# required by virtual/rust-1.77.1::gentoo
# required by www-client/chromium-124.0.6367.60::gentoo[system-toolchain]
# required by chromium (argument)
>=dev-lang/rust-1.77.1 profiler
Would you like to add these changes to your config files? [Yes/No]Code: Select all
qlop
2024-05-06T15:47:47 >>> acct-group/pipewire: 9s
2024-05-06T15:47:56 >>> media-libs/libpng: 13s
2024-05-06T15:48:09 >>> media-libs/openh264: 18s
2024-05-06T15:48:27 >>> sys-devel/clang-common: 32s
2024-05-06T15:48:59 >>> sys-devel/clang: 10′03″ (Max RAM used: 29GB)
2024-05-06T15:59:02 >>> sys-devel/clang-toolchain-symlinks: 12s
2024-05-06T15:59:14 >>> net-libs/nodejs: 7′32″ (Max RAM used: 21GB)
2024-05-06T16:06:46 >>> dev-util/wayland-scanner: 8s
2024-05-06T16:06:54 >>> dev-libs/wayland: 9s
2024-05-06T16:07:03 >>> dev-libs/wayland-protocols: 7s
2024-05-06T16:07:10 >>> media-libs/libva: 10s
2024-05-06T16:07:20 >>> dev-build/gn: 22s
2024-05-06T16:07:42 >>> media-libs/mesa: 1′05″
2024-05-06T16:08:47 >>> x11-libs/gtk+: 3′09″
2024-05-06T16:11:56 >>> sys-libs/compiler-rt: 26s
2024-05-06T16:12:22 >>> sys-libs/compiler-rt-sanitizers: 54s
2024-05-06T16:13:16 >>> sys-libs/libomp: 24s
2024-05-06T16:13:40 >>> sys-devel/clang-runtime: 5s
2024-05-06T16:13:45 >>> dev-lang/rust: 17′11″ (Max RAM used 23GB)
2024-05-06T16:30:56 >>> virtual/rust: 5s
2024-05-06T16:31:01 >>> media-video/pipewire: 27s
2024-05-06T16:31:28 >>> media-video/wireplumber: 11s
2024-05-06T16:31:39 >>> sys-devel/lld: 44s
2024-05-06T16:32:23 >>> sys-devel/lld-toolchain-symlinks: 5s
2024-05-06T16:32:28 >>> www-client/chromium: 2:08:54 (Max RAM used: 29GB)The stop building chromium and stop complaining about it. It's that simple.lyallp wrote:Just an fyi: 2/3 through, 44 hours down, looks like 20 hours to go.
I am just agahst that it takes so long to build one program...
You're under the influence of some really unfounded beliefs and you don't want to let go of them. That's the root cause of your problems.lyallp wrote:I can't reduce my tmpfs because chromium requires 20G temp, and writing to disk is slower than memory.
And how about you butt out, I have gotten over how long it takes and simply reporting, to those that are interested, how long it takes.logrusx wrote:The stop building chromium and stop complaining about it. It's that simple.lyallp wrote:Just an fyi: 2/3 through, 44 hours down, looks like 20 hours to go.
I am just agahst that it takes so long to build one program...
You're under the influence of some really unfounded beliefs and you don't want to let go of them. That's the root cause of your problems.lyallp wrote:I can't reduce my tmpfs because chromium requires 20G temp, and writing to disk is slower than memory.
Best Regards,
Georgi
Your reported compile times feel way too long for your system specs.lyallp wrote:Just an fyi: 2/3 through, 44 hours down, looks like 20 hours to go.
I am just agahst that it takes so long to build one program, when I can build my entire system with --emptytree in 24 hours (not including chromium, firefox and thunderbird). Nearly 50,000 source files, 14 million lines of code, including tests. How does someone wrap their minds around that sort of thing?
I can't reduce my tmpfs because chromium requires 20G temp, and writing to disk is slower than memory. It's been a while, but I don't think I can add more RAM to my motherboard.
So, bottom line, unless I upgrade, it's just something I will have to put up with.

Hello and welcome back to Gentoo! Indeed the binhost has been very useful.Iguana8649 wrote:Jesus H Christ!
Thinking of returning to Gentoo and those build times make me happy we now have binary packages! (fear not, I will still compile the whole system including Chromium, for teh rice, but first package install will be binary followed by a `emerge -e @world` during the first possible weekend)
Code: Select all
www-client/chromium-124.0.6367.60::gentoo was built with the following:
USE="X cups custom-cflags hangouts official proprietary-codecs pulseaudio qt5 screencast system-harfbuzz system-icu system-toolchain system-zstd vaapi wayland widevine -bindist -debug -ffmpeg-chromium -gtk4 (-headless) -kerberos (-libcxx) (-lto) -pax-kernel (-pgo) -qt6 (-selinux) -system-png" ABI_X86="(64)"Code: Select all
COMMON_FLAGS_TMP="-O2 -pipe ${COMP_CPU_CFLAGS} -mfpmath=both -fomit-frame-pointer -DNDEBUG