From owner-freebsd-fs@FreeBSD.ORG Wed Oct 3 18:52:26 2007 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91D9916A419 for ; Wed, 3 Oct 2007 18:52:26 +0000 (UTC) (envelope-from softsearch@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.189]) by mx1.freebsd.org (Postfix) with ESMTP id 06FCA13C468 for ; Wed, 3 Oct 2007 18:52:25 +0000 (UTC) (envelope-from softsearch@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so5476082fka for ; Wed, 03 Oct 2007 11:52:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:reply-to:organization:x-priority:message-id:to:subject:mime-version:content-type:content-transfer-encoding; bh=CRr9VumsVdd1SP2cnQQhtD0YVCT+w4aIWJ9z95Wogek=; b=VokdoWmPKSBuYQXbPI/U/A7nLBis7+0GEEMAKX+CAIHvBH6FsavaCehn14/dqfOOw1nUpmetr3iYDBBvugBVfTrDY0samVMgdT+9E1OhnxqW/qW2ch6dJxDaz6Ux2p5p2EvKVVZxlBEG+/3YU4rmsAIWVbGuHq68IEaXjIna3OM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:reply-to:organization:x-priority:message-id:to:subject:mime-version:content-type:content-transfer-encoding; b=XPuRBQki6O3SA43xUEfz0fXHvw+qY4Ivf9qFszFW4OnrmsuwbkftQl5w9PcuFuLUQWJlmbXouCM/gPRI7QbaSVJBu9g17xk/dhc7yymuj7rBTeiHTsJltHkHmIzWne8tNG8V1van5a70tO/Ifh/YYWDuY0x7t2lXArnMMsbhcF4= Received: by 10.82.172.10 with SMTP id u10mr21706707bue.1191435889299; Wed, 03 Oct 2007 11:24:49 -0700 (PDT) Received: from ?81.200.123.77? ( [81.200.123.77]) by mx.google.com with ESMTPS id h6sm4607019nfh.2007.10.03.11.24.47 (version=SSLv3 cipher=OTHER); Wed, 03 Oct 2007 11:24:48 -0700 (PDT) Date: Wed, 3 Oct 2007 22:24:10 +0400 From: Michael Monashev Organization: SoftSearch.ru X-Priority: 3 (Normal) Message-ID: <787432347.20071003222410@gmail.com> To: freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: zfs and top X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Monashev List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Oct 2007 18:52:26 -0000 Hi, freebsd-fs. I have spurious state in top for IO-heavy process: last pid: 2318; load averages: 0.18, 0.13, 0.12 up 0+06:02:44 19:57:20 57 processes: 2 running, 55 sleeping CPU states: 0.4% user, 0.0% nice, 5.1% system, 1.8% interrupt, 92.6% idle Mem: 281M Active, 1761M Inact, 1673M Wired, 56M Cache, 214M Buf, 141M Free Swap: 4096M Total, 1344K Used, 4095M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 2052 www 1 96 0 43272K 38208K zfs:(& 1 0:16 0.10% nginx 2054 www 1 96 0 43272K 38220K zfs:(& 1 0:15 0.05% nginx 2059 www 1 96 0 43272K 38224K zfs:(& 1 0:15 0.05% nginx 2062 www 1 96 0 43272K 38220K zfs:(& 0 0:14 0.05% nginx 2053 www 1 96 0 43272K 38220K zfs:(& 0 0:16 0.00% nginx 2058 www 1 96 0 43272K 38208K zfs:(& 1 0:16 0.00% nginx 2065 www 1 96 0 43272K 38220K zfs:(& 1 0:16 0.00% nginx 2063 www 1 96 0 43272K 38224K zfs:(& 0 0:16 0.00% nginx 2050 www 1 96 0 43272K 38208K zfs:(& 0 0:16 0.00% nginx 2048 www 1 96 0 43272K 38212K zfs:(& 0 0:16 0.00% nginx 2051 www 1 96 0 43272K 38208K zfs:(& 0 0:16 0.00% nginx 2060 www 1 96 0 43272K 38212K zfs:(& 1 0:15 0.00% nginx 2055 www 1 96 0 43272K 38224K zfs:(& 0 0:15 0.00% nginx 2057 www 1 96 0 43272K 38224K zfs:(& 1 0:15 0.00% nginx 2046 www 1 96 0 43272K 38208K zfs:(& 0 0:15 0.00% nginx 2061 www 1 96 0 43272K 38216K zfs:(& 0 0:14 0.00% nginx 2056 www 1 96 0 43272K 38208K zfs:(& 0 0:14 0.00% nginx 2049 www 1 96 0 43272K 38204K CPU0 0 0:14 0.00% nginx 2047 www 1 96 0 43272K 38208K zfs:(& 1 0:13 0.00% nginx 2064 www 1 96 0 43272K 38208K zfs:(& 1 0:13 0.00% nginx I patch ps ( thanx Ruslan Ermilov ): /usr/src/bin/ps/keyword.c - {"wchan", "WCHAN", NULL, LJUST, wchan, NULL, 6, 0, CHAR, NULL, 0}, + {"wchan", "WCHAN", NULL, LJUST, wchan, NULL, 16, 0, CHAR, NULL, 0}, But WCHAN is still spurious :-( > ps ax -o pid,ppid,%cpu,vsz,wchan,command | egrep '(nginx|PID)' PID PPID %CPU VSZ WCHAN COMMAND 846 1 0.0 36104 pause nginx: master process /usr/local/sbin/nginx 2046 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2047 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2048 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2049 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2050 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2051 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2052 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2053 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2054 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2055 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2056 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2057 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2058 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2059 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2060 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2061 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2062 846 0.0 43272 zfs nginx: worker process (nginx) 2063 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2064 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) 2065 846 0.0 43272 zfs:(&zi nginx: worker process (nginx) > How to see factual process state? -- Michael Monashev