Linux Container Development
 help / color / mirror / Atom feed
* LXC quota support
@ 2009-09-01 16:30 Krzysztof Taraszka
       [not found] ` <ac1c4bf20909010930q5721c9bas2ea3722e94657820-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Taraszka @ 2009-09-01 16:30 UTC (permalink / raw)
  To: lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f; +Cc: Linux Containers

Hello,

I am looking for quota support for LXC containers. For example, I would like
to have two containers.  One of them may have 20GB, second 50GB.
I found this one patch:
https://lists.linux-foundation.org/pipermail/containers/2009-February/015807.htmland
I have a question. Does there is another implemented method for have
disk quota for container and his cgrop ? How about rootfs available disk
space information ? If no, is there any ideas how to and when the disk quota
will be implemented?

-- 
K

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [lxc-devel] LXC quota support
       [not found] ` <ac1c4bf20909010930q5721c9bas2ea3722e94657820-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-09-01 18:32   ` Daniel Lezcano
       [not found]     ` <4A9D68D1.5030807-GANU6spQydw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Lezcano @ 2009-09-01 18:32 UTC (permalink / raw)
  To: kt-S89nZTSLPHGGdvJs77BJ7Q
  Cc: Linux Containers, lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Krzysztof Taraszka wrote:
> Hello,
> 
> I am looking for quota support for LXC containers. For example, I would like
> to have two containers.  One of them may have 20GB, second 50GB.
> I found this one patch:
> https://lists.linux-foundation.org/pipermail/containers/2009-February/015807.htmland
> I have a question. Does there is another implemented method for have
> disk quota for container and his cgrop ? How about rootfs available disk
> space information ? If no, is there any ideas how to and when the disk quota
> will be implemented?

Anqui did a first try with this patch. The feature was positively 
received but not in this form. I don't know what is the status of this 
work, but maybe Anqui can give an answer :) - Cc'ed.

Anqui ? Did you tried to implement quotas with the directory hierarchy 
level as suggested Paul ?

Krzysztof, one solution to restrict disk usage to a container can be to 
create an disk image of 20GB, mount it on a directory, install the 
rootfs on it and use this directory as the rootfs for the container.

  -- Daniel

ps: The disk image should be a sparse file ;)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [lxc-devel] LXC quota support
       [not found]     ` <4A9D68D1.5030807-GANU6spQydw@public.gmane.org>
@ 2009-09-03  2:53       ` anqin
       [not found]         ` <d95d44a20909021953x7779a2dfpcc38e5915ae5515b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: anqin @ 2009-09-03  2:53 UTC (permalink / raw)
  To: Daniel Lezcano
  Cc: Linux Containers, kt-S89nZTSLPHGGdvJs77BJ7Q,
	lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Wed, Sep 2, 2009 at 2:32 AM, Daniel Lezcano<daniel.lezcano-GANU6spQydw@public.gmane.org> wrote:
> Krzysztof Taraszka wrote:
>>
>> Hello,
>>
>> I am looking for quota support for LXC containers. For example, I would
>> like
>> to have two containers.  One of them may have 20GB, second 50GB.
>> I found this one patch:
>>
>> https://lists.linux-foundation.org/pipermail/containers/2009-February/015807.htmland
>> I have a question. Does there is another implemented method for have
>> disk quota for container and his cgrop ? How about rootfs available disk
>> space information ? If no, is there any ideas how to and when the disk
>> quota
>> will be implemented?
>
> Anqui did a first try with this patch. The feature was positively received
> but not in this form. I don't know what is the status of this work, but
> maybe Anqui can give an answer :) - Cc'ed.
>
> Anqui ? Did you tried to implement quotas with the directory hierarchy level
> as suggested Paul ?
>

Yes, I am still in this work. I have attached a tag to directory
hierarchy which
can account the space consumption of each sub-directories and its files for
different task groups. The way indeed can calculate the total disk consumpton
of each group and limit its quota, however other trouble occurs when facing
access control and security issue. I am dealing with the issue.


> Krzysztof, one solution to restrict disk usage to a container can be to
> create an disk image of 20GB, mount it on a directory, install the rootfs on
> it and use this directory as the rootfs for the container.
>

This is another way to achieve same functionalities, by 'dd'ing image file
with given quota and mounting as rootfs of task group. However, it is not
easy to change the limited quota dynamically. This is not flexible enough
for performance control (in green computing) and resource enforcement
(in cloud computing).





Best,

Anqin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [lxc-devel] LXC quota support
       [not found]         ` <d95d44a20909021953x7779a2dfpcc38e5915ae5515b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-09-03  8:49           ` Daniel Lezcano
       [not found]             ` <4A9F8320.6090001-GANU6spQydw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Lezcano @ 2009-09-03  8:49 UTC (permalink / raw)
  To: anqin
  Cc: Linux Containers, kt-S89nZTSLPHGGdvJs77BJ7Q,
	lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

anqin wrote:
> On Wed, Sep 2, 2009 at 2:32 AM, Daniel Lezcano<daniel.lezcano-GANU6spQydw@public.gmane.org> wrote:
>> Krzysztof Taraszka wrote:
>>> Hello,
>>>
>>> I am looking for quota support for LXC containers. For example, I would
>>> like
>>> to have two containers.  One of them may have 20GB, second 50GB.
>>> I found this one patch:
>>>
>>> https://lists.linux-foundation.org/pipermail/containers/2009-February/015807.htmland
>>> I have a question. Does there is another implemented method for have
>>> disk quota for container and his cgrop ? How about rootfs available disk
>>> space information ? If no, is there any ideas how to and when the disk
>>> quota
>>> will be implemented?
>> Anqui did a first try with this patch. The feature was positively received
>> but not in this form. I don't know what is the status of this work, but
>> maybe Anqui can give an answer :) - Cc'ed.
>>
>> Anqui ? Did you tried to implement quotas with the directory hierarchy level
>> as suggested Paul ?
>>
> 
> Yes, I am still in this work. I have attached a tag to directory
> hierarchy which
> can account the space consumption of each sub-directories and its files for
> different task groups. The way indeed can calculate the total disk consumpton
> of each group and limit its quota, however other trouble occurs when facing
> access control and security issue. I am dealing with the issue.


Excellent !

If you have a patchset, even not working nor tested or not compiled, I 
will be happy to review it.

>> Krzysztof, one solution to restrict disk usage to a container can be to
>> create an disk image of 20GB, mount it on a directory, install the rootfs on
>> it and use this directory as the rootfs for the container.
>>
> 
> This is another way to achieve same functionalities, by 'dd'ing image file
> with given quota and mounting as rootfs of task group. However, it is not
> easy to change the limited quota dynamically. This is not flexible enough
> for performance control (in green computing) and resource enforcement
> (in cloud computing).

Yep, agreed.

Thanks Anquin

   -- Daniel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [lxc-devel] LXC quota support
       [not found]             ` <4A9F8320.6090001-GANU6spQydw@public.gmane.org>
@ 2009-09-03 10:33               ` anqin
  0 siblings, 0 replies; 5+ messages in thread
From: anqin @ 2009-09-03 10:33 UTC (permalink / raw)
  To: Daniel Lezcano
  Cc: Linux Containers, kt-S89nZTSLPHGGdvJs77BJ7Q,
	lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> If you have a patchset, even not working nor tested or not compiled, I will
> be happy to review it.
>

Thanks. I will submit them after they are ready.


Best,

Anqin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-09-03 10:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-01 16:30 LXC quota support Krzysztof Taraszka
     [not found] ` <ac1c4bf20909010930q5721c9bas2ea3722e94657820-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-09-01 18:32   ` [lxc-devel] " Daniel Lezcano
     [not found]     ` <4A9D68D1.5030807-GANU6spQydw@public.gmane.org>
2009-09-03  2:53       ` anqin
     [not found]         ` <d95d44a20909021953x7779a2dfpcc38e5915ae5515b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-09-03  8:49           ` Daniel Lezcano
     [not found]             ` <4A9F8320.6090001-GANU6spQydw@public.gmane.org>
2009-09-03 10:33               ` anqin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox