* necessary to limit container's network bandwidth when use physical nic in container?
@ 2012-10-15 8:05 Gao feng
[not found] ` <507BC3E0.6070304-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Gao feng @ 2012-10-15 8:05 UTC (permalink / raw)
To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
libvir-list-H+wXaHxf7aLQT0dZR+AlfA
we can use tc to limit container's network bandwidth when the container uses veth device.
because one of the veth devices will be seen in the host.so we can set tc rules on this
device on the host.
I want to know if it's necessary to limit container's network bandwidth when the container
uses a physical nic device. because this nic device is only used by this container.
And if this is necessary,Be there any good idea?
Thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
* necessary to limit container's network bandwidth when use physical nic in container?
[not found] ` <507BC3E0.6070304-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2012-10-15 8:35 ` Gao feng
[not found] ` <507BCAC3.4020609-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Gao feng @ 2012-10-15 8:35 UTC (permalink / raw)
To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
libvir-list-H+wXaHxf7aLQT0dZR+AlfA
we can use tc to limit container's network bandwidth when the container uses veth device.
because one of the veth devices will be seen in the host.so we can set tc rules on this
device on the host.
I want to know if it's necessary to limit container's network bandwidth when the container
uses a physical nic device. because this nic device is only used by this container.
And if this is necessary,Be there any good idea?
Thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [libvirt] necessary to limit container's network bandwidth when use physical nic in container?
[not found] ` <507BCAC3.4020609-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2012-10-15 8:52 ` Michal Privoznik
[not found] ` <507BCED9.1080003-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Michal Privoznik @ 2012-10-15 8:52 UTC (permalink / raw)
To: Gao feng
Cc: libvir-list-H+wXaHxf7aLQT0dZR+AlfA,
containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
On 15.10.2012 10:35, Gao feng wrote:
> we can use tc to limit container's network bandwidth when the container uses veth device.
> because one of the veth devices will be seen in the host.so we can set tc rules on this
> device on the host.
>
> I want to know if it's necessary to limit container's network bandwidth when the container
> uses a physical nic device. because this nic device is only used by this container.
>
> And if this is necessary,Be there any good idea?
>
> Thanks!
>
Well, that depends. If you expect you guest to consume all bandwidth
then you need to set a floor on root eth. Guest is then still able to
use the full bandwidth, however if there are some packets for the host
those get prioritized. In general, it's a good idea, but to tell for
sure one should learn more about your usage scenario.
Michal
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [libvirt] necessary to limit container's network bandwidth when use physical nic in container?
[not found] ` <507BCED9.1080003-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2012-10-16 2:17 ` Gao feng
[not found] ` <507CC3C3.7030306-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Gao feng @ 2012-10-16 2:17 UTC (permalink / raw)
To: Michal Privoznik
Cc: libvir-list-H+wXaHxf7aLQT0dZR+AlfA,
containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
于 2012年10月15日 16:52, Michal Privoznik 写道:
> On 15.10.2012 10:35, Gao feng wrote:
>> we can use tc to limit container's network bandwidth when the container uses veth device.
>> because one of the veth devices will be seen in the host.so we can set tc rules on this
>> device on the host.
>>
>> I want to know if it's necessary to limit container's network bandwidth when the container
>> uses a physical nic device. because this nic device is only used by this container.
>>
>> And if this is necessary,Be there any good idea?
>>
>> Thanks!
>>
>
> Well, that depends. If you expect you guest to consume all bandwidth
> then you need to set a floor on root eth. Guest is then still able to
> use the full bandwidth, however if there are some packets for the host
> those get prioritized. In general, it's a good idea, but to tell for
> sure one should learn more about your usage scenario.
>
But we can't see container's nic device in host,how can we set a floor on
container's root eth?
Thanks!
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/containers
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [libvirt] necessary to limit container's network bandwidth when use physical nic in container?
[not found] ` <507CC3C3.7030306-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2012-10-16 2:33 ` Eric W. Biederman
0 siblings, 0 replies; 5+ messages in thread
From: Eric W. Biederman @ 2012-10-16 2:33 UTC (permalink / raw)
To: Gao feng
Cc: libvir-list-H+wXaHxf7aLQT0dZR+AlfA, Michal Privoznik,
containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
Gao feng <gaofeng@cn.fujitsu.com> writes:
> 于 2012年10月15日 16:52, Michal Privoznik 写道:
>> On 15.10.2012 10:35, Gao feng wrote:
>>> we can use tc to limit container's network bandwidth when the container uses veth device.
>>> because one of the veth devices will be seen in the host.so we can set tc rules on this
>>> device on the host.
>>>
>>> I want to know if it's necessary to limit container's network bandwidth when the container
>>> uses a physical nic device. because this nic device is only used by this container.
>>>
>>> And if this is necessary,Be there any good idea?
>>>
>>> Thanks!
>>>
>>
>> Well, that depends. If you expect you guest to consume all bandwidth
>> then you need to set a floor on root eth. Guest is then still able to
>> use the full bandwidth, however if there are some packets for the host
>> those get prioritized. In general, it's a good idea, but to tell for
>> sure one should learn more about your usage scenario.
>>
>
> But we can't see container's nic device in host,how can we set a floor on
> container's root eth?
I can't see how any qos shaping of a physical nic directly assigned to a
container is useful. You may want to limit the total cpu time assigned
to a container which should throttle your network connections. But I
don't see what limiting the number of packets that go out an interface
will achieve.
Eric
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/containers
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-10-16 2:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-15 8:05 necessary to limit container's network bandwidth when use physical nic in container? Gao feng
[not found] ` <507BC3E0.6070304-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-10-15 8:35 ` Gao feng
[not found] ` <507BCAC3.4020609-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-10-15 8:52 ` [libvirt] " Michal Privoznik
[not found] ` <507BCED9.1080003-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-10-16 2:17 ` Gao feng
[not found] ` <507CC3C3.7030306-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-10-16 2:33 ` Eric W. Biederman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.