Date: Sat, 8 Aug 2015 12:26:38 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Willem Jan Withagen <wjw@digiware.nl> Cc: Konstantin Belousov <kostikbel@gmail.com>, fs@freebsd.org Subject: Re: Using SSDs as swap Message-ID: <alpine.BSF.2.20.1508081222371.53526@wonkity.com> In-Reply-To: <55C60441.7040906@digiware.nl> References: <55C5D48E.6010605@digiware.nl> <20150808102900.GA2072@kib.kiev.ua> <55C5E34B.9010905@digiware.nl> <20150808113750.GC2072@kib.kiev.ua> <55C60441.7040906@digiware.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 8 Aug 2015, Willem Jan Withagen wrote: > > So perhaps the nicest thing to do for the SSDs is TRIM swap at > startup??? So the the SSD controller van do its garbage collection and > then keep the remainder of the stuff as it is. This can be done now by using a swap file on a UFS partition with trim enabled. The catch is that the swap file has to be deleted and recreated to trigger the trim. The delete is quick, but the create depends on the size of the file and the speed of the hardware. (And no, sparse files do not work as swap files.) Maybe rotate swap files like log files, so they could be created when the system is idle.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1508081222371.53526>