From owner-freebsd-fs@freebsd.org Fri Feb 19 22:50:31 2016 Return-Path: Delivered-To: freebsd-fs@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 1DE01AA9C4E for ; Fri, 19 Feb 2016 22:50:31 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (unknown [IPv6:2602:304:b010:ef20::f2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gw.catspoiler.org", Issuer "gw.catspoiler.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0639911CB for ; Fri, 19 Feb 2016 22:50:31 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.15.2/8.15.2) with ESMTP id u1JMoLjQ079393; Fri, 19 Feb 2016 14:50:25 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <201602192250.u1JMoLjQ079393@gw.catspoiler.org> Date: Fri, 19 Feb 2016 14:50:21 -0800 (PST) From: Don Lewis Subject: Re: Zfs heavy io writing | zfskern txg_thread_enter To: n.corvini@gmail.com cc: freebsd-fs@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 22:50:31 -0000 On 19 Feb, Niccolò Corvini wrote: > Hi, first time here! > We are having a problem with a server running FreeBsd 9.1 with ZFS on a > single sata drive. Since a few days ago, in the morning the system becomes > really slow due of a really heavy io writing. We investigated and we think > it might start at night, maybe correlated to to crondaily (standard) but we > are not sure. After a few hours the situation returns to normal. > Any help is much appreciated > The machine is a Intel Xeon E5-2620 with 36GB of RAM, the HDD is a 2TB an > is half full. The only way that you should get a lot of write traffic during the daily periodic runs is if atime updates are enabled. I don't know what the default was for FreeBSD 9.1, but recent versions of FreeBSD disable atime updates on ZFS everywhere except /var/mail. What does zfs get -o all atime say? The other thing I was going to ask is how full the disk is. ZFS performance degrades quite a bit when the disk gets close to full. At 50% of capacity, you shouldn't be running into that problem.