From owner-freebsd-questions@freebsd.org Mon May 14 00:22:50 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B6D6FDCA90 for ; Mon, 14 May 2018 00:22:50 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wr0-x229.google.com (mail-wr0-x229.google.com [IPv6:2a00:1450:400c:c0c::229]) (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 A137C7550D for ; Mon, 14 May 2018 00:22:49 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by mail-wr0-x229.google.com with SMTP id y15-v6so10412215wrg.11 for ; Sun, 13 May 2018 17:22:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kl6NxnA140X/O7AxKwS9ddmF7Jmz0LJjKcal+z9/4Fk=; b=MRaHlwYjlPs8wUhN0lj4iP1V/mXcWn1v+eMdbBNAGCgxnwX/Q/j/DEc7vxRjFRg8/x /MTNoN/CnyQXSdhH+15vEDLrBPHhRhpFr4P0kzkif2Uik1+eMLMkV1BenF786OitHIym QsZaI3RvQdQA8z6GkKczgHe3rokhAFkccZepW2heFNQl3joOCoEjEGA22vyB6XE+I0IK etaO37aLwKSMczngZT9Yb+l43+uTeYGenOq6Mu2VJxdAKJCOwnrXHRGkDYUyjHaJt0GR qZ9FaB8GF6r5Eoe2TQ7u1k/9QvOtJvpTCyotX3sUssdoEi1oYrxI+CY9tkGwgquJ+StT JRSw== X-Gm-Message-State: ALKqPwfQavLXQ4iKdgTRsoRHx5bx0VqLsqbkov10UoPs5ZD/DVidhQdS jbX3qw1Os0yfhm6RK75idcqP2w== X-Google-Smtp-Source: AB8JxZp4FAEjsrKA7NmX3R62kjRm+Q/IhLnPOd9eGmik4WXlKMZDtIPOqNJzgB1y8I/BtKnwxlI+KQ== X-Received: by 2002:adf:9789:: with SMTP id s9-v6mr5729347wrb.28.1526257368157; Sun, 13 May 2018 17:22:48 -0700 (PDT) Received: from gumby.homeunix.com ([90.207.59.43]) by smtp.gmail.com with ESMTPSA id o12-v6sm11492033wrf.31.2018.05.13.17.22.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 13 May 2018 17:22:47 -0700 (PDT) Date: Mon, 14 May 2018 01:22:44 +0100 From: RW To: freebsd-questions@freebsd.org Subject: Re: swapfile question Message-ID: <20180514012244.74822866@gumby.homeunix.com> In-Reply-To: References: <09eab1d4-3dd8-3530-bdbf-b436ec6aeeed@zyxst.net> X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.31; amd64-portbld-freebsd11.1) 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.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2018 00:22:50 -0000 On Sat, 12 May 2018 08:39:52 -0700 Waitman Gobble wrote: > I use Warren Block's SSD setup and create swap file, seems to work > A-OK. > > http://www.wonkity.com/~wblock/docs/ Swap files are certainly more flexible, but I think the argument about TRIM is wrong. My understanding is that to UFS the swap activity on a swap file is just reads and writes in the file. Short of deleting the file I don't think you would get any trims. From that perspective swap files are slightly worse because when you create the file with dd you are telling the SSD that all of it holds data.