Re: Syslets, Threadlets, generic AIO support, v6



On Wed, May 30, 2007 at 10:42:52AM +0200, Ingo Molnar (mingo@xxxxxxx) wrote:
it is a serious flexibility issue that should not be ignored. The
unified fd space is a blessing on one hand because it's simple and
powerful, but it's also a curse because nested use of the fd space for
libraries is currently not possible. But it should be detached from any
fundamental question of kevent vs. epoll. (By improving library use of
file descriptors we'll improve the utility of all syscalls - by ducking
to a memory based API we only solve that particular event based usage.)

There is another issue with file descriptors - userspace must dig into
kernel each time it wants to get a new set of events, while with memory
based approach it has them without doing so. After it has returned from
kernel and know that there are some evetns, kernel can add more of them
into the ring (if there is a place) and userspace will process them
withouth additional syscalls.
Although syscall overhead is very small, it does exist and should not be
ignored in the design.


Ingo

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



Relevant Pages

  • Re: [PATCH] Remove process freezer from suspend to RAM pathway
    ... Atomically sends SIGSTOP to all userspace processes in a non-trappable way, except the calling process and any process which is ptracing it. ... I don't think it matters whether it's userspace or kernel that does the suspending and I'm yet to see a good reason for it to be done from userspace. ... You don't actually care if its sleeping in the kernel somewhere, just as long as it doesn't allocate much memory. ... One CPU turns off all interrupts on itself and takes an atomic snapshot of kernel memory into the previously allocated storage. ...
    (Linux-Kernel)
  • Re: [PATCH] Remove process freezer from suspend to RAM pathway
    ... snapshot). ... swsusp and uswsusp do now) to only half the amount of memory. ... Atomically sends SIGSTOP to all userspace processes in a non- ... Kernel starts freeing memory and swapping stuff out to make ...
    (Linux-Kernel)
  • Re: [ANNOUNCE] Minneapolis Cluster Summit, July 29-30
    ... A userspace service will not. ... The kernel block device now ... > overload conditions that have caused the kernel to run low on memory ... > openais uses extensively: ...
    (Linux-Kernel)
  • Re: [ANNOUNCE] Minneapolis Cluster Summit, July 29-30
    ... >> in userspace, so why not do it there. ... The kernel block device now needs to yell to the user space ... > need to allocate some memory to do that, and, whoops, the kernel won't give ... preallocated so the openais executive (the thing that does all of the ...
    (Linux-Kernel)
  • Re: Sharing memory between kernelspace and userspace
    ... deallocate, on a totally dynamic basis, userspace ... Let userspace allocate shared memory visible to multiple ... and pass that into the kernel for it to write to. ...
    (Linux-Kernel)