From owner-freebsd-geom@FreeBSD.ORG Tue Jul 27 08:22:23 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D32EF106564A for ; Tue, 27 Jul 2010 08:22:23 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 662068FC20 for ; Tue, 27 Jul 2010 08:22:23 +0000 (UTC) Received: by fxm13 with SMTP id 13so469209fxm.13 for ; Tue, 27 Jul 2010 01:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type :content-transfer-encoding; bh=wIwO9tNQV4mqzFo4vzvuXcOb0Q2y8tuK1BgrTiqT51k=; b=BtbJmZgq5Fy9vEKuIbmXpJuXVh6UetB6zyORuG6hxiqZiMVVl1ni4dgHq133dLkf3k N0js3n+REpm7pCEGv94eNDDLLKwM9zw/PQY5N0OPo4U5/0qy1UpriL8/CmkNa86u41+x dmlLzMVtWzjKEjCzEwBdQxLv1DvaihoEL+s/E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding; b=Zft1LsCG7oYGQgAbPVJWUnmcqEFVelpoC/+xRA6syDpmHtLXPDv6OhMx7wk3IQi8FW Ah4YENDulwUCSxaDOKbF+SZYR4pVF4RP9TsBVdGTqh5eXGm6B5+ZMdvHub/3vmGZImzT /lAqEU2nCAGdWYJbYl1VjjYpaZzaFF3p56lNk= Received: by 10.223.120.67 with SMTP id c3mr5540655far.70.1280217577473; Tue, 27 Jul 2010 00:59:37 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id w11sm1793536fao.37.2010.07.27.00.59.36 (version=SSLv3 cipher=RC4-MD5); Tue, 27 Jul 2010 00:59:36 -0700 (PDT) Sender: Alexander Motin Message-ID: <4C4E919C.2060009@FreeBSD.org> Date: Tue, 27 Jul 2010 10:58:20 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: freebsd-geom@freebsd.org X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Subject: Hyperactive g_event thread X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jul 2010 08:22:23 -0000 Hi. At this moment g_event thread is one of two most active idle threads (second is yarrow) on my system. It wakes up ten times per second while most of time it is not doing anything. The only reason for doing it I see in imperfect locking of g_run_events() loop and respective tsleep()/wakeup(). So timeout there may be needed for collection potentially lost wakeup() events. Could somebody fully aware of GEOM locking look at this? -- Alexander Motin