From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: fstrim and SSDs and cron; was: Re: cron-service Date: Tue, 17 May 2016 19:28:57 +0200 Message-ID: <20160517192857.0bab0560@scratchpost.org> References: <20160430192744.1fbe081f@scratchpost.org> <871t5lc432.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2inw-0008Sm-PV for guix-devel@gnu.org; Tue, 17 May 2016 13:29:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2int-0007J7-E7 for guix-devel@gnu.org; Tue, 17 May 2016 13:29:12 -0400 In-Reply-To: <871t5lc432.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?UTF-8?B?Q291cnTDqHM=?= Cc: guix-devel@gnu.org Hi Ludo, thanks. I can confirm that this works! I'm using it to regularily call fstrim (one has to regularily call fstrim on SSDs) so the mcron behaviour of, if an appointment was missed, doing it at the first next availability is good for regularity. The man page says that trimming once a week is good. Longer term maybe there should be a way of specifying that a filesystem should be trimmed in a "file-system" specification. Note that fstrim expects the filesystem to be mounted for it to work.