From owner-freebsd-acpi@FreeBSD.ORG Wed Aug 8 17:01:21 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BCF26106564A; Wed, 8 Aug 2012 17:01:21 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.bf1.yahoo.com (mrout1-b.corp.bf1.yahoo.com [98.139.253.104]) by mx1.freebsd.org (Postfix) with ESMTP id 6E61D8FC08; Wed, 8 Aug 2012 17:01:21 +0000 (UTC) Received: from [IPv6:::1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q78GxN9X002848; Wed, 8 Aug 2012 09:59:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1344445164; bh=IXeRwpXJ8nXsiD70OJyKaNi/Zy0xwoppfVLOx5qqSfo=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date: Message-ID:Mime-Version:Content-Transfer-Encoding; b=L8cAik9Awp/q39g0SkJ3U5AfEFODI3PC+LLXR+OUxh9sWxxfyOJ1TMhO2W8IVMLB3 Qo66evdE428BpS9PcZtbYZxFNdq2PlfqxvtUdYne049pRYees8VuO4KX/uNZhHxg4k cU4eAvsH5OjM927jSVFSv6krvwtfWDUyTKPP3fDA= From: Sean Bruno To: John Baldwin In-Reply-To: <201208080725.24199.jhb@freebsd.org> References: <1342730963.2656.5.camel@powernoodle.corp.yahoo.com> <201208071730.52899.jhb@freebsd.org> <1344382269.18854.22.camel@powernoodle.corp.yahoo.com> <201208080725.24199.jhb@freebsd.org> Content-Type: text/plain; charset="UTF-8" Date: Wed, 08 Aug 2012 09:59:23 -0700 Message-ID: <1344445163.2813.2.camel@powernoodle.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 445163000 Cc: "freebsd-acpi@freebsd.org" Subject: Re: Time to increase MAX_TASKS? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Aug 2012 17:01:21 -0000 On Wed, 2012-08-08 at 04:25 -0700, John Baldwin wrote: > I meant that with the limit jacked up to something that silences the > warning > (such as 128), what is the max number of tasks queued? > > I set debug.acpi.max_tasks=128 and added a temp log message to acpi_task_enqueue(). I see the system request *98* tasks according to my test on this new Dell box. Is it possible that the queue really isn't running yet or something? AcpiOsExecute: acpi_task_count(98), acpi_max_tasks(128) max_threads(3) code modified to generate log message: for (at = NULL, i = 0; i < acpi_max_tasks; i++) if (atomic_cmpset_int(&acpi_tasks[i].at_flag, ACPI_TASK_FREE, ACPI_TASK_USED)) { at = &acpi_tasks[i]; acpi_task_count++; if (acpi_task_count > 63) printf("AcpiOsExecute: acpi_task_count(%d), acpi_max_tasks(%d) max_threads(%d)\n", acpi_task_count, acpi_max_tasks, acpi_max_threads); break; }