From owner-freebsd-stable@FreeBSD.ORG Thu Jun 9 20:27:55 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CDDB106564A; Thu, 9 Jun 2011 20:27:55 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id CA1FE8FC0C; Thu, 9 Jun 2011 20:27:54 +0000 (UTC) Received: by iwn33 with SMTP id 33so2351685iwn.13 for ; Thu, 09 Jun 2011 13:27:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=8I2N3K3lfAiV5eGwU6j4dMSAIf+2AIfhX1fy8yET7k4=; b=is7WcQAlKLfblxzAD3HMBflDj0khhhC5BBNHmn+yLcZ5QFoxWtNYwHy+KnDcWVIDJX bUsj13bk0Cmj1JlviPdMNhVszYnNvyDhD3q3BdFU/FC983sJf0O0BbGYS8dHHPjRvVwj WMy3YioSle+cTGd+T7rVtcKB3kLQAdOg5RKc0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=s6gBsDQg8CBi8W1EYcBYT1ofAwTvwmP6BnY3Zw1VCG0b//mXEx5qUoo3HtNxtJpSQr d9GWI0y8o2LWxfnBm3hIqTs6CmX9NNQ7ox/98e4a0RB1fajHTuvatouiTLJyP3Zzb/yj BpFNTOcWGmY5Q/Nhbh0/k+8cPCFWEYMiW/R0g= Received: by 10.231.44.65 with SMTP id z1mr1418360ibe.95.1307649729183; Thu, 09 Jun 2011 13:02:09 -0700 (PDT) Received: from argus.electron-tube.net (desm-45-047.dsl.netins.net [167.142.45.47]) by mx.google.com with ESMTPS id w8sm926520ibh.52.2011.06.09.13.02.06 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Jun 2011 13:02:08 -0700 (PDT) Message-ID: <4DF126B5.8040800@gmail.com> Date: Thu, 09 Jun 2011 15:01:57 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100911) MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: kvm_open errors on /proc/*/mem in top X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2011 20:27:55 -0000 i'm not sure which list this belongs to, so i'm posting to -hackers and -stable. i've noticed for a while now that during heavy activity (for instance buildworld), that top will get these kvm_read errors when reading proc mem entries. i have included a screenshot of what happens during such events... last pid: 92024; load averages: 4.79, 4.58, 4.10 up 0+00:49:07 15:30:53 225 processes: 10 running, 197 sleeping, 18 waiting CPU: 90.6% user, 0.0% nice, 9.4% system, 0.0% interrupt, 0.0% idle Mem: 493M Active, 1337M Inact, 604M Wired, 632K Cache, 315M Buf, 524M Free Swap: 4097M Total, 4097M Free kvm_open: cannot open /proc/86755/mem PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 91943 root 1 97 0 39536K 33620K RUN 1 0:01 7.37% [cc1plus] 2859 jbryant 1 48 0 406M 72332K select 0 3:10 5.96% kwin -session 1028b2382461f5000127042056000000019550000_13 2747 root 1 46 0 419M 370M select 0 1:43 4.39% /usr/local/bin/X :0 -nolisten tcp -auth /var/run/xauth/A:0 1464 root 1 44 0 8068K 1384K select 0 0:03 0.39% /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.u 11219 jbryant 7 44 0 299M 109M select 1 0:17 0.29% /usr/local/lib/thunderbird/thunderbird-bin 2865 jbryant 1 45 0 453M 86140K select 0 0:21 0.20% kdeinit4: kdeinit4: plasma-desktop (kdeinit4) 2882 jbryant 1 44 0 391M 60996K select 0 0:17 0.10% kdeinit4: kdeinit4: kmix -session 102511e52251c60001304471 92001 root 1 97 0 23452K 22256K CPU1 1 0:00 0.00% [cc1] 92017 root 1 96 0 16172K 13440K RUN 0 0:00 0.00% [cc1] and such as this: last pid: 19348; load averages: 1.03, 1.93, 2.84 up 1+04:42:07 15:31:37 201 processes: 4 running, 178 sleeping, 19 waiting CPU: 47.4% user, 0.0% nice, 3.4% system, 0.0% interrupt, 49.3% idle Mem: 318M Active, 2400M Inact, 679M Wired, 1948K Cache, 407M Buf, 428M Free Swap: 8192M Total, 6488K Used, 8186M Free kvm_open: cannot open /proc/1141/memm kvm_open: cannot open /proc/92606/mem RES STATE C TIME WCPU COMMAND 10 root 2 171 ki31 0K 32K RUN 0 55.9H 103.81% [idle] 19344 root 1 96 0 17188K 14300K CPU1 0 0:00 0.00% [cc1] 19341 root 1 76 0 3204K 1068K select 1 0:00 0.00% make all DIRPRFX=fdc/ 19342 root 1 76 0 8340K 1848K wait 1 0:00 0.00% sh -ev 19343 root 1 76 0 3204K 596K wait 0 0:00 0.00% [cc] 19345 root 1 76 0 3204K 1292K piperd 0 0:00 0.00% /usr/obj/usr/src/tmp/usr/bin/as -Qy -o fdc.o the current fix for this is to [CTRL]-L. i assume that what is happening is that top just loosing track of what's running, and the procs are dead by the time it tries to read them, or that the proc ends during top reading. is there any way to fix this? it's annoying as f&#k. ps: running 8-STABLE.