On Fri, 2006-08-04 at 18:01 -0700, Joel Becker wrote:
> On Fri, Aug 04, 2006 at 03:58:58PM -0700, Paul Menage wrote:
> > On 8/4/06, Matt Helsley <[EMAIL PROTECTED]> wrote:
> > >Yes. Can userspace do a mkdir in sysfs? rmdir? My understanding is it
> > >cannot because sysfs directories represent groups of attributes the
> > >represent pre-existing kernel objects. In order to create a directory
> > >we'd likely have to invent some roundabout method for creating these
> > >objects -- perhaps by echo'ing to a file:
> > >
> > >echo 'classes/foo/bar/baz' > /sys/ckrm/mkdir
> > 
> > Why is this worse than doing a mkdir() syscall?
> > 
> > Alternatively and perhaps more cleanly,
> > 
> > echo baz > /sys/ckrm/foo/bar/.create
> 
>       There's no reason that the mkdir(2) in configfs can't trigger
> an object appearing in sysfs.
> 
>     # mkdir config/ckrm/groups/myresourcegroup
>     # ls config/ckrm/groups/myresourcegroup
>     tunables status
>     # ls sys/ckrm/groups/myresourcegroup
>     members
> 
> Or something along those lines.  You'd just have that in your
> make_object() callback.

When the user wants to move a task to a resource group they just write
the pid to the members file. So, it is natural to expect the same file
to display the current members instead of looking at a different file in
a different filesystem.
> 
> Joel
> 
-- 

----------------------------------------------------------------------
    Chandra Seetharaman               | Be careful what you choose....
              - [EMAIL PROTECTED]   |      .......you may get it.
----------------------------------------------------------------------



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
ckrm-tech mailing list
https://lists.sourceforge.net/lists/listinfo/ckrm-tech

Reply via email to