Re: [PATCH] Export shmem_file_setup and shmem_getpage for DRM-GEM

From: Christoph Hellwig
Date: Sun Aug 10 2008 - 21:24:01 EST


On Fri, Aug 01, 2008 at 04:01:58PM -0700, Keith Packard wrote:
> On Fri, 2008-08-01 at 16:50 -0400, Christoph Hellwig wrote:
>
> > Nope. Let the userspace protion create a file in shmfs instead of
> > adding fugly kernel interfaces hdiing this fact.
>
> I can't create that many files; I need thousands of them.

shmfs is perfectly happy to have thousands of files, there are workloads
that have a lot more than that. Note that in other subthreads there is
the assumption that all of them are open and in the fd table at the same
time. I haven't really seen a good explanation for that - objects on
shmfs are persistant until deleted, and when you keep your parent
directory fd open an openat to get at the actual object is cheap.

--
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/