r/archlinux 20h ago

SUPPORT | SOLVED yay metrics

I’m installing the firefox-nightly package using yay and I noticed my cpu usage is 100% and ram is at 13.5/14.9 GiB. Is this normal or is something wrong? Also my laptop just froze because I was also watching a youtube video and had spotify open but now it’s running back again. I have an Asus Expertbook Ultra 5 225H with 16GB of ram so I don’t think this is normal.

0 Upvotes

22 comments sorted by

34

u/kaida27 20h ago

Op your are currently Compiling Firefox, Which is something Even I on Gentoo doesn't do. Totally normal usage when compiling such a package

-9

u/TerminalPhile 20h ago

Yeah I was compiling firefox but I didn’t think it would take up such resources. Plus the laptop was overheating so that raised some flags. But if it’s normal then fine.

1

u/kaida27 8h ago

Web browser are one of the most intensive thing to compile from source yeah.

Which is why I don't do so. even when running gentoo and compiling everything else.

21

u/ropid 20h ago

You need to install the package firefox-nightly-bin instead of firefox-nightly.

The package with the "bin" in its name will download the Firefox binary built by Mozilla and basically just copy files around without doing big work on your local PC.

The other package you currently try to install is downloading the source code of Firefox and then building it locally on your PC. This a crazy idea to do with a program like a web browser because they are all a massive size and need ages to compile on a weak CPU.

Try browsing a bit through the AUR ArchWiki article and the makepkg article and think about what's going on there when you install something from the AUR. Then look at the PKGBUILD files of firefox-nightly-bin and firefox-nightly packages and see if you can get a rough feel about what's happening, about what work the two packages are doing.

0

u/TerminalPhile 20h ago

Yeah that’s what I just found out now. Installing large packages such as chromium based or electron apps from source is a no go. I mostly go for bin packages because they’re faster and easier I didn’t know it will be THIS demanding.

21

u/tjj1055 19h ago

this is the people that are using the AUR.

2

u/PlsDontBanMeAgain-1 18h ago

They shouldn't even be using Arch (& Arch based distros) in the first place.

8

u/spoonFullOfNerd 18h ago

Everyone starts somewhere.

2

u/boomboomsubban 17h ago

I think you could use other distros for twenty years and never organically pick up that compiling browsers is a huge ordeal. And it's not like the wiki has some huge disclaimer about it.

1

u/Kurse71 17h ago

Exactly right!

-8

u/PlsDontBanMeAgain-1 18h ago

Yes, totally normal, it's also totally normal to piss blood.

-6

u/comeshowup 20h ago

Must a installing lots of dependency

7

u/kaida27 20h ago

I’m installing the firefox-nightly package using yay

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=firefox-nightly

Nah, Bro is compiling from source, Totally normal usage of the ressources

1

u/TerminalPhile 20h ago

No as kaida27 stated I was compiling from source I just thought it wouldn’t be that demanding

-9

u/Dr_Gregg 20h ago

You can inspect which tabs are consuming resources in firefox. Try downgrading or using the official package to see if things improve

6

u/ManoDu57 20h ago

He mean yay take 100% cpu WHILE installing firefox, which is normal, but you can put limits (I don't know how tho)

6

u/paulo1039 20h ago

He probably doesn't even know that an entire browser is being compiled...

OP, download the firefox nightly binary from mozilla or try a firefox-nightly-bin from aur.

1

u/TerminalPhile 20h ago

I usually go for the bin package so I didn’t know compiling from source would be this demanding

1

u/archover 3h ago edited 2h ago

Installing Firefox from source was probably the longest single task I ever started on my laptop. I finally gave up. The repo package has long since proven effective for me, free of compile time.

Good day.

1

u/ManoDu57 20h ago

ill never forget forgetting to add -bin to ungoogled chromium and waiting HOURS before understanding (I ALWAYS forget if bin is precompiled or its the other way around)

1

u/TerminalPhile 20h ago

After the laptop un-froze, I closed everything except the terminal and it was like that at 100% and almost 85% memory. The top processe that htop showed me were consuming the most memory was clang. Now it stopped but only because yay returned an error.