From owner-freebsd-fs@freebsd.org Mon Feb 29 21:21:41 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 EDC32AB7EBC for ; Mon, 29 Feb 2016 21:21:40 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8D60CEAB for ; Mon, 29 Feb 2016 21:21:40 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: by mail-wm0-x236.google.com with SMTP id l68so8346629wml.0 for ; Mon, 29 Feb 2016 13:21:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=multiplay-co-uk.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=Y08cZEmG/gpEbR3662nhN9hsDOcx2itVXfnoomK6Jjc=; b=y++s5BaisjhdoUAcifqLgsc1x/rdzywplfsV7v9Nbr706qKOoEXf5g0kxDSLwAo0Qq a5TeRvrPuNFnfjCoLdxI9zbc0RzQkK8RvVqn9xZY30VQFtM77/eN+vkJTUAjZ4/k40/z rybUSpELBQ4eCtY3dznkNfUZDNF6ylt3wiRtw+J8KkXveUNuu5JUYSyZCX9ERoM17VUE qwDQzU7Vfgh5pO06GDgY3hQcNkaz39gdP0a3CBMVTkUwrr/xFUoKEUS1cRiktmwoQgUV FS/NDXs+mHi3AG0Iw4FjYXLo44Ua3z53Yscfv8cIgSbFZQth+vpeOhjoXDRgPMLpurHj bgtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Y08cZEmG/gpEbR3662nhN9hsDOcx2itVXfnoomK6Jjc=; b=k9g3Q3pyfFV0fsSVpKNn6DUyNFU3S3ppC7irkaxbsQuD6p/zWHuI67thxYdo63eee1 KIrXeK8hCwbgjXnDOMBRCvh3pWm1hZap1xq5pjs1ifEEPR0cdc+XD29cjoRqBuN6B2HX ZZpH6dwC+orEjZ+7nN0BwfT5C8fCFvrknWt5xMsHNl9PAAQvO9u0CoMnwDTKux+9MneS MAkQkTqWyS46FQmZWq3qrw0G9Z/4h4y9B5UffO0ZPb5BtxjqMS3cWI4s8KQ2EJB9/rsF yBs6E1in5VwD0KF42nhS30CKYswreABxJ2IQ2vKMhPzZzFKEpR0ljTG9C5ysn+4OAiVy qYeA== X-Gm-Message-State: AD7BkJLR6/1khIHv26q954Wti58RT3jCuAMRIioYKO6PC4VX/NrhIa49i8hWedVQkVUsCueM X-Received: by 10.28.91.142 with SMTP id p136mr91231wmb.76.1456780898252; Mon, 29 Feb 2016 13:21:38 -0800 (PST) Received: from [10.10.1.58] (liv3d.labs.multiplay.co.uk. [82.69.141.171]) by smtp.gmail.com with ESMTPSA id g3sm27799537wjw.31.2016.02.29.13.21.36 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Feb 2016 13:21:37 -0800 (PST) Subject: Re: abnormally high CPU load after zfs destroy To: freebsd-fs@freebsd.org References: <56D4964D.3010604@quip.cz> From: Steven Hartland Message-ID: <56D4B66D.4070007@multiplay.co.uk> Date: Mon, 29 Feb 2016 21:21:49 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56D4964D.3010604@quip.cz> Content-Type: text/plain; charset=windows-1252; 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 21:21:41 -0000 Its likely churning through the actual delete, show system processes in top and you'll see it. On 29/02/2016 19:04, Miroslav Lachman wrote: > 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 > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"