Messages in this thread | | | Date | Sun, 10 Aug 2008 21:23:47 -0400 | From | Christoph Hellwig <> | Subject | Re: [PATCH] Export shmem_file_setup and shmem_getpage for DRM-GEM |
| |
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.
| |