From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JMhNm-0004KG-1h for garchives@archives.gentoo.org; Wed, 06 Feb 2008 10:19:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 93D4FE03E7; Wed, 6 Feb 2008 10:19:56 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by pigeon.gentoo.org (Postfix) with ESMTP id 3E934E03E7 for ; Wed, 6 Feb 2008 10:19:56 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JMhNg-0003ir-K1 for gentoo-amd64@lists.gentoo.org; Wed, 06 Feb 2008 10:19:52 +0000 Received: from ip68-231-12-179.ph.ph.cox.net ([68.231.12.179]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Feb 2008 10:19:52 +0000 Received: from 1i5t5.duncan by ip68-231-12-179.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Feb 2008 10:19:52 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-amd64@lists.gentoo.org From: Duncan <1i5t5.duncan@cox.net> Subject: [gentoo-amd64] Re: New install, /var on tmpfs Date: Wed, 6 Feb 2008 10:19:46 +0000 (UTC) Message-ID: References: <43ba12950802052219m2e8ce3ebw6d33f4f0d5ed6b1b@mail.gmail.com> <200802060839.46952.volker.armin.hemmann@tu-clausthal.de> <200802060847.50748.tonko.mulder@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@lists.gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip68-231-12-179.ph.ph.cox.net User-Agent: Pan/0.132 (Waxed in Black) Sender: news Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 31e49551-5ff5-418e-9949-f964b836f3c1 X-Archives-Hash: ea63ed981aff723c4073b04a9be1d321 Tonko Mulder posted 200802060847.50748.tonko.mulder@gmail.com, excerpted below, on Wed, 06 Feb 2008 08:47:42 +0100: > Op Wednesday 06 February 2008 08:39:46 schreef Volker Armin Hemmann: >> On Mittwoch, 6. Februar 2008, Tonko Mulder wrote: >> > >> > I'm doing a new install and since I put /tmp on tmpfs I was wonderin= g >> > if I could put /var on tmpfs as well. >> >> no. >> You can put >> /var/tmp >> on tmpfs, but 'the spec' says, that stuff in /var/tmp should survive a >> reboot. >> >> So >> /var/tmp/portage >> >> that is save. >=20 > Oke, thanks. All needed to know :) FWIW, I have /tmp on tmpfs, and /var/tmp as a symlink pointing at it. =20 There's some stuff in /var/tmp by default that really should go in /var/ cache instead (as above, it's cache, not tmp, and works best if kept over= =20 a reboot), but at least here, I was able to point it all elsewhere, thus=20 leaving tmp (including /var/tmp) as really tmp. Specifically, I have a script that I run from the local service at boot=20 that creates individual user tempdirs for a couple users in /tmp (with a=20 ~/tmp symlink pointed at the appropriate /tmp/ subdir) and=20 additionally, creates with the appropriate permissions the various X=20 tempdirs (.X11-unix, .ICE-unix, .font-unix, the latter for xfs font=20 server I believe). Additionally, as a KDE user, I had to set and export three KDE* vars in=20 my environment, KDEVARTMP and KDESYCOCA to point to a non-tmpfs cache dir= =20 location (I decided to place them in the user's homedir, not in a system=20 dir like /var/tmp, the sycoca var of course points to a filename in the=20 dir), and KDETMP to point to the appropriate user tmpdir under /tmp. =20 GNOME probably has similar settings, but I'd have no idea what or where=20 as I don't run it. Before setting the KDEVARTMP var I'd lose konqueror and general KDE=20 favicon cache, etc. However, it wasn't anything serious, nor should it=20 be, as the spec says /var/tmp is for cached stuff, which is nice to save=20 over a reboot, but not critical. Again, why they don't just use /var/ cache for that, and save tmp for really tmp stuff, I don't know, but=20 that's the way it is. After making those adjustments, I've had no further issues. --=20 Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman --=20 gentoo-amd64@lists.gentoo.org mailing list