From owner-freebsd-current@FreeBSD.ORG Mon Mar 1 06:54:40 2004 Return-Path: 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 0EBC416A4CE; Mon, 1 Mar 2004 06:54:40 -0800 (PST) Received: from smtp1.BelWue.DE (smtp1.BelWue.DE [129.143.2.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3D9C43D2F; Mon, 1 Mar 2004 06:54:38 -0800 (PST) (envelope-from C.Herrmann@science-computing.de) Received: from obiwankenobi.science-computing.de (blackhole.science-computing.de [193.197.16.3]) by smtp1.BelWue.DE with SMTP id i21EsaJs010695; Mon, 1 Mar 2004 15:54:37 +0100 (MET) env-from (C.Herrmann@science-computing.de) Received: from blnsrv1.science-computing.de (blnsrv1.science-computing.de [10.200.1.4])ESMTP id PAA27390; Mon, 1 Mar 2004 15:54:36 +0100 Received: from localhost (localhost [127.0.0.1])i21EsZqR007750; Mon, 1 Mar 2004 15:54:35 +0100 (CET) (envelope-from chris@science-computing.de) Date: Mon, 1 Mar 2004 15:54:35 +0100 (CET) From: Christoph Herrmann To: current@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: ULE behaviour on SMP systems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 01 Mar 2004 14:54:40 -0000 Hi, I'm running 5.2 current from saturday (2004/02/28, oslevel 502104) on a dual Athlon system. When I compiled java (whith make HOTSPOT_BUILD_JOBS=2 ...) I found that only one CPU was used for both compile processes. So I testet how much time only the build oj java needs. With SCHED_ULE top -I typically looks like that: last pid: 13422; load averages: 0.00, 0.07, 0.07 up 1+14:05:27 11:08:25 82 processes: 3 running, 79 sleeping CPU states: 47.7% user, 0.0% nice, 2.3% system, 0.0% interrupt, 50.0% idle Mem: 178M Active, 101M Inact, 91M Wired, 29M Cache, 60M Buf, 95M Free Swap: 512M Total, 180K Used, 512M Free PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 13416 root 138 0 25980K 25148K CPU1 1 0:03 22.66% 22.66% cc1plus 13421 root 137 0 22540K 21736K RUN 1 0:03 21.09% 21.09% cc1plus 13392 root 76 0 1920K 1572K CPU0 0 0:00 0.00% 0.00% top The build needs about 2:30h. time says the follwing: 9158.566u 806.682s 2:30:43.11 110.1% -227+1704k 33789+8607io 10950pf+0w Then I rebuild the kernel with SCHED_4BSD and did the same again. Now both CPUs where in use (top -I): last pid: 3745; load averages: 1.94, 1.92, 1.42 up 0+00:26:38 13:46:39 55 processes: 3 running, 52 sleeping CPU states: 95.3% user, 0.0% nice, 4.7% system, 0.0% interrupt, 0.0% idle Mem: 98M Active, 203M Inact, 74M Wired, 14M Cache, 60M Buf, 106M Free Swap: 512M Total, 512M Free PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 3738 root 129 0 36160K 35680K CPU1 1 0:06 98.62% 25.59% cc1plus 3744 root 129 0 20968K 20572K RUN 0 0:03 72.13% 10.06% cc1plus 3739 root -8 0 1312K 1140K piperd 1 0:00 0.19% 0.05% as 3740 hey 96 0 1896K 1436K CPU0 0 0:00 0.00% 0.00% top The build needs only 1:43h. and time says: 9205.844u 892.192s 1:43:09.48 163.1% -171+1756k 29763+8491io 10757pf+0w I think, this is not the way it should run. Jeff, maybe you can have a look at this? Best regards Christoph &:-)