Why is Chromium 65GB big when built from source?

5,821 views
Skip to first unread message

Marko J

unread,
Nov 21, 2015, 11:51:41 AM11/21/15
to Chromium-discuss
So, why does Chromium take up such a huge amount of space when built from source? Yet when you download and install either Chrome or Chromium, they are not much bigger than 200 MB! I mean, that is a HUGE discrepancy! Do I really need to dedicate 65GB on my hard drive to a web browser (if I want to build Chromium from source)? Or is there a way to remove some unnecessary files after building?

Ramesh Srigiriraju

unread,
Nov 21, 2015, 8:48:31 PM11/21/15
to mark...@gmail.com, Chromium-discuss
Production builds of Chrome and Chromium are probably using compiler flags to optimize the size of the executable.  I'd have to know more about your build process to find out why it's taking up 65 GB.

On Sat, Nov 21, 2015 at 11:51 AM, Marko J <mark...@gmail.com> wrote:
So, why does Chromium take up such a huge amount of space when built from source? Yet when you download and install either Chrome or Chromium, they are not much bigger than 200 MB! I mean, that is a HUGE discrepancy! Do I really need to dedicate 65GB on my hard drive to a web browser (if I want to build Chromium from source)? Or is there a way to remove some unnecessary files after building?

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

Philip Rogers

unread,
Nov 21, 2015, 9:13:50 PM11/21/15
to ramesh.sr...@gmail.com, mark...@gmail.com, Chromium-discuss
Chromium is a large project, possibly the largest public git repository, and it has many dependencies as well. Other large projects like Firefox are also in 10GB range.

To run Chromium, you only need the binary and a few extra files from out/Release (which files depends on your OS). If you don't plan on building again, you can delete everything else.

Jonathan Garbee

unread,
Nov 21, 2015, 10:44:51 PM11/21/15
to p...@google.com, ramesh.sr...@gmail.com, mark...@gmail.com, Chromium-discuss

Also, do a shallow clone without history. You will save plenty of gigabytes in that alone.

Message has been deleted

Marko J

unread,
Nov 22, 2015, 5:25:29 AM11/22/15
to Chromium-discuss, ramesh.sr...@gmail.com, mark...@gmail.com, p...@chromium.org
Is there a way to know or find out which files do I need? I'm using Windows 7 x64.

PhistucK

unread,
Nov 22, 2015, 7:12:55 AM11/22/15
to mark...@gmail.com, Chromium-discuss, ramesh.sr...@gmail.com, Philip Rogers

Marko J

unread,
Nov 22, 2015, 7:55:42 AM11/22/15
to Chromium-discuss, mark...@gmail.com, ramesh.sr...@gmail.com, p...@chromium.org
Thank you. I'm going to try building Chromium on an external hard drive, and then copying only those files from that list to the internal hard drive in order to run the browser.

Christian Biesinger

unread,
Nov 22, 2015, 10:54:59 AM11/22/15
to mark...@gmail.com, Chromium-discuss

By the way, did you build out/Release of out/Debug? The latter uses a lot more disk space (and is also slower), so in your case I'd suggest doing the former.

-Christian

On Nov 21, 2015 11:51 AM, "Marko J" <mark...@gmail.com> wrote:
So, why does Chromium take up such a huge amount of space when built from source? Yet when you download and install either Chrome or Chromium, they are not much bigger than 200 MB! I mean, that is a HUGE discrepancy! Do I really need to dedicate 65GB on my hard drive to a web browser (if I want to build Chromium from source)? Or is there a way to remove some unnecessary files after building?

--

Marko J

unread,
Nov 25, 2015, 6:24:25 AM11/25/15
to Chromium-discuss
I'm happy to report that I was finally able to finish the building process successfully! I did the shallow clone and built the Release version, as you have suggested, but the final "out" folder still does take up slightly more than 65GB in the end. But I guess I can live with that, since I used an external hard drive, and just installed the browser using mini_installer.

Anyway, thank you all for the advice!

P.S.: How do I update the browser? My thinking is, I have to do "gclient sync" and then build again, whereby it will only be necessary to build components that are different from the previous/current version. Is that correct?

Christian Biesinger

unread,
Nov 25, 2015, 10:17:50 AM11/25/15
to mark...@gmail.com, Chromium-discuss
To update you need to do:

git pull --rebase
gclient sync
ninja -C out/Release

It does only build components that are different, but in practice
every few weeks the entire thing does have to be rebuilt, so that
doesn't necessarily helps much in your situation.

-Christian
Message has been deleted

Marko J

unread,
Dec 4, 2015, 6:47:19 PM12/4/15
to Chromium-discuss
Ok, today I wanted to update Chromium that I built on Nov 25, but upon running "gclient sync" and then "ninja -C out\Release_x64", I got the message "no work to do". Is that expected?

Philip Rogers

unread,
Dec 4, 2015, 6:48:42 PM12/4/15
to mark...@gmail.com, Chromium-discuss
No work to do means you didn't change any source files.

The normal way up update your checkout to tip of tree is:
git checkout origin/master
git pull origin master
gclient sync
ninja -C out/Release chrome

On Fri, Dec 4, 2015 at 3:47 PM, Marko J <mark...@gmail.com> wrote:
Ok, today I wanted to update Chromium that I built on Nov 25, but upon running "gclient sync" and then "ninja -C out\Release_x64", I got the message "no work to do". Is that expected?
--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
    http://groups.google.com/a/chromium.org/group/chromium-discuss

Reply all
Reply to author
Forward
0 new messages