Re: files/process scaling problem? (was: [PATCH] Exportshmem_file_setup and shmem_getpage for DRM-GEM)

From: Alan Cox
Date: Mon Aug 04 2008 - 04:37:16 EST


> The other issue is that several important applications (including the X
> server) use select instead of poll, and they have a small maximum number
> of fds that they support. It seems like this could be worked around by
> dup2'ing the shmem fds up a ways.

That would work yes. Switching to poll() would probably be even smarter,
or if you have a large number of fds being scanned take a look at epoll
which is likely to be far more efficient but wouldn't be available on so
many systems - poll is at least standard.
--
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/