From owner-freebsd-stable@FreeBSD.ORG Fri Dec 9 11:03:32 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 91185106566B for ; Fri, 9 Dec 2011 11:03:32 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (ip-3-2-0-2.r20.asbnva02.us.ce.gin.ntt.net [IPv6:2001:418:0:5000::16]) by mx1.freebsd.org (Postfix) with ESMTP id 4B2A68FC18 for ; Fri, 9 Dec 2011 11:03:32 +0000 (UTC) Received: from wonderland.m5p.com (wonderland.m5p.com [IPv6:2001:418:3fd::19]) by mailhost.m5p.com (8.14.4/8.14.4) with ESMTP id pB9B3QRI048163 for ; Fri, 9 Dec 2011 06:03:31 -0500 (EST) (envelope-from george+freebsd@m5p.com) Message-ID: <4EE1EAFE.3070408@m5p.com> Date: Fri, 09 Dec 2011 06:03:26 -0500 From: George Mitchell User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111127 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (mailhost.m5p.com [IPv6:2001:418:3fd::f7]); Fri, 09 Dec 2011 06:03:31 -0500 (EST) X-Scanned-By: MIMEDefang 2.72 on IPv6:2001:418:3fd::f7 Subject: SCHED_ULE should not be the default 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: Fri, 09 Dec 2011 11:03:32 -0000 dnetc is an open-source program from http://www.distributed.net/. It tries a brute-force approach to cracking RC4 puzzles and also computes optimal Golomb rulers. It starts up one process per CPU and runs at nice 20 and is, for all intents and purposes, 100% compute bound. Here is what happens on my system, running 9.0-PRERELEASE, with and without dnetc running, with SCHED_ULE and SCHED-4BSD, when I run the command: time make buildkernel KERNCONF=WONDERLAND (I get similar results on 8.x as well.) SCHED_4BSD, dnetc not running: 1329.715u 123.739s 24:47.95 97.6% 6310+1987k 11233+11098io 419pf+0w SCHED_4BSD, dnetc running: 1329.364u 115.158s 26:14.83 91.7% 6325+1987k 10912+11060io 393pf+0w SCHED_ULE, dnetc not running: 1357.457u 121.526s 25:20.64 97.2% 6326+1990k 11234+11149io 419pf+0w SCHED_ULE, dnetc running: Still going after seven and a half hours of clock time, up to compiling netgraph/bluetooth. (Completed in another five minutes after stopping dnetc so I could write this message in a reasonable amount of time.) Not everybody runs this sort of program, but there are plenty of similar projects out there, and people who try to participate in them will be mightily displeased with their FreeBSD systems when they do. Is there some case where SCHED_ULE exhibits significantly better performance than SCHED_4BSD? If not, I think SCHED-4BSD should remain the default GENERIC configuration until this is fixed. -- George Mitchell