From owner-freebsd-current@FreeBSD.ORG Fri Jan 20 20:02:46 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2757816A41F; Fri, 20 Jan 2006 20:02:46 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 764A543D45; Fri, 20 Jan 2006 20:02:45 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) by kane.otenet.gr (8.13.4/8.13.4/Debian-8) with SMTP id k0KK2cnt007047; Fri, 20 Jan 2006 22:02:39 +0200 Received: by flame.pc (Postfix, from userid 1001) id C3D59118D8; Fri, 20 Jan 2006 22:02:30 +0200 (EET) Date: Fri, 20 Jan 2006 22:02:30 +0200 From: Giorgos Keramidas To: Julian Elischer Message-ID: <20060120200230.GA94172@flame.pc> References: <43D05151.5070409@elischer.org> <20060120030105.GA5286@xor.obsecurity.org> <43D0715A.7020302@elischer.org> <20060120061955.GA8687@xor.obsecurity.org> <20060120085226.GQ83922@FreeBSD.org> <43D0AB26.5070407@samsco.org> <20060120095214.GA11088@xor.obsecurity.org> <43D13711.9000509@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43D13711.9000509@elischer.org> Cc: Gleb Smirnoff , current@freebsd.org, Kris Kennaway Subject: Re: kernel thread as real threads.. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 20 Jan 2006 20:02:46 -0000 On 2006-01-20 11:16, Julian Elischer wrote: > The KSEGRPs stats will be collected to the process when asked > for. I will probably also change the way that 'ps' shows these > (and threads). I'm not sure what to do about top yet. we > really need to be able to show a process name AND a thread name > when the threads are shown and have names. This will require a certain amount of bikesheding, as it always happens when we have to change the way top works. With CPU being the default instead of WCPU in my top here, the output is: ------------------------------------------------------------------------------- last pid: 96294; load averages: 1.01, 1.04, 1.06 up 0+07:22:36 21:56:41 82 processes: 3 running, 79 sleeping CPU states: % user, % nice, % system, % interrupt, % idle Mem: 224M Active, 101M Inact, 77M Wired, 26M Cache, 60M Buf, 12M Free Swap: 1200M Total, 84M Used, 1116M Free, 6% Inuse PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND 1190 keramida 4 20 0 241M 78604K kserel 3:42 0.00% firefox-bin 935 keramida 1 96 0 233M 38068K RUN 3:42 0.00% Xorg 1088 keramida 1 96 0 47528K 3592K select 0:43 0.00% fetchmail 970 root 1 96 0 60704K 2972K select 0:31 0.00% xterm 962 keramida 1 96 0 96276K 8528K select 0:23 0.00% xfce4-panel 559 root 1 96 0 36312K 404K select 0:14 0.00% powerd 4581 build 1 -8 0 46456K 4120K piperd 0:11 0.00% perl5.8.7 3536 root 1 96 0 39236K 1656K select 0:10 0.00% screen ------------------------------------------------------------------------------- Even adding the 4 character-columns of the THR column ignited a moderate amount of bitching, so it will be quite difficult to fit more thing in this display (I mean, without removing anything that is currently shown). When threads are displayed separately, there _is_ some room, but not much (marked with hash characters below but movable anywhere we like to move it): ------------------------------------------------------------------------------- last pid: 97040; load averages: 0.38, 0.85, 0.98 up 0+07:25:06 21:59:11 69 processes: 2 running, 67 sleeping CPU states: 1.4% user, 0.0% nice, 2.9% system, 2.9% interrupt, 92.8% idle Mem: 193M Active, 106M Inact, 74M Wired, 17M Cache, 60M Buf, 50M Free Swap: 1200M Total, 84M Used, 1116M Free, 6% Inuse PID USERNAME PRI NICE SIZE RES STATE TIME CPU COMMAND ######## 25254 keramida 96 0 60704K 5344K select 0:03 0.10% xterm ######## 935 keramida 96 0 233M 38068K select 3:43 0.00% Xorg ######## 1190 keramida 96 0 241M 78604K select 3:42 0.00% firefox-bin ######## 1190 keramida 96 0 241M 78604K select 3:42 0.00% firefox-bin ######## 1190 keramida 20 0 241M 78604K kserel 3:42 0.00% firefox-bin ######## -------------------------------------------------------------------------------