From owner-cvs-all Mon Sep 16 12:20:25 2002 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 2082B37B405; Mon, 16 Sep 2002 12:20:23 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DE6743E4A; Mon, 16 Sep 2002 12:20:22 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id g8GJKE0B084440; Mon, 16 Sep 2002 21:20:14 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Archie Cobbs Cc: Bruce Evans , Josef Karthauser , "David O'Brien" , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_timeout.c In-Reply-To: Your message of "Mon, 16 Sep 2002 12:03:40 PDT." <200209161903.g8GJ3e687116@arch20m.dellroad.org> Date: Mon, 16 Sep 2002 21:20:14 +0200 Message-ID: <84439.1032204014@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200209161903.g8GJ3e687116@arch20m.dellroad.org>, Archie Cobbs write s: >> uma_timeout() seems to trigger on practically all systems. >> I've talked with Jeff about it already. > >Would an option to timeout() like SPAWN_SEPARATE_THREAD be a practical >solution for some of these cases? I.e., optionally spawn a separate >thread to handle the timeout() event. > >This may be expensive, but there may also be some timeout events that >are rare, slow and expensive enough themselves to warrant using it. I'm not sure, this (or anything else) is the way to go. I have wondered if periodic events should be handled differently, or at least separately from one-shots, but that is also just an idea. I think what we need more than anything, is somebody gathering more hard data and analyzing more... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message