Re: Proposal for task_queue() WorkToDo Optimization for Network File Systems

From: Jamie Lokier (lk@tantalophile.demon.co.uk)
Date: Mon May 15 2000 - 13:05:43 EST


Jeff V. Merkey wrote:
> Work To Do Model in NetWare
> ---------------------------

Dynamic thread creation, where when one WTD thread blocks another is
automatically created for the next task, would be useful in user space
too. This has been discussed before but nothing much came of it.

It's my understanding that clone() thread creation is pretty fast
already -- so if you could provide a mechanism for "when thread A blocks
wake up (or create if you prefer) thread B" that is equally usable by
user and kernel threads, that would be a nice mechanism for a number of
scheduling problems.

The other part: where an interrupt routine can schedule a task to be run
on exit from the interrupt, is already implemented many different ways
in Linux. Tasklets, BHs and "soft real-time" tasks all fall into this
category.

There are some bugs in the main kernel which mean that real-time tasks
aren't always run on time, and within the kernel, it is not preemptible
in general. But both of these things are addressed pretty well by
Ingo's low-latency patch, and as a mere performance optimisation that
probably isn't required anyway.

enjoy,
-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:26 EST