From: Alex Schuster <wonko@wonkology.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] No space left on device ?
Date: Sat, 23 Feb 2013 16:46:34 +0100 [thread overview]
Message-ID: <20130223164634.527c7292@weird.wonkology.org> (raw)
In-Reply-To: <5128D80A.3060801@binarywings.net>
[-- Attachment #1: Type: text/plain, Size: 2405 bytes --]
Florian Philipp writes:
> tmpfs uses as much memory as necessary and nothing more. In theory, it
> doesn't hurt to add all your memory to it as tmpfs will start to swap
> when you run out of memory. However, it is usually a better idea to
> unmount the tmpfs and use a regular file system whenever you need more
> space.
>
> As Volker noted, it is probably best to use 2GB tmpfs and when you
> emerge libreoffice, (and maybe firefox and co.) to switch back to using
> a regular fs. You could also expand tmpfs so that it can eat all memory
> not used by your applications under normal circumstances.
In order to avoid manual intervention when building large packages, I do
it that way: In /etc/portage/package.env I have entries like these:
app-emulation/virtualbox safecflags.conf j1.conf
app-office/libreoffice notmpfs.conf j1.conf
dev-java/icedtea notmpfs.conf
dev-lang/R j1.conf
games-fps/alienarena notmpfs.conf
games-fps/worldofpadman notmpfs.conf
kde-base/kdm j1.conf
kde-base/plasma-workspace j1.conf
kde-base/systemsettings j1.conf
mail-client/thunderbird notmpfs.conf
media-sound/amarok debug.conf
~net-mail/dovecot-2.1.15 j1.conf
net-misc/nx j1.conf
sys-boot/grub grub.conf
www-client/firefox notmpfs.conf
Which means that for those packages the .conf scripts
in /etc/portage/env.d/ are sourced.
j1.conf has the line 'MAKEOPTS=-j1' in it, so those packages are not
being compiled in parallel. I happen to have problems with many packages
due to my MAKEOPTS being '--jobs --lod 5', somehow this make much more
trouble than MAKEOPTS=-<somelarge number>.
notmpfs.conf has 'PORTAGE_TMPDIR=/var/portage/tmp', while my normal
PORTAGE_TMPDIR is /var/portage/tmpfs. It is 4G in size, still this is not
enough for many packages. Firefox and Thunrbird are fine with the size,
but they tend to be compiled both at once, and then it is not enough.
safecflags.conf is:
CFLAGS="-pipe -march=amdfam10 -O2"
CXXFLAGS=$CFLAGS
debug.conf:
CFLAGS="$CFLAGS -O2 -ggdb"
CXXFLAGS=$CFLAGS
FEATURES="-buildpkg splitdebug"
And grub.conf is 'export DONT_MOUNT_BOOT=blabla', this avoids Grub
messing around with my /boot directory.
Isn't portage just cool?
Wonko
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
prev parent reply other threads:[~2013-02-23 15:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-23 5:00 [gentoo-user] No space left on device ? Joseph
2013-02-23 5:38 ` Nilesh Govindrajan
2013-02-23 6:05 ` Joseph
2013-02-23 6:17 ` Canek Peláez Valdés
2013-02-23 6:23 ` Joseph
2013-02-23 23:40 ` Peter Humphrey
2013-02-23 6:21 ` Joseph
2013-02-23 8:52 ` Neil Bothwick
2013-02-23 12:42 ` Volker Armin Hemmann
2013-02-23 14:16 ` Joseph
2013-02-23 14:24 ` Volker Armin Hemmann
2013-02-23 15:44 ` Alan McKinnon
2013-02-23 18:21 ` Volker Armin Hemmann
2013-02-23 23:25 ` Peter Humphrey
2013-02-24 8:46 ` Alan McKinnon
2013-02-23 12:41 ` Volker Armin Hemmann
2013-02-23 14:24 ` Joseph
2013-02-23 14:54 ` Florian Philipp
2013-02-23 15:46 ` Alex Schuster [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130223164634.527c7292@weird.wonkology.org \
--to=wonko@wonkology.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox