Re: [PATCH] /dev/epoll update ...

Jamie Lokier (lk@tantalophile.demon.co.uk)
Mon, 24 Sep 2001 22:56:16 +0100


Davide Libenzi wrote:
> > You could even keep the memory for the queued signal / event inside
the file structure.
>
> By keeping the event structure inside the file* require you to collect
> these events ( read memory moves ) at peek time.
> With /dev/epoll the event is directly dropped inside the mmaped area.

Well, memory move consists of 2 words: (a) file descriptor; (b) poll
state/edge flags.

That will be completely swamped by the system calls and so on needed to
processes each of the file descriptors. I.e. no scalability problem here.

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