Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How much RAM do I need to emerge www-client/chromium
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1631
Location: /mnt/Gentoo/Europe

PostPosted: Mon Oct 28, 2013 9:45 am    Post subject: How much RAM do I need to emerge www-client/chromium Reply with quote

Hi,

I have got a laptop with i5 and 8GB ram. When I compile www-client/chromium, at the last stage, my system need apart of 8GB ram also about 2-3GB swap, and this makes my system extremely slowly and unusable till compilations end. Is this usual behavior or I need to do something with settings?

Its strange than simply emerge chromium is much more demanding for system than eg. edititng complicated project with full HD videos in kdenlives, which takes only 4-6GB ram.

This problem is only for chromuim, there is no such problem for eg. libre-office.
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Mon Oct 28, 2013 11:43 am    Post subject: Reply with quote

Strange... I've a 4GB notebook and don't use swap. Compiled chromium with no compilation problems.
You can try disable your swap before emerging chromium.
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
keet
Guru
Guru


Joined: 09 Sep 2008
Posts: 567

PostPosted: Tue Oct 29, 2013 1:10 am    Post subject: Reply with quote

How many threads are you setting in MAKEOPTS? I expect that more simultaneous jobs would require more memory. I am using a computer with 1GB of R.A.M., so I will try to install Chromium tonight and tell you how it goes.
Back to top
View user's profile Send private message
schorsch_76
Guru
Guru


Joined: 19 Jun 2012
Posts: 450

PostPosted: Tue Oct 29, 2013 8:11 am    Post subject: Reply with quote

Dou you have /var/tmp/portage on a tmpfs?
Back to top
View user's profile Send private message
keet
Guru
Guru


Joined: 09 Sep 2008
Posts: 567

PostPosted: Wed Oct 30, 2013 2:35 am    Post subject: Reply with quote

I emerged www-client/chromium (with MAKEOPTS="-j1"), and it seems to have used about 1GB of R.A.M. at the most. What USE flags are you using? What are you running while you emerge it? What are your MAKEOPTS? Something is probably really wrong if it uses more that a couple gigabytes of memory.
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1631
Location: /mnt/Gentoo/Europe

PostPosted: Thu Oct 31, 2013 7:40 am    Post subject: Reply with quote

Code:
# emerge --info
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/my/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.


Portage 2.2.7 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.1, glibc-2.17, 3.10.7-gentoo x86_64)
=================================================================
System uname: Linux-3.10.7-gentoo-x86_64-Intel-R-_Core-TM-_i5-2450M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     8081944 total,   5020024 free
KiB Swap:    9767484 total,   9767484 free
Timestamp of tree: Wed, 30 Oct 2013 12:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r4, 3.2.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.12
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.3
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.1-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo bumblebee x-my                                                                                                                           
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://gentoo.imj.fr/pub/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/video/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/bumblebee /usr/local/my"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups cxx dbus declarative demosaic djvu dri dts dv dvd dvdr ebook embedded emboss encode exif fam ffmpeg firefox flac fortran frei0r gdbm gde gif gles2 gpm gtk iconv icu ios ipv6 java jpeg kde kdenlive kipi lcms ldap libkms libnotify lm_sensors mad melt minizip mlt mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nsplugin ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds qt3support qt4 readline reports scanner script sdl semantic-desktop session smp sna spell sqlite sse sse2 sse3 sse41 sse42 ssl ssse3 startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vaapi vcd vorbis wxwidgets x264 xcb xcomposite xinerama xml xmp xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1631
Location: /mnt/Gentoo/Europe

PostPosted: Thu Oct 31, 2013 7:41 am    Post subject: Reply with quote

Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe -ggdb"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.

ACCEPT_KEYWORDS="~amd64"
USE="abi_x86_64 opus gles2 sqlite mysql kdenlive script ebook djvu gde ios lm_sensors scanner libkms xmp demosaic vaapi sna sse41 sse42 sse3 cddb java reports nsplugin smp threads embedded ssse3 vcd dv frei0r icu consolekit dbus policykit udev ffmpeg mlt melt minizip mmx sse sse2"

MAKEOPTS="-j2"
LINGUAS="pl en en_GB"

INPUT_DEVICES="evdev"
VIDEO_CARDS="nvidia intel"

ACCEPT_LICENSE="*"

PORTAGE_TMPDIR="/mnt/video/tmp"

FEATURES="parallel-fetch -userfetch"

PORTDIR_OVERLAY="/usr/local/my"


source /var/lib/layman/make.conf
GENTOO_MIRRORS="ftp://gentoo.imj.fr/pub/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/"
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Thu Oct 31, 2013 3:57 pm    Post subject: Reply with quote

8gb will be fine... i chew on a little swap with 4gb on a quad core and 5 jobs at once.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Fri Nov 01, 2013 8:43 am    Post subject: Reply with quote

You might need to remove -ggdb to compile chromium on anything that hasn't 32 gb of ram :twisted:
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1631
Location: /mnt/Gentoo/Europe

PostPosted: Fri Nov 01, 2013 1:13 pm    Post subject: Reply with quote

i92guboj wrote:
You might need to remove -ggdb to compile chromium on anything that hasn't 32 gb of ram :twisted:


I will try remove -ggdb. I am wondering why there is no such problems with others applications, especially with libreoffice - much bigger than chromium.
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Fri Nov 01, 2013 11:28 pm    Post subject: Reply with quote

Hey Xywa, I discovered that for some reason my chromium has all locales use flags on. You can try disable this locales too. (In firefox it's the opposite, there's no locale flag enabled).
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
rudregues
Apprentice
Apprentice


Joined: 29 Jan 2013
Posts: 231
Location: Brazil

PostPosted: Fri Nov 01, 2013 11:32 pm    Post subject: Reply with quote

Xywa wrote:


I will try remove -ggdb. I am wondering why there is no such problems with others applications, especially with libreoffice - much bigger than chromium.

My chromium build took up ~8h30min agains libreoffice ~8h against firefox ~3h30min
I didn't found this ggdb use flag... what are you talking about?

EDIT: found ggdb flag here http://www.gentoo.org/proj/en/qa/backtraces.xml
_________________
Emerging en gentoo
Back to top
View user's profile Send private message
mackal
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2011
Posts: 88

PostPosted: Sat Nov 02, 2013 1:24 am    Post subject: Reply with quote

You have -ggdb in your CFLAGS in your /etc/portage/make.cont (or /etc/make.conf if you haven't updated it)

-ggdb adds a lot more debugging info which means a lot more RAM and disk space, which also means compile times are higher. I would say unless you're doing intense debugging it should not be there, and if you do need it for a package you can always set that in /etc/portage/env and /etc/portage/package.env
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Sat Nov 02, 2013 10:36 pm    Post subject: Reply with quote

Xywa wrote:
I will try remove -ggdb. I am wondering why there is no such problems with others applications, especially with libreoffice - much bigger than chromium.


Have you measured this? :wink: I haven't, but I wouldn't even attempt to guess. Also, there are many other factors, e.g. chromium links a lot into a single binary, which makes linker use a lot of memory. I don't know what libreoffice does.
_________________
http://phajdan-jr.blogspot.com/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
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