* Question about project quota with container
@ 2012-02-29 1:49 Jeff Liu
2012-02-29 8:36 ` Christoph Hellwig
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Liu @ 2012-02-29 1:49 UTC (permalink / raw)
To: xfs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question about project quota with container
2012-02-29 8:36 ` Christoph Hellwig
@ 2012-02-29 7:21 ` Jeff Liu
0 siblings, 0 replies; 3+ messages in thread
From: Jeff Liu @ 2012-02-29 7:21 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: xfs
Hi Christoph,
Thanks for you prompt response!
On 02/29/2012 04:36 PM, Christoph Hellwig wrote:
>> 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?
>
> The have been a few attempts at roughly similar quotas for ext4, but
> they were incompatible enough to not reuse any infrastructure like this.
>
>>
>> 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.
>
> Assigning the project IDs in the cgroups code sounds fine to me.
Ok, I'll try it first.
> To make peoples life's easier it might be good idea to keep the
> /etc/projects and /etc/projid files uptodate even from that code.
To update these two files at cgroup is also fine to me.
Thanks,
-Jeff
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question about project quota with container
2012-02-29 1:49 Question about project quota with container Jeff Liu
@ 2012-02-29 8:36 ` Christoph Hellwig
2012-02-29 7:21 ` Jeff Liu
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2012-02-29 8:36 UTC (permalink / raw)
To: Jeff Liu; +Cc: xfs
> 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?
The have been a few attempts at roughly similar quotas for ext4, but
they were incompatible enough to not reuse any infrastructure like this.
>
> 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.
Assigning the project IDs in the cgroups code sounds fine to me. To
make peoples life's easier it might be good idea to keep the
/etc/projects and /etc/projid files uptodate even from that code.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-29 10:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-29 1:49 Question about project quota with container Jeff Liu
2012-02-29 8:36 ` Christoph Hellwig
2012-02-29 7:21 ` Jeff Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox