From owner-cvs-all@FreeBSD.ORG Thu Jun 1 04:27:52 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22B0816B3B5; Thu, 1 Jun 2006 04:27:52 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64ADA43D45; Thu, 1 Jun 2006 04:27:51 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.4/8.13.3) with ESMTP id k514Rm0G098139 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 1 Jun 2006 08:27:49 +0400 (MSD) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.4/8.13.1/Submit) id k514Rmiw098138; Thu, 1 Jun 2006 08:27:48 +0400 (MSD) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Thu, 1 Jun 2006 08:27:47 +0400 From: Gleb Smirnoff To: John Baldwin Message-ID: <20060601042747.GX27819@FreeBSD.org> References: <200605252306.k4PN6cCS081708@repoman.freebsd.org> <200605311050.12156.jhb@freebsd.org> <447DAF19.3050901@samsco.org> <200605311123.02334.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <200605311123.02334.jhb@freebsd.org> User-Agent: Mutt/1.5.6i Cc: cvs-src@FreeBSD.org, Scott Long , src-committers@FreeBSD.org, Warner Losh , cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/syscons/apm apm_saver.c src/sys/i386/bios apm.c apm.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 04:27:53 -0000 On Wed, May 31, 2006 at 11:23:01AM -0400, John Baldwin wrote: J> Nah, that was phk's other timekeeping code to see which timeouts take a long J> time to execute. The THREAD_NO_SLEEPING() stuff was added just before 6.0 J> was released and replaced a couple of "special" mutexes that were held just J> to provoke WITNESS warnings. To take a long time to execute one doesn't need to sleep, it can also do a lot of job. I know at least two examples of heavy callouts: dummynet and pf. Under heavy traffic both subsystems process a lot of packets during one callout. I have patches to move their job to a separate taskqueue. The dummynet patch needs some testing and the pf patch waits for Max Laier to decide what to chose: taskqueue API or kthread_create() as newest pf in OpenBSD does. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE