Re: [RFC][PATCH 4/7] UBC: syscalls (user interface)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-08-17 at 16:04 +0400, Kirill Korotaev wrote:
> >>Add the following system calls for UB management:
> >>  1. sys_getluid    - get current UB id
> >>  2. sys_setluid    - changes exec_ and fork_ UBs on current
> >>  3. sys_setublimit - set limits for resources consumtions
> >>
> > 
> > 
> > Why not have another system call for getting the current limits?
> will add sys_getublimit().
> 
> > But as I said in previous mail, configfs seems like a better choice for
> > user interface.  That way user has to go to one place to read/write
> > limits, see the current usage and other stats.
> Check another email about interfaces. I have arguments against it :/
> 

...and I'm still not convinced that syscall is the right approach.

> > I think there should be a check here for seeing if the new limits are
> > lower than the current usage of a resource.  If so then take appropriate
> > action.
> any idea what exact action to add here?
> Looks like can be added when needed, agree?
> 

When you have the support of user memory, then operations like flush the
extra pages belonging to the container to disk seems reasonable.

-rohit

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux