From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 391F31382C5 for ; Thu, 8 Feb 2018 18:13:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A4FF2E0ABB; Thu, 8 Feb 2018 18:13:47 +0000 (UTC) Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 23BCBE0A8D for ; Thu, 8 Feb 2018 18:13:46 +0000 (UTC) Received: by mail-pf0-x241.google.com with SMTP id u15so2046382pfa.0 for ; Thu, 08 Feb 2018 10:13:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=xOb7FPW/cWYdeJfIkUrf7weKcseuJisVki0oRGfSkbw=; b=qjmfVNEE7ctEJV9pVRlzfHqErE2Qa9KiiyRrDWaPQTCHLACeTSHsms6g/kIsbARvcq 7C4PKQ6bqcU4IWz8zip9xBrGa67URmX/cGh05gkGzAgQRJpTu6xB2sAd4mNYJ4xhWHkP B9LsdvpjJcVkYY0oXWRbavXsDsSPXWTnuHLETBnpAiKQTRx/oHhHq3Kfvp0b+MFdTZeC I1ls/O9SLR7BKsfTyM8Xw7mD0rJ+292LdrhM7z9fUy81xB9ZAk5p3X3G2Z+BqmjJl73v KJ+SzHv+kTbn8ljc7fu+hRxryn9Fb5Dp0XJI59rNjpZ+srNq0vYc3lbCWoU3+BMKPAdr XjXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=xOb7FPW/cWYdeJfIkUrf7weKcseuJisVki0oRGfSkbw=; b=mMCHsctpqS6KJJ2VkhP6dEEJnrf/lfXvGiiGd74Uf4rC02NJgxWBGB8/5RKJZZYzT3 EkWPuzv96wOitex+OGnqFbXU2ebagpsSFGO0lwt95nJRxqUzP4m8boSbYJ/aNJaKrLrx skNXNKQY43m5atsyHyKqaLI5ibhuWLghy/eGJK/iRCXZfod7V3EB/arcUJS+HuRCAQKm bjI50Ds+k/xdo4EM0YfPc3NcFDFdPKTaxUH13/7VRHgzcDI5Wd/Plo/dweI/qYbLEa+3 XaKFpDX9GKDGe5cVCgFIglyWOFcMCmZL9KUqW6YEJVRonwTwEi7Ub9EHCuaAKWPRXIgy RE7Q== X-Gm-Message-State: APf1xPBiMtTxmBO8UGvT0ppeoENHAiccRM1LYw7jvNXOm6MSVZs+HKot OnMiK2AjZpZmShEEvrtKSwAF9ARpOw+heai5LWH0cA== X-Google-Smtp-Source: AH8x2260bIxgwVePU2E7e0EMyNItxe2IJ7+hEXyBUPzU0ayf5cBo2ohqTJqF7sJWkdfPH52tkBWYQbLYVds73ZU8OWA= X-Received: by 10.99.49.149 with SMTP id x143mr31803pgx.375.1518113625517; Thu, 08 Feb 2018 10:13:45 -0800 (PST) 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 Sender: freemanrich@gmail.com Received: by 10.100.134.1 with HTTP; Thu, 8 Feb 2018 10:13:44 -0800 (PST) In-Reply-To: References: From: Rich Freeman Date: Thu, 8 Feb 2018 13:13:44 -0500 X-Google-Sender-Auth: 3u-Gj3p2-eetBqQZGHSSz-VseXw Message-ID: Subject: Re: [gentoo-user] Re: /var/tmp on tmpfs To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 43ef363b-971b-4687-9109-83fc87094215 X-Archives-Hash: e80f8c083881fb6535e66083188d505f On Thu, Feb 8, 2018 at 12:47 PM, Nikos Chantziaras wrote: > On 08/02/18 19:11, gevisz wrote: >> >> I never used tmpfs for portage TMPDIR before and now decided to give it a >> try. >> >> I have 8GB of RAM and 12GB of swap on a separate partition. >> You can try it, but for Chromium these days you might find that still doesn't perform great. I have 16GB of RAM (no swap) and have moved back to building on SSD for that one package (with ccache to help). > > > If you're not using ccache, then you don't need /var/tmp to be on tmpfs. You > should only put /var/tmp/portage on tmpfs. I disagree on this. Unless you have something that uses gobs of space on /var/tmp there is little reason not to make the whole thing a tmpfs. > If you do use ccache, then you need to mount both /var/tmp and > /var/tmp/portage as tmpfs. I DEFINITELY disagree on this one. What is the point of using ccache and then storing it on tmpfs, unless it is just for dealing with short-term build failures? The whole point of ccache is to re-use the results of previous builds, and sticking it on tmpfs defeats that. If you're going to just store it on tmpfs you might as well not use ccache at all and free up a ton of RAM for the rest of the build. Maybe I could see this sort of thing being used in niche situations, such as if you are a developer on some project and build the same thing 20 times per day between reboots. If you only build a package once per reboot then having a ccache on tmpfs provides no benefit at all, and just eats vram and creates more swap writes (though probably not reads). -- Rich