* limit conectivity of a VM
@ 2010-11-19 19:47 hadi golestani
2010-11-19 20:01 ` Javier Guerra Giraldez
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: hadi golestani @ 2010-11-19 19:47 UTC (permalink / raw)
To: kvm
Hello,
I need to limit the port speed of a VM to 10 mbps ( or 5 mbps if it's possible).
What's the way of doing so?
Regards
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit conectivity of a VM
2010-11-19 19:47 limit conectivity of a VM hadi golestani
@ 2010-11-19 20:01 ` Javier Guerra Giraldez
2010-11-20 1:18 ` Markus Breitländer
2010-11-20 8:40 ` Thomas Mueller
2 siblings, 0 replies; 10+ messages in thread
From: Javier Guerra Giraldez @ 2010-11-19 20:01 UTC (permalink / raw)
To: hadi golestani; +Cc: kvm
On Fri, Nov 19, 2010 at 2:47 PM, hadi golestani
<hadi.golestani@gmail.com> wrote:
> Hello,
> I need to limit the port speed of a VM to 10 mbps ( or 5 mbps if it's possible).
> What's the way of doing so?
tc
check http://lartc.org/howto/lartc.qdisc.html
--
Javier
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit conectivity of a VM
2010-11-19 19:47 limit conectivity of a VM hadi golestani
2010-11-19 20:01 ` Javier Guerra Giraldez
@ 2010-11-20 1:18 ` Markus Breitländer
2010-11-20 8:40 ` Thomas Mueller
2 siblings, 0 replies; 10+ messages in thread
From: Markus Breitländer @ 2010-11-20 1:18 UTC (permalink / raw)
To: hadi golestani; +Cc: kvm
Hello,
you may also have a look at VDE (Virtual Distributed Ethernet). You can
connect your VMs to virtual switches and then use the tool
'wirefilter'[1] to modify different attributes (bandwidth, loss, delay,
etc) of the virtual network.
[1] http://wiki.virtualsquare.org/wiki/index.php/VDE
Regards,
Markus
Am 19.11.2010 20:47, schrieb hadi golestani:
> Hello,
> I need to limit the port speed of a VM to 10 mbps ( or 5 mbps if it's possible).
> What's the way of doing so?
>
> Regards
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit conectivity of a VM
2010-11-19 19:47 limit conectivity of a VM hadi golestani
2010-11-19 20:01 ` Javier Guerra Giraldez
2010-11-20 1:18 ` Markus Breitländer
@ 2010-11-20 8:40 ` Thomas Mueller
2010-11-20 15:39 ` Javier Guerra Giraldez
[not found] ` <AANLkTinH5AJuoa5HjOnjZun8dRhzfPx86sP2QhuUCue=@mail.gmail.com>
2 siblings, 2 replies; 10+ messages in thread
From: Thomas Mueller @ 2010-11-20 8:40 UTC (permalink / raw)
To: kvm
Am Fri, 19 Nov 2010 23:17:42 +0330 schrieb hadi golestani:
> Hello,
> I need to limit the port speed of a VM to 10 mbps ( or 5 mbps if it's
> possible). What's the way of doing so?
>
> Regards
maybe one of the virtual network cards is 10mbit? start kvm with "-net
nic,model=?" to get a list.
- Thomas
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit conectivity of a VM
2010-11-20 8:40 ` Thomas Mueller
@ 2010-11-20 15:39 ` Javier Guerra Giraldez
2010-11-20 18:00 ` linux_kvm
[not found] ` <AANLkTinH5AJuoa5HjOnjZun8dRhzfPx86sP2QhuUCue=@mail.gmail.com>
1 sibling, 1 reply; 10+ messages in thread
From: Javier Guerra Giraldez @ 2010-11-20 15:39 UTC (permalink / raw)
To: Thomas Mueller; +Cc: kvm
On Sat, Nov 20, 2010 at 3:40 AM, Thomas Mueller <thomas@chaschperli.ch> wrote:
> maybe one of the virtual network cards is 10mbit? start kvm with "-net
> nic,model=?" to get a list.
wouldn't matter. different models emulate the hardware registers
used to transmit, not the performance.
if you had infinitely fast processors, every virtual network would be
infinitely fast.
--
Javier
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit conectivity of a VM
2010-11-20 15:39 ` Javier Guerra Giraldez
@ 2010-11-20 18:00 ` linux_kvm
0 siblings, 0 replies; 10+ messages in thread
From: linux_kvm @ 2010-11-20 18:00 UTC (permalink / raw)
To: Javier Guerra Giraldez
> if you had infinitely fast processors, every virtual network would be
> infinitely fast.
I see on a Vyatta VM, that an interface's link speed attribute can be
explicitly defined, along with duplex.
Possible values are 10 100 & 1000 Mb, and are configured independently
of the driver/model of NIC.
I haven't tested it yet, and since discovering this detail, have been
somewhat disheartened at the thought of ~8 Gb vhost throughput being
throttled by the highest possible link speed setting being 1000 Mb.
So maybe plan b could be to install a test router just for that
function, and loop through it.
-C
On Sat, 20 Nov 2010 10:39 -0500, "Javier Guerra Giraldez"
<javier@guerrag.com> wrote:
> On Sat, Nov 20, 2010 at 3:40 AM, Thomas Mueller <thomas@chaschperli.ch>
> wrote:
> > maybe one of the virtual network cards is 10mbit? start kvm with "-net
> > nic,model=?" to get a list.
>
> wouldn't matter. different models emulate the hardware registers
> used to transmit, not the performance.
>
> if you had infinitely fast processors, every virtual network would be
> infinitely fast.
>
> --
> Javier
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* limit conectivity of a VM
[not found] ` <AANLkTinH5AJuoa5HjOnjZun8dRhzfPx86sP2QhuUCue=@mail.gmail.com>
@ 2010-11-22 14:24 ` hadi golestani
2010-11-22 14:31 ` mjt
0 siblings, 1 reply; 10+ messages in thread
From: hadi golestani @ 2010-11-22 14:24 UTC (permalink / raw)
To: kvm
here it's the answer of kvm -net nic,model=?
qemu: Supported NIC models:
ne2k_pci,i82551,i82557b,i82559er,rtl8139,e1000,pcnet,virtio
which one is 10mbps and which one is 100 or 1000 mbps?
does it require to install the proper driver on a centos VM for each
one of them?
Regards
On Sat, Nov 20, 2010 at 12:40 AM, Thomas Mueller <thomas@chaschperli.ch> wrote:
> Am Fri, 19 Nov 2010 23:17:42 +0330 schrieb hadi golestani:
>
>> Hello,
>> I need to limit the port speed of a VM to 10 mbps ( or 5 mbps if it's
>> possible). What's the way of doing so?
>>
>> Regards
>
> maybe one of the virtual network cards is 10mbit? start kvm with "-net
> nic,model=?" to get a list.
>
>
> - Thomas
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit conectivity of a VM
2010-11-22 14:24 ` hadi golestani
@ 2010-11-22 14:31 ` mjt
2010-11-22 14:36 ` hadi golestani
0 siblings, 1 reply; 10+ messages in thread
From: mjt @ 2010-11-22 14:31 UTC (permalink / raw)
To: hadi golestani; +Cc: kvm
22.11.2010 17:24, hadi golestani wrote:
> here it's the answer of kvm -net nic,model=?
> qemu: Supported NIC models:
> ne2k_pci,i82551,i82557b,i82559er,rtl8139,e1000,pcnet,virtio
> which one is 10mbps and which one is 100 or 1000 mbps?
As has been already pointed out, these speeds are speeds of
physical cirquits in the real hardware boards. qemu-kvm
emulated "hardware" merely reports this speed to the guest,
but does not use it in any way - the actual speed is always
limited by your CPU and nothing more.
/mjt
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit conectivity of a VM
2010-11-22 14:31 ` mjt
@ 2010-11-22 14:36 ` hadi golestani
2010-11-22 14:47 ` mjt
0 siblings, 1 reply; 10+ messages in thread
From: hadi golestani @ 2010-11-22 14:36 UTC (permalink / raw)
To: mjt, kvm
Thanks,
But I've heared that using e1000 and installing it's driver will speed
up the VM network, and my experience confirms that.
Don't you think using the driver will help the speed of port?
On Mon, Nov 22, 2010 at 6:31 AM, <mjt@tls.msk.ru> wrote:
> 22.11.2010 17:24, hadi golestani wrote:
>> here it's the answer of kvm -net nic,model=?
>> qemu: Supported NIC models:
>> ne2k_pci,i82551,i82557b,i82559er,rtl8139,e1000,pcnet,virtio
>> which one is 10mbps and which one is 100 or 1000 mbps?
>
> As has been already pointed out, these speeds are speeds of
> physical cirquits in the real hardware boards. qemu-kvm
> emulated "hardware" merely reports this speed to the guest,
> but does not use it in any way - the actual speed is always
> limited by your CPU and nothing more.
>
> /mjt
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: limit conectivity of a VM
2010-11-22 14:36 ` hadi golestani
@ 2010-11-22 14:47 ` mjt
0 siblings, 0 replies; 10+ messages in thread
From: mjt @ 2010-11-22 14:47 UTC (permalink / raw)
To: hadi golestani; +Cc: kvm
22.11.2010 17:36, hadi golestani wrote:
> Thanks,
> But I've heared that using e1000 and installing it's driver will speed
> up the VM network, and my experience confirms that.
> Don't you think using the driver will help the speed of port?
The speedup of e1000 compared with the default rtl8139 is just
because e1000 is emulated in a more efficient way, not because
it's 1000M or 10M.
/mjt
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2010-11-22 14:47 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-19 19:47 limit conectivity of a VM hadi golestani
2010-11-19 20:01 ` Javier Guerra Giraldez
2010-11-20 1:18 ` Markus Breitländer
2010-11-20 8:40 ` Thomas Mueller
2010-11-20 15:39 ` Javier Guerra Giraldez
2010-11-20 18:00 ` linux_kvm
[not found] ` <AANLkTinH5AJuoa5HjOnjZun8dRhzfPx86sP2QhuUCue=@mail.gmail.com>
2010-11-22 14:24 ` hadi golestani
2010-11-22 14:31 ` mjt
2010-11-22 14:36 ` hadi golestani
2010-11-22 14:47 ` mjt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox