Messages in this thread | | | Date | Mon, 4 Aug 2008 06:51:01 -0700 | From | Arjan van de Ven <> | Subject | Re: files/process scaling problem? (was: [PATCH] Export shmem_file_setup and shmem_getpage for DRM-GEM) |
| |
On Mon, 4 Aug 2008 09:19:30 +0100 Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> > 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. > --
the hard part is that DRI is a library that gets linked into existing applications... which already are using select ;-(
Fixing X is one thing and not impossible.. fixing all existing games in the field is quite another
-- If you want to reach me at my work email, use arjan@linux.intel.com For development, discussion and tips for power savings, visit http://www.lesswatts.org
| |