Re: limit jail disk space

From: Jone Jas (jas_arlerr_at_yahoo.com.cn)
Date: 07/13/05

  • Next message: Christophe Yayon: "Re: nagios and pthreads"
    Date: Wed, 13 Jul 2005 21:34:43 +0800 (CST)
    To: Vlad GALU <vladgalu@gmail.com>
    
    

    Vlad GALU <vladgalu@gmail.com> 写道:
    > Sure. The tools may control all limits such as cpu time, >memory, bandwidth, disk space, etc. I have read the Linux >VServer dlimit code. But I am not very sure where to put the >hooks for inode/blocks control of jail in FreeBSD. This is why I >open this thread. Vlad GALU said I can look to the quota >method. I will try. Thanks.

    >It will most probably be tricky, because you can practically >have the same uid in both worlds (the host and the jail) with >different quota settings mapped to it. So upon granting fs >resources you'd have to check which 'world' the request came >from. If the quota for that world isn't overdue, you check for >that uid's quota inside that world and if that's still OK you >grant the resource.

    If we use different start number for users in jails and in the host as said on some wikis (i.e., increase the start uid for jail users), the different quota mapping will not be confused.

    >You will probably have to add an extra member to the prison >structure, to hold the global quota for that jail.

    Yes, I do think so.

     

                    
    ---------------------------------
    DO YOU YAHOO!?
      雅虎邮箱超强增值服务-2G超大空间、pop3收信、无限量邮件提醒
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Christophe Yayon: "Re: nagios and pthreads"

    Relevant Pages

    • jail - unable to print from inside jail
      ... My host was built with as a minimal FreeBSD 7.2-Release ... I added ezjail and created two jails. ... I can access the administration website. ... HP PhotoSmart 7350 Foomatic/hpijs ...
      (freebsd-questions)
    • Re: Any advice for a Partition Plan for a multi-jailed Server?
      ... "You should never setup your FreeBSD systems the way Linux or other ... The server's goal state is 4 jails, plus the non-jailed host: ... keep the host as simple as possible, as building multiple jails will just ...
      (freebsd-questions)
    • Re: jail - unable to print from inside jail
      ... My host was built with as a minimal FreeBSD 7.2-Release ... I added ezjail and created two jails. ... add path 'unlpt*' mode 0660 group cups ... i change permissions on /dev/ulpt0 and now i can print a test ...
      (freebsd-questions)
    • Re: RELENG_7 jails on current host
      ... I'm looking for some confirmation/caveats for using a -current host and RELENG_7 jails. ... The reason I'm wanting to do this is because I'm happily running current on my work laptop but building ports interferes too much. ... I figured building ports in a -current jail on a -stable host would not work very well, but I'll happily be corrected on that if that's no problem. ...
      (freebsd-current)
    • Re: jailed "system" needs IPV4 access
      ... caused by me routing a network through a client firewall rather than a ... (the jails require real ip addresses. ... jails on the .2 host. ... The jails are there for http and https ...
      (comp.unix.bsd.freebsd.misc)