From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E5D8A198005 for ; Sat, 23 Feb 2013 15:47:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE5F821C065; Sat, 23 Feb 2013 15:46:55 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [178.33.32.244]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 515AD21C05C for ; Sat, 23 Feb 2013 15:46:54 +0000 (UTC) Received: by mx.virtyou.com (Postfix, from userid 65534) id D7A93DC056; Sat, 23 Feb 2013 16:46:52 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on pri.ms X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 Received: from weird.wonkology.org (ip-88-153-77-34.unitymediagroup.de [88.153.77.34]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx.virtyou.com (Postfix) with ESMTPSA id 3BE1BDC04D for ; Sat, 23 Feb 2013 16:46:46 +0100 (CET) Date: Sat, 23 Feb 2013 16:46:34 +0100 From: Alex Schuster To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] No space left on device ? Message-ID: <20130223164634.527c7292@weird.wonkology.org> In-Reply-To: <5128D80A.3060801@binarywings.net> References: <20130223050004.GC5625@syscon7.inet> <512855B8.4080904@nileshgr.com> <20130223060537.GD5625@syscon7.inet> <5128B8E2.5050304@googlemail.com> <20130223142415.GC3444@syscon7.inet> <5128D80A.3060801@binarywings.net> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.16; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/Hu7qfGoMFc2yE=W9j0BIWNM"; protocol="application/pgp-signature" X-Archives-Salt: dd157d5f-c364-44e3-82cf-51e6b76aef4f X-Archives-Hash: dcade84780b3ed55b26dc43df9984ff7 --Sig_/Hu7qfGoMFc2yE=W9j0BIWNM Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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. >=20 > 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=3D-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=3D-. notmpfs.conf has 'PORTAGE_TMPDIR=3D/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=3D"-pipe -march=3Damdfam10 -O2" CXXFLAGS=3D$CFLAGS debug.conf: CFLAGS=3D"$CFLAGS -O2 -ggdb" CXXFLAGS=3D$CFLAGS FEATURES=3D"-buildpkg splitdebug" And grub.conf is 'export DONT_MOUNT_BOOT=3Dblabla', this avoids Grub messing around with my /boot directory. Isn't portage just cool? Wonko --Sig_/Hu7qfGoMFc2yE=W9j0BIWNM Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlEo5GIACgkQvnCfyHDdkq+1EQCgu4qAxG85CyBK7yHCexGO4fHY DFEAoMA4gXLJ/Wko9eTKxOkjgS7q7YfP =QMIp -----END PGP SIGNATURE----- --Sig_/Hu7qfGoMFc2yE=W9j0BIWNM--