lkml.org 
[lkml]   [2008]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.



\
 
 \ /
  Last update: 2008-08-11 03:27    [W:0.173 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site