From: Jeff Liu <jeff.liu@oracle.com>
To: xfs@oss.sgi.com
Subject: Question about project quota with container
Date: Wed, 29 Feb 2012 09:49:07 +0800 [thread overview]
Message-ID: <4F4D8413.4050709@oracle.com> (raw)
Hello,
Recently, I myself working on a RFC/PATCH regarding supply quota
supports to Linux container.
Per my investigation, looks the project quota feature in XFS is a great
start point, so that all the tasks/processes running at a particular
container(most likely in a virtual guest environment) would have
constrained by project quota. Project quota is pretty cool, thank you
guys for working it out!
Now I have two rough ideas related to combine container with XFS:
The first choice is, mount XFS with PQUOTA option, place the virtual
guest on XFS disk, and setup project quota on the desired directory in
the first place, then assign the project_id to container via cgroup
control files.
The limits value(i.e, inode quota/block quota are setup based on cgroup
control files too). In this case, there is no need to specify those
limits via xfs_quota(1).
However, to implement that, the projects directory path and project id
are still need to configured at /etc/projects && /etc/projid firstly if
they are not setup through command line directly. Or even they are
configured via command line, but those two files will still be take into
account if they are presented.
I was wondering if other file system will also implement project quota
based on these two configuration files in the future? In other words, is
it a standard?
Alternatively, maybe the project path and ID can be setup at cgroup
control files too, the following things could be implemented like
"xfsprogs/quota/edit.c", but I would put aside this idea for now.
Would you guys please give any suggestions?
Thanks in advance!
-Jeff
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next reply other threads:[~2012-02-29 4:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-29 1:49 Jeff Liu [this message]
2012-02-29 8:36 ` Question about project quota with container Christoph Hellwig
2012-02-29 7:21 ` Jeff Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F4D8413.4050709@oracle.com \
--to=jeff.liu@oracle.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox