Andrew Morton <[email protected]> writes:
>
> OK, I fixed that up.
>
> The next patch (make-kthread_stop-scalable) removes the find_task_by_pid()
> anyway.
Ok. Neat. I still need to review these a little more I have a different
set of criteria, but it is interesting work..
> Our kthread creation performance will be pretty poor anyway, due to the
> need to do two (or more?) context switches. If we ever need
> super-low-latency kernel thread creation (eg, on-demand threads for AIO)
> then that code would need to go direct to kernel_thread(), I guess.
Sure. AIO is a little bit of a different beast as it is IO for user space.
If low latency is important for starting kernel threads the right
answer would be to dig into the code and have a version rewrite
kernel_thread so that we copied a reference process instead of the
current.
Right now my practical target is killing all of the kernel threads
started with kernel_thread that then call daemonize. So we can remove
daemonize, as it is a serious maintenance hazard. kthread needs just
a little bit more work to support that.
Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]