From owner-freebsd-questions@FreeBSD.ORG Mon Sep 15 14:41:01 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 48C19E33 for ; Mon, 15 Sep 2014 14:41:01 +0000 (UTC) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [IPv6:2a00:1450:400c:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CB42CB40 for ; Mon, 15 Sep 2014 14:41:00 +0000 (UTC) Received: by mail-we0-f180.google.com with SMTP id t60so4100801wes.11 for ; Mon, 15 Sep 2014 07:40:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=SBXlai7q1uW1GfQDd+PqovxJTssfLx2T6Pdj8AApn6o=; b=AuT1imaxUbGYtx5noeMaHpKBnsC8OF/ZOVqkte0/RSKximM3r5RJ83QZHoVm4187Sk Mqf3/iRTkJE7+EOobKiUpC4YuA22Yz2V90YUfxgDcBu7LMI5L4EUuRienyEHu2eKYKFJ V6Ycd+9GKa8ghl7zIhcDRx2V6pZSh6/QqgzJE/P8pqM+OyUnOEzZ9BFNOsYbmzGirXdz HA8k7qKK0KWEIu015dNNwLS3ji42uVkhhQSvd6QTvUVuHH6Iwcf2Jb1O2FBFedd2Zc8K 8ZldhLztDEcDgafdv42CW33RAhH8mKuanMf4AopiTOINaqazO7suN6O3YJgm3MpBxTY3 QarA== X-Received: by 10.180.73.6 with SMTP id h6mr23661927wiv.65.1410792058854; Mon, 15 Sep 2014 07:40:58 -0700 (PDT) Received: from gumby.homeunix.com ([94.195.197.245]) by mx.google.com with ESMTPSA id cw6sm15019100wjb.18.2014.09.15.07.40.57 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Sep 2014 07:40:57 -0700 (PDT) Date: Mon, 15 Sep 2014 15:40:56 +0100 From: RW To: freebsd-questions@freebsd.org Subject: Re: S + J for /tmp and /var and /? Message-ID: <20140915154056.50ead271@gumby.homeunix.com> In-Reply-To: <20140913081905.1de2006c.ohartman@zedat.fu-berlin.de> References: <20140910090947.4941336b.ohartman@zedat.fu-berlin.de> <20140913033102.GA10967@neutralgood.org> <20140913081905.1de2006c.ohartman@zedat.fu-berlin.de> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2014 14:41:01 -0000 On Sat, 13 Sep 2014 08:19:05 +0200 O. Hartmann wrote: > The problem is that clients like xpdf open by default all PDFs > in /tmp and not /var/tmp (which is still mapped to disk in all my > configurations) and with lots PDFs open, the box starts swapping > pretty quickly with only 4GB RAM and ZFS. Even with 8 GB RAM its a > kind of problematic, when we deal with larger temporary files taken > from simulations, opened by vi or other editors and stored > temporarily in /tmp. I've been using tmpfs since I had 1.5 GB of RAM, and I never noticed a slowdown with swapping due to tmpfs, except a little bit while the page daemon did the writing. I've used it with more than 2xRAM swapped out. Maybe ZFS isn't leaving it enough memory.