From owner-freebsd-questions@freebsd.org Sun Feb 4 17:51:53 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 03761EE4AC3 for ; Sun, 4 Feb 2018 17:51:53 +0000 (UTC) (envelope-from johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gal.iecc.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8657D6AA18 for ; Sun, 4 Feb 2018 17:51:52 +0000 (UTC) (envelope-from johnl@iecc.com) Received: (qmail 489 invoked from network); 4 Feb 2018 17:51:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding; s=1e6.5a774837.k1802; bh=YimbXludCwwyOFoHtNPZgD6R1/7HRBrlTY3LpL4FG9c=; b=hZ+Mhgwjvcik7A22HIGXNwwOSQxuxk/Na3awi5C3vWOAffX+pCK4G6bXHJ4/nwjXqI7/xjjz8riIvpz/t1Pk5SRR1Sg4f5kdvaS4jps6qIyT1B6c1hOsH9ub+BID0cS4hxBqfy2LQao48RRp6wAIIXSUc2RwEiBoe9mIOMmiWOTs/Nlc5LLSmmp/fuUeg0WNJX7FH8nZNAC4hsGRvDN5RwndT7iT0jV3bQX51A84t5jldo1eFPLXnRwpU32Rw48U Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTP via TCP6; 04 Feb 2018 17:51:51 -0000 Received: by ary.qy (Postfix, from userid 501) id 47B5C1A40377; Sun, 4 Feb 2018 12:51:50 -0500 (EST) Date: 4 Feb 2018 12:51:50 -0500 Message-Id: <20180204175151.47B5C1A40377@ary.qy> From: "John Levine" To: freebsd-questions@freebsd.org Cc: jude.obscure@yandex.com Subject: Re: Swap on SSD In-Reply-To: Organization: Taughannock Networks X-Headerized: yes Mime-Version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8bit 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: Sun, 04 Feb 2018 17:51:53 -0000 In article you write: >On 02/04/18 16:49, @lbutlr wrote: >> I have a machine that has dual SSDs in it and no spinning disks. FreeBSD has a 4GB (or so) swap partition that it created on the installation of FreeBSD 11.1. >> >> Isn't this going to cause problems for the SSD to have swap constantly working the drive? In my experience FreeBSD hardly swaps at all unless it's horribly overloaded. Remember that the only page frames that get written to swap are ones that don't have a home somewhere else. A large amount of any process image is program and data mapped in from disk files, and they don't get swapped, they just get deleted from memory and reloaded from the disk if needed. Do a "systat -vm" and you'll see how much swapping your system is doing.