Re: limit conectivity of a VM

2010-11-22 Thread mjt
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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: limit conectivity of a VM

2010-11-22 Thread hadi golestani
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,   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
>
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: limit conectivity of a VM

2010-11-22 Thread mjt
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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


limit conectivity of a VM

2010-11-22 Thread hadi golestani
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  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 majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: limit conectivity of a VM

2010-11-20 Thread linux_kvm
> 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"
 wrote:
> On Sat, Nov 20, 2010 at 3:40 AM, Thomas Mueller 
> 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 majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: limit conectivity of a VM

2010-11-20 Thread Javier Guerra Giraldez
On Sat, Nov 20, 2010 at 3:40 AM, Thomas Mueller  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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: limit conectivity of a VM

2010-11-20 Thread Thomas Mueller
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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: limit conectivity of a VM

2010-11-19 Thread Markus Breitländer
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 majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: limit conectivity of a VM

2010-11-19 Thread Javier Guerra Giraldez
On Fri, Nov 19, 2010 at 2:47 PM, hadi golestani
 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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


limit conectivity of a VM

2010-11-19 Thread 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html