From owner-freebsd-fs@freebsd.org Fri Feb 19 11:58:34 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 4415CAAC921 for ; Fri, 19 Feb 2016 11:58:34 +0000 (UTC) (envelope-from michelle@sorbs.net) Received: from hades.sorbs.net (mail.sorbs.net [67.231.146.200]) by mx1.freebsd.org (Postfix) with ESMTP id 397561596 for ; Fri, 19 Feb 2016 11:58:33 +0000 (UTC) (envelope-from michelle@sorbs.net) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=ISO-8859-1 Received: from isux.com (firewall.isux.com [213.165.190.213]) by hades.sorbs.net (Oracle Communications Messaging Server 7.0.5.29.0 64bit (built Jul 9 2013)) with ESMTPSA id <0O2S00F2WMXA9Q00@hades.sorbs.net> for freebsd-fs@freebsd.org; Fri, 19 Feb 2016 04:05:36 -0800 (PST) Message-id: <56C70365.1050800@sorbs.net> Date: Fri, 19 Feb 2016 12:58:29 +0100 From: Michelle Sullivan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.24) Gecko/20100301 SeaMonkey/1.1.19 To: =?ISO-8859-1?Q?Niccol=F2_Corvini?= Cc: freebsd-fs@freebsd.org Subject: Re: Zfs heavy io writing | zfskern txg_thread_enter References: In-reply-to: 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 11:58:34 -0000 Niccolò Corvini wrote: > Hi, first time here! > We are having a problem with a server running FreeBsd 9.1 with ZFS on a > You should upgrade to a supported version first... 9.3 would probably be the best (rather than 10.x) as it's still supported and uses the same ABI (ie you should need to reinstall all your ports/packages - though you should because it sometimes breaks things - at least check for broken things :) .) If you're not familiar "freebsd-update -r 9.3-RELEASE upgrade" will help you do it without too many problems. > 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. > Yeah this sounds like something I am quite familiar with... It's the security check cronjob that runs every day... its looking for any setuid/setgid files, new/modified files...etc... across all file systems > 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. > gstat output: > > > PID JID USERNAME VCSW IVCSW READ WRITE FAULT TOTAL PERCENT COMMAND > 3 0 root 14 1 0 37 0 37 30.33% > [zfskern{txg_thread_enter}] > 49866 215 7070 26 2 0 5 0 5 4.10% > > > 93400 0 root 13 0 10 0 0 10 8.20% [find] > > > 98335 120 root 11 0 29 0 0 29 23.77% find > /var/log -name messages.* -mtime -2 > 16128 214 70 8 0 0 1 0 1 0.82% > sendmail: ./u1J9k90d001112 local: client DATA status (send > 1120 198 root 7 0 0 4 0 4 3.28% > mail.local -l > > You'll find it kicked off from /etc/periodic/daily/ with a config option you can find in /etc/defaults/periodic.conf (or /etc/periodic.conf or /etc/periodic.conf.local )... Regards, -- Michelle Sullivan http://www.mhix.org/