From owner-freebsd-fs@freebsd.org Mon Feb 29 19:04:48 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 F1073AB8DAC for ; Mon, 29 Feb 2016 19:04:48 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 99B031C16 for ; Mon, 29 Feb 2016 19:04:48 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 7CF982842E for ; Mon, 29 Feb 2016 20:04:46 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 5E38228429 for ; Mon, 29 Feb 2016 20:04:45 +0100 (CET) Message-ID: <56D4964D.3010604@quip.cz> Date: Mon, 29 Feb 2016 20:04:45 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Subject: abnormally high CPU load after zfs destroy Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: Mon, 29 Feb 2016 19:04:49 -0000 I am using ZFS pool (4x 3TB) as small backup storage. Backups are made by rsync and there are few snapshots. When I use "zfs destroy -r", there are high disk activity (it seems normal) but also high CPU load - 80+ The system did nothing at this time, just deleting old ZFS snapshot, so why is the load so high? last pid: 90302; load averages: 81.63, 43.60, 19.28 up 43+03:33:04 19:56:16 36 processes: 1 running, 34 sleeping, 1 zombie CPU: 0.0% user, 0.0% nice, 96.0% system, 0.0% interrupt, 4.0% idle Mem: 5836K Active, 20M Inact, 4046M Wired, 755M Free ARC: 1572M Total, 82M MFU, 1018M MRU, 24M Anon, 26M Header, 422M Other Swap: 5120M Total, 17M Used, 5103M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 592 root 1 20 0 26160K 18080K select 1 3:24 0.00% /usr/sbin/ntpd -g -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntpd.drift 624 root 1 20 0 61224K 4204K select 1 2:20 0.00% /usr/sbin/sshd 672 root 1 20 0 24136K 4592K select 0 1:10 0.00% sendmail: rejecting connections on daemon Daemon0: load average: 77 (sendmail) 655 root 1 20 0 25124K 4148K select 0 1:01 0.00% /usr/sbin/bsnmpd -p /var/run/snmpd.pid 443 root 1 20 0 14512K 1760K select 1 0:43 0.00% /usr/sbin/syslogd -ss 679 root 1 22 0 16612K 672K nanslp 1 0:32 0.00% /usr/sbin/cron -s 95875 xyz 1 20 0 65892K 4708K select 1 0:05 0.00% sshd: xyz @pts/0 (sshd) 649 root 1 20 0 30704K 1432K nanslp 1 0:04 0.00% /usr/local/sbin/smartd -c /usr/local/etc/smartd.conf -p /var/run/smartd.pid 352 root 1 20 0 13624K 1204K select 0 0:02 0.00% /sbin/devd 95873 root 1 20 0 65892K 4580K select 1 0:02 0.00% sshd: xyz [priv] (sshd) 95912 root 1 20 0 25772K 652K pause 1 0:02 0.00% screen 675 smmsp 1 20 0 24136K 1152K pause 0 0:01 0.00% sendmail: Queue runner@00:30:00 for /var/spool/clientmqueue (sendmail) 89875 root 1 20 0 21940K 3188K CPU1 1 0:00 0.00% top 95914 root 1 20 0 23592K 3152K pause 0 0:00 0.00% -/bin/tcsh 95913 root 1 20 0 25772K 3192K select 1 0:00 0.00% screen 95895 root 1 52 0 23592K 0K pause 0 0:00 0.00% -su () 95876 xyz 1 52 0 23592K 0K pause 1 0:00 0.00% -tcsh () 95894 xyz 1 23 0 47740K 0K wait 0 0:00 0.00% /usr/bin/su - root () 90271 mrtg 1 52 0 17088K 2508K wait 1 0:00 0.00% /bin/sh ./local_iostat_disk.sh 89976 root 1 21 0 16612K 1704K piperd 1 0:00 0.00% cron: running job (cron) 90270 mrtg 1 52 0 17088K 2504K piperd 1 0:00 0.00% /bin/sh ./local_iostat_cpu.sh 726 root 1 52 0 14508K 1700K ttyin 0 0:00 0.00% /usr/libexec/getty Pc ttyv0 733 root 1 52 0 14508K 1700K ttyin 1 0:00 0.00% /usr/libexec/getty Pc ttyv7 728 root 1 52 0 14508K 1700K ttyin 1 0:00 0.00% /usr/libexec/getty Pc ttyv2 727 root 1 52 0 14508K 1700K ttyin 1 0:00 0.00% /usr/libexec/getty Pc ttyv1 729 root 1 52 0 14508K 1700K ttyin 0 0:00 0.00% /usr/libexec/getty Pc ttyv3 731 root 1 52 0 14508K 1700K ttyin 0 0:00 0.00% /usr/libexec/getty Pc ttyv5 730 root 1 52 0 14508K 1700K ttyin 1 0:00 0.00% /usr/libexec/getty Pc ttyv4 732 root 1 52 0 14508K 1700K ttyin 0 0:00 0.00% /usr/libexec/getty Pc ttyv6 90286 mrtg 1 52 0 18740K 2236K nanslp 1 0:00 0.00% iostat -w 250 -c 2 -x ada0 ada1 ada2 ada3 90283 mrtg 1 52 0 18740K 2228K nanslp 1 0:00 0.00% iostat -d -C -n 0 -w 240 -c 2 90287 mrtg 1 52 0 12356K 1952K piperd 1 0:00 0.00% tail -n 4 137 root 1 52 0 12352K 0K pause 1 0:00 0.00% adjkerntz -i () 90288 mrtg 1 52 0 17088K 2508K piperd 0 0:00 0.00% /bin/sh ./local_iostat_disk.sh 3313 root 1 52 0 16728K 1884K select 1 0:00 0.00% /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pid # uname -srmi FreeBSD 10.2-RELEASE-p10 amd64 GENERIC # grep CPU: /var/run/dmesg.boot CPU: Intel(R) Pentium(R) Dual CPU E2160 @ 1.80GHz (1795.53-MHz K8-class CPU) Miroslav Lachman