From owner-freebsd-threads@FreeBSD.ORG Fri Sep 25 00:40:06 2009 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C3DD106566B for ; Fri, 25 Sep 2009 00:40:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 11FE08FC0C for ; Fri, 25 Sep 2009 00:40:06 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n8P0e402025737 for ; Fri, 25 Sep 2009 00:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n8P0e4MU025736; Fri, 25 Sep 2009 00:40:04 GMT (envelope-from gnats) Date: Fri, 25 Sep 2009 00:40:04 GMT Message-Id: <200909250040.n8P0e4MU025736@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: David Xu Cc: Subject: Re: threads/128922: threads hang with xorg running X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Xu List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2009 00:40:06 -0000 The following reply was made to PR threads/128922; it has been noted by GNATS. From: David Xu To: bug-followup@freebsd.org, dreigcht@gmail.com Cc: Subject: Re: threads/128922: threads hang with xorg running Date: Fri, 25 Sep 2009 08:31:10 +0800 Try to set scheduler's preemption threshold to large priority value, the default one is too low for cpu-bound application, and can starve other threads under heavy cpu load. for example: sysctl kern.sched.preempt_thresh=220 On 7.x and 8.0 kernel, I always set a large value for my Desktop PC. Regards, David Xu