Re: limit jail disk space

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

  • Next message: Jone Jas: "Re: limit jail disk space"
    Date: Wed, 13 Jul 2005 21:22:58 +0800 (CST)
    To: Alex Lyashkov <shadow@psoft.net>
    
    

    Alex Lyashkov <shadow@psoft.net> 写道:
    > >option QUOTA? or jail disklimit?
    > I mean jail disk limit
    >
    > >for jail disklimit more easy create tools who controled all
    > limits >for jail.
    > >Look to LinuxVServer project (www.linux-vserver.org) or
    > >FreeVPS.
    > 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.
    > --
    >If you look into quota function you can see it called from >inode/blocks allocation/deallocation code at same points you >can install disklimits hooks.
    >I can`t find any benefit add new quota type (total size used at >jail) - this way was used at early version Linux VServer but >have are one problem - more difficult create separated per jail >diskquota.

    I am really not aware of this. Are there some conflicts?

    >If you create disklimit separated from quota code you can >easy add quota hash ptr into prison structure and switch >hashes when work.
    >Next problem - where store jail id for dinode struct. >rwantson@ say we need use xattr for this, but my opinion use >reserved fields in dinode.

    Yes. My opinion is the same with yours.

    -- 
    FreeVPS Developers Team http://www.freevps.com
    __________________________________________________
    赶快注册雅虎超大容量免费邮箱?
    http://cn.mail.yahoo.com
    _______________________________________________
    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: Jone Jas: "Re: limit jail disk space"

    Relevant Pages

    • [SoC] Jail Resource Limits
      ... folks: I've completed the Summer of Code work on the jail resource limits; jails can now have soft-ish limits placed on their memory and CPU usage. ... Briefly, when a jail uses more memory than its limit, pages are clawed back by a new kernel process, jpager. ... When a jail uses more CPU time in proportion to total CPU time used than the number of its CPU usage shares to the total CPU usage shares, its processes are dropped in priority until it's had its fair share of the total CPU time; if there are no other processes that want to run, they'll use up as much CPU time as they otherwise would. ...
      (freebsd-hackers)
    • jail process limits
      ... I've got a jail server which runs a bunch of web site development environments. ... If I try to start an application server as user httpd in one of the jails, it exits immediately with "Cannot fork: Resource temporarily unavailable". ... Why am I getting the resource unavailable when I barely have 230 processes, not even close to the limits. ...
      (freebsd-stable)
    • Re: jail & security
      ... > On Thu, 23 Aug 2001, Alexey Zakirov wrote: ... >> actually can given the right patches to the jail subsystem. ... the cpu/memory limits were being properly limited by login.conf. ... This is obviously required allot of memory/CPU. ...
      (FreeBSD-Security)
    • Re: Thanks to Bush You are now all CRIMINALS !!!
      ... >Dave Hazelwood wrote: ... Bush says you are therefore a criminal! ... Being on your way to jail? ... they want to quell criticism and control the one media they do not already ...
      (rec.sport.tennis)
    • Re: "Boys to men minus dad"
      ... >> So why do so many of their sons end up dead, in jail or harming women? ... >> Uncovering the truth equates to being labelled sexist, ... >> Ah because feminists are control freaks. ...
      (soc.men)