Time to increase MAX_TASKS?
Sean Bruno
seanbru at yahoo-inc.com
Wed Aug 8 17:01:21 UTC 2012
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?
<snip>
AcpiOsExecute: acpi_task_count(98), acpi_max_tasks(128) max_threads(3)
<snip>
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;
}
More information about the freebsd-acpi
mailing list