From owner-freebsd-current@FreeBSD.ORG Wed Mar 4 05:38:23 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97E43106564A for ; Wed, 4 Mar 2009 05:38:23 +0000 (UTC) (envelope-from ota@j.email.ne.jp) Received: from mail1.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.freebsd.org (Postfix) with ESMTP id 6BE488FC13 for ; Wed, 4 Mar 2009 05:38:23 +0000 (UTC) (envelope-from ota@j.email.ne.jp) Received: from localhost (pool-70-20-228-87.phil.east.verizon.net [70.20.228.87]) by mail1.asahi-net.or.jp (Postfix) with ESMTP id 9B80A61C54 for ; Wed, 4 Mar 2009 14:38:21 +0900 (JST) Date: Wed, 4 Mar 2009 00:38:18 -0500 From: Yoshihiro Ota To: freebsd-current@freebsd.org Message-Id: <20090304003818.8543654f.ota@j.email.ne.jp> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.12.11; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: nice is not nice; SCHED_ULE problem? 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: Wed, 04 Mar 2009 05:38:24 -0000 Hi, all. I have a laptop that has 2 AMD CPUs. I started 2 lzma compression processes with nice +10 and +20. Then, I started to compile a port, qemu. Back in SCHED_4BSD time, whenever I build a port while compression was running with nice +20, build used take most of CPUs and very little to nice +20 processes. The build process was slow, for example, when it was running configure where lots of processes were created. However, when a large C file was being compiled, it took most of CPU away from nice +20 processes. When I suspended one of the compression, build speeds up significantly. It looked process generation had less priorities than nice +20s. I tested on 7.1-RELEASE and it happens there, too. Could someone take a look? Thanks, Hiro Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #7 r189249M: Tue Mar 3 11:00:21 EST 2009 root@XXX:/usr/obj/amd64/usr/src/head/sys/GENERIC WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-58 (1908.70-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x60f81 Stepping = 1 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x11f Cores per package: 2 usable memory = 1525399552 (1454 MB) avail memory = 1472196608 (1403 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1