From owner-freebsd-current@freebsd.org Tue Mar 1 14:45:39 2016 Return-Path: Delivered-To: freebsd-current@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 584BAABD952 for ; Tue, 1 Mar 2016 14:45:39 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from mail.auburn.protected-networks.net (mail.auburn.protected-networks.net [IPv6:2001:470:1f07:4e1::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.auburn.protected-networks.net", Issuer "Protected Networks Root CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2750914CD; Tue, 1 Mar 2016 14:45:39 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [192.168.1.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "Iain Michael Butler", Issuer "Protected Networks CA" (verified OK)) (Authenticated sender: imb@mail.auburn.protected-networks.net) by mail.auburn.protected-networks.net (Postfix) with ESMTPSA id DF30666; Tue, 1 Mar 2016 09:45:37 -0500 (EST) Subject: Re: continuous stream of writes? To: Eric van Gyzen , freebsd-current References: <56D5A59E.8040608@protected-networks.net> <56D5AA10.5090703@FreeBSD.org> From: Michael Butler Openpgp: id=6F63E6399DCC8E3E94D60F0642FF6BAE0442D492 Message-ID: <56D5AB11.7090307@protected-networks.net> Date: Tue, 1 Mar 2016 09:45:37 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56D5AA10.5090703@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2016 14:45:39 -0000 On 03/01/16 09:41, Eric van Gyzen wrote: > On 03/01/2016 08:22, Michael Butler wrote: >> On an otherwise idle machine, I now see a continuous stream of writes to >> disk. I've only noted this over the last couple of weeks but this will >> not be welcome behaviour on an SSD .. >> >> How do I find the source of these writes? >> >> >> imb@toshi:/home/imb> iostat 10 >> tty ada0 cd0 pass0 cpu >> tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id >> 0 992 58.53 229 13.10 0.00 0 0.00 0.37 0 0.00 13 2 7 1 78 >> 0 23 30.82 12 0.36 0.00 0 0.00 0.00 0 0.00 2 0 4 0 94 >> 0 8 31.38 12 0.37 0.00 0 0.00 0.00 0 0.00 0 0 4 0 96 >> 0 8 31.75 11 0.34 0.00 0 0.00 0.00 0 0.00 3 0 3 0 94 >> 0 8 31.82 11 0.35 0.00 0 0.00 0.00 0 0.00 1 0 3 0 96 >> 0 8 31.76 12 0.36 0.00 0 0.00 0.00 0 0.00 0 0 3 0 96 >> 0 8 31.75 11 0.35 0.00 0 0.00 0.00 0 0.00 1 0 4 0 95 >> 0 8 31.55 12 0.38 0.00 0 0.00 0.00 0 0.00 1 0 3 0 96 >> > > The I/O mode of "top" might be useful: > > top -m io Well that's different .. KDE konsole .. why on earth .. ? last pid: 54891; load averages: 0.32, 0.45, 0.48 up 0+17:32:51 09:43:58 102 processes: 1 running, 101 sleeping CPU: 1.4% user, 0.0% nice, 4.1% system, 0.0% interrupt, 94.5% idle Mem: 463M Active, 1599M Inact, 708M Wired, 255M Buf, 196M Free Swap: 4096M Total, 500M Used, 3596M Free, 12% Inuse PID USERNAME VCSW IVCSW READ WRITE FAULT TOTAL PERCENT COMMAND 1395 imb 4 1 0 0 0 0 0.00% gkrellm --sm-client-id 1038b38f3a6339000140789027600000013050011 1498 imb 275 55 0 0 0 0 0.00% /usr/local/bin/firefox 1478 imb 33 7 0 22 0 22 100.00% kdeinit4: kdeinit4: konsole (kdeinit4) 1136 root 16 6 0 0 0 0 0.00% /usr/local/bin/X -br -novtswitch -quiet :0 -nolisten tcp -auth /var/run/xauth/A:0-xl3Taa (Xorg) 1345 imb 35 5 0 0 0 0 0.00% kwin -session 1038b38f3a6339000144659063000000424580056_1456780081_701192 5