From owner-freebsd-questions@freebsd.org Thu Sep 15 13:29:39 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 64A9CBDB6E7 for ; Thu, 15 Sep 2016 13:29:39 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Received: from mail-qk0-x22b.google.com (mail-qk0-x22b.google.com [IPv6:2607:f8b0:400d:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 24ED0859 for ; Thu, 15 Sep 2016 13:29:39 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Received: by mail-qk0-x22b.google.com with SMTP id w204so49600231qka.0 for ; Thu, 15 Sep 2016 06:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=dGlUFLWtop2gjqou8K/g4IAGRx8bg1i1PpH31pG2AKI=; b=TsSmbToJ/lsyb29Pf6k/XabDiH7cCl7l4MR1KH28n2xcnVHBvsMRyhRxYt+zFpE2WL +kkeM0QucWu8jWuPrpMNxwNf7U7X/L5iTfbvh01owQbHrcs8YpCFzkDtiaIlLhLhCEXt T+wJk2aBUYCeX8nVeZ4xAMBUhEmdSM61nFTCd14TsuNLJas1BtF+8iqhSz4X1g/HM4kT qB4wUzjJHv/FEpXRmIx6BLBbueSrUp/AlXTo4ZzX2x94UPSIkrFAMufH6u/VPVK5idjK JycjoG6RPEooA7krR4z65rrBN99FXFv7g+SzDiZuerSWossDtdqYKY+SpPnRkF/jRI7w sovA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=dGlUFLWtop2gjqou8K/g4IAGRx8bg1i1PpH31pG2AKI=; b=OniXOk9Dc3yocgHYkwJME+ROlR69yWIrNDs/MizACnrjio5dqoMCPnOK7Rgf/Ldop9 Tcf+8MzUEMzAfGHlt73Hs+lUjDlWMVhbb+kkWQsqMBBW60sYYxr80ZXMunM1gUXo9z1p pXEuSV+Or9Z2ok9FvrFwiJTPQuQL2QsOrtVXf3KgOJYclYjKWVU8uMonUl//94K9HLFQ CDII/P2hUwycBISXYNH3qwbpMLWFkh+fFSPBobnD0lMoNfXeqLcrSoK/yZngmm2E9GZC gbp/i+Sr88o5CsK+4FUFuR8en/I1CWNKIG0Ot1f4XTwQRtNL1BxZ6Y4aTCeezd+Mp40a UlNA== X-Gm-Message-State: AE9vXwMYx3EZFBimgqbkIq6j3PDW1C8xEWg9nWnVadvB+heqlyt1A1xQhHbJNMnpwGDSiF7zUcwSK9VDmWEyuw== X-Received: by 10.194.18.202 with SMTP id y10mr8045451wjd.174.1473946178056; Thu, 15 Sep 2016 06:29:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.178.33 with HTTP; Thu, 15 Sep 2016 06:29:37 -0700 (PDT) Received: by 10.80.178.33 with HTTP; Thu, 15 Sep 2016 06:29:37 -0700 (PDT) In-Reply-To: <20160915140856.24af27ca@gumby.homeunix.com> References: <42.56.05022.D3A48D75@dnvrco-oedge02> <20160914120349.76a015cd@gumby.homeunix.com> <20160914175449.185d12b0@archlinux.localdomain> <20160914221954.00fb1d56@gumby.homeunix.com> <20160915013848.5564c238@archlinux.localdomain> <20160915140856.24af27ca@gumby.homeunix.com> From: Shamim Shahriar Date: Thu, 15 Sep 2016 14:29:37 +0100 Message-ID: Subject: Re: Best kind of hard drive for heavy use? To: RW Cc: "freebsd-questions@FreeBSD.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2016 13:29:39 -0000 On 15 Sep 2016 14:09, "RW via freebsd-questions" < freebsd-questions@freebsd.org> wrote: > > On Thu, 15 Sep 2016 08:36:04 +0100 > Shamim Shahriar wrote: > > > On 15 Sep 2016 00:39, "Ralf Mardorf via freebsd-questions" < > > freebsd-questions@freebsd.org> wrote: > > > > > > On Wed, 14 Sep 2016 22:19:54 +0100, RW via freebsd-questions > > > wrote: > > > >IIRC with 4 GiB RAM you can have up to 16 GiB of swap, so you could > > > >support up to about 19 GiB of tmpfs if you want. > > > > > > Ok, but I guess than tmpfs could use the whole memory and cause > > > issues with other software running at the same time. It would be > > > nice, if here would be a possibility to assign 3 GiB of 4 GiB to > > > tmpfs and if the 3 GiB are reached swap should be used. Perhaps it > > > does exist, I might be just to lazy to find out. > > > > > > > Yes it does, and yes you are :P > > man fstab > > There's no such thing, you can specify the maximum size of a tmpfs, > but not how much is kept in RAM. It doesn't matter though, because the > VM system will handle it better than a simple limit. > I might be mistaken here, but from man tmpfs *size* Specifies the total file system size in bytes. If zero (the default) or a value larger than SIZE_MAX - PAGE_SIZE is given, the available amount of memory (including main memory and swap space) will be used. My understanding, which might be wrong, is that as long as your size of tmpfs is smaller than ram, it is kept on the ram. Swap is only used when your tmpfs exceeds the available physical ram. Corrections appreciated. Thanks and regards. _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " freebsd-questions-unsubscribe@freebsd.org"