Skip to contentSkip to conversation

necessary to limit container's network bandwidth when use physical nic in container?

DISCUSSION Gao feng 3 participants 5 messages Oct 15, 2012 – Oct 16, 2012 4 messages not in the archive

lore
Share & tools
lore

Gao feng

author
#0 lore raw

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!

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#2 lore raw

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!

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 11 lines · Gao feng

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#6 lore raw
Quoted 10 lines · Michal Privoznik
Quoted 9 lines · Gao feng

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?

Quoted 9 lines
Quoted 2 lines

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
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/containers

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw
Quoted 21 lines · Gao feng
Quoted 10 lines · Michal Privoznik
Quoted 9 lines · Gao feng

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?

Quoted 9 lines
Quoted 2 lines

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.

Quoted 2 lines

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
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/containers