public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Couple of quetsions HD perf, mac address...
@ 2007-07-03  9:43 Benjamin Budts
       [not found] ` <468A1A3B.604-rJAIWvhRp0CZIoH1IeqzKA@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Benjamin Budts @ 2007-07-03  9:43 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f


Hi there,

Sorry to bother the developpers list, I have couple of questions...

I've been testing kvm for couple of months with the following hardware :
S5000pal intel board
1x Duo Core Xeon 2.4
2048Gb DDR2 667 Ram
Western digital SATA 150 10K rpm disk.

I run kvm21 at the moment...(I need to upgrade asap of course ;) )

And have the following questions :

1* When i run hdparm -t /dev/sda1 I have 80-85Mbit/s read speed on my 
guest os (debian etch)

If I run it ''in'' a virtual machine (using also debian Etch with 
2.6.21.5 kernel) I get : 28-35Mbits...

I even tried to put the image on a seperate disk to be able to have 
more, but I can't get more then 35Mbits out of it...

How can I up the disk performance without having to replace everything 
by SCSI hardware ?

2* When will smp be supported in the VM ? Would love to test the 
performance by starting up the virtual machine with the -smp 2 
command...Kernel hangs at the moment
(I read you guys put it on the commit list, and you're working on it...)

3* When I specify a mac address for my debian virtual machine eth0 
changes to eth3 ... very very weird... it's not that bad, i just changed 
my interfaces config file from eth0 to eth3, but it's a bit weird

My windows xp seems to boot without a problem when specifying another 
mac addr

Did you guys have that problem  yet ? How can I fix it please ?


Keep up the good work, lovely product !

thx
Ben

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

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

* Re: Couple of quetsions HD perf, mac address...
@ 2007-07-03 11:08 Gregory Haskins
       [not found] ` <4689F5F10200005A00026F01-Igcdv/6uVdMHoYOw/+koYqIwWpluYiW7@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Gregory Haskins @ 2007-07-03 11:08 UTC (permalink / raw)
  To: benjamin.budts-rJAIWvhRp0CZIoH1IeqzKA
  Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Tue, 2007-07-03 at 11:43 +0200, Benjamin Budts wrote:
> 3* When I specify a mac address for my debian virtual machine eth0 
> changes to eth3 ... very very weird... it's not that bad, i just changed 
> my interfaces config file from eth0 to eth3, but it's a bit weird

Many linux distros support persistent naming these days.  Therefore,
there is some record that in the past eth0 had mac X.  Now it that sees
an interface with mac Y, it assumes its a new interface and renames it
something unique.

I am assuming this is the behavior you are seeing.



> 
> My windows xp seems to boot without a problem when specifying another 
> mac addr
> 

Out of curiosity, does Windows rename it to "Local Connection 2" (etc)
when you change the mac addr?

> Did you guys have that problem  yet ? How can I fix it please ?

If its the problem I am describing, do a google search for where debian
maintains its persistence data and blow it away (or adjust the record
for eth0 to have your new mac)




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

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

* Re: Couple of quetsions HD perf, mac address...
       [not found] ` <4689F5F10200005A00026F01-Igcdv/6uVdMHoYOw/+koYqIwWpluYiW7@public.gmane.org>
@ 2007-07-03 11:21   ` Benjamin Budts
       [not found]     ` <468A312C.60904-rJAIWvhRp0CZIoH1IeqzKA@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Benjamin Budts @ 2007-07-03 11:21 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Gregory Haskins wrote:
> On Tue, 2007-07-03 at 11:43 +0200, Benjamin Budts wrote:
>   
>> 3* When I specify a mac address for my debian virtual machine eth0 
>> changes to eth3 ... very very weird... it's not that bad, i just changed 
>> my interfaces config file from eth0 to eth3, but it's a bit weird
>>     
>
> Many linux distros support persistent naming these days.  Therefore,
> there is some record that in the past eth0 had mac X.  Now it that sees
> an interface with mac Y, it assumes its a new interface and renames it
> something unique.
>
> I am assuming this is the behavior you are seeing.
>
>   
Aah that would explain why i'm having eth3... I started it up 2 or 3 
times with another mac as well, so he cached it probably like you said...

thx for that !


>
>   
>> My windows xp seems to boot without a problem when specifying another 
>> mac addr
>>
>>     
>
> Out of curiosity, does Windows rename it to "Local Connection 2" (etc)
> when you change the mac addr?
>
>   
No it's not changed from Local connection --> Local connection 2 ...
>> Did you guys have that problem  yet ? How can I fix it please ?
>>     
>
> If its the problem I am describing, do a google search for where debian
> maintains its persistence data and blow it away (or adjust the record
> for eth0 to have your new mac)
>
>
>
>
>   

Any clues about the HD performance, do you notice the same behaviour ?

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

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

* Re: Couple of quetsions HD perf, mac address...
@ 2007-07-03 11:31 Gregory Haskins
  0 siblings, 0 replies; 8+ messages in thread
From: Gregory Haskins @ 2007-07-03 11:31 UTC (permalink / raw)
  To: benjamin.budts-rJAIWvhRp0CZIoH1IeqzKA
  Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Tue, 2007-07-03 at 13:21 +0200, Benjamin Budts wrote:

> Any clues about the HD performance, do you notice the same behaviour ?

I haven't run any benchmarks myself, but it is to be expected that IO
will be slower in a VM. :(  There are efforts underway to improve this,
however.  For instance, a paravirtualized scsi driver for the guest is
being developed which allows the guest to more efficiently send and
receive disk IO between the VM and host.  This should allow it to get
much closer to native performance.

-Greg




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

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

* Re: Couple of quetsions HD perf, mac address...
       [not found]     ` <468A312C.60904-rJAIWvhRp0CZIoH1IeqzKA@public.gmane.org>
@ 2007-07-03 11:33       ` Laurent Vivier
  0 siblings, 0 replies; 8+ messages in thread
From: Laurent Vivier @ 2007-07-03 11:33 UTC (permalink / raw)
  To: Benjamin Budts; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f


[-- Attachment #1.1: Type: text/plain, Size: 1714 bytes --]

Benjamin Budts wrote:
> Gregory Haskins wrote:
>> On Tue, 2007-07-03 at 11:43 +0200, Benjamin Budts wrote:
>>   
>>> 3* When I specify a mac address for my debian virtual machine eth0 
>>> changes to eth3 ... very very weird... it's not that bad, i just changed 
>>> my interfaces config file from eth0 to eth3, but it's a bit weird
>>>     
>> Many linux distros support persistent naming these days.  Therefore,
>> there is some record that in the past eth0 had mac X.  Now it that sees
>> an interface with mac Y, it assumes its a new interface and renames it
>> something unique.
>>
>> I am assuming this is the behavior you are seeing.
>>
>>   
> Aah that would explain why i'm having eth3... I started it up 2 or 3 
> times with another mac as well, so he cached it probably like you said...
> 
> thx for that !

udev manages this.
each time you start udev, it executes
/etc/udev/rules.d/z45_persistent-net-generator.rules that generates eth(X)
definitions according MAC address. A new MAC address creates a new eth(X+1)
interface.

I don't know if it is clean, but to avoid this behaviour, I remove
/etc/udev/rules.d/z45_persistent-net-generator.rules (which is a link).

If you only want to clean this, you can remove only the file
/etc/udev/rules.d/z25_persistent-net.rules which will be re-generated by
z45_persistent-net-generator.rules at next reboot (or udev restart):
rm /etc/udev/rules.d/z25_persistent-net.rules
invoke-rc.d udev stop
invoke-rc.d udev start

Regards,
Laurent
-- 
------------- Laurent.Vivier-6ktuUTfB/bM@public.gmane.org  --------------
       "Any sufficiently advanced technology is
  indistinguishable from magic." - Arthur C. Clarke


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #3: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

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

* Re: Couple of quetsions HD perf, mac address...
       [not found] ` <468A1A3B.604-rJAIWvhRp0CZIoH1IeqzKA@public.gmane.org>
@ 2007-07-03 11:48   ` Dor Laor
  2007-07-03 11:51   ` Laurent Vivier
  1 sibling, 0 replies; 8+ messages in thread
From: Dor Laor @ 2007-07-03 11:48 UTC (permalink / raw)
  To: Benjamin Budts, kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

>1* When i run hdparm -t /dev/sda1 I have 80-85Mbit/s read speed on my
>guest os (debian etch)
>
>If I run it ''in'' a virtual machine (using also debian Etch with
>2.6.21.5 kernel) I get : 28-35Mbits...
>
>I even tried to put the image on a seperate disk to be able to have
>more, but I can't get more then 35Mbits out of it...
>
>How can I up the disk performance without having to replace everything
>by SCSI hardware ?

As Greg mentioned, PV-scsi drivers are good when implemented.
There is also unmerged PV driver for ide disks developed by RedHat.
By the end of the year we'll probably handle it better.

>
>2* When will smp be supported in the VM ? Would love to test the
>performance by starting up the virtual machine with the -smp 2
>command...Kernel hangs at the moment
>(I read you guys put it on the commit list, and you're working on
it...)

It's work in progress, the current state is that smp Linux can boot but
it's 
not stable yet. I guess it's a matter of several months to stabilze.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

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

* Re: Couple of quetsions HD perf, mac address...
       [not found] ` <468A1A3B.604-rJAIWvhRp0CZIoH1IeqzKA@public.gmane.org>
  2007-07-03 11:48   ` Dor Laor
@ 2007-07-03 11:51   ` Laurent Vivier
       [not found]     ` <468A3F2A.4090601@scarlet.be>
  1 sibling, 1 reply; 8+ messages in thread
From: Laurent Vivier @ 2007-07-03 11:51 UTC (permalink / raw)
  To: Benjamin Budts; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f


[-- Attachment #1.1: Type: text/plain, Size: 1286 bytes --]

Benjamin Budts wrote:
[snip]
> 1* When i run hdparm -t /dev/sda1 I have 80-85Mbit/s read speed on my 
> guest os (debian etch)
> 
> If I run it ''in'' a virtual machine (using also debian Etch with 
> 2.6.21.5 kernel) I get : 28-35Mbits...
> 
> I even tried to put the image on a seperate disk to be able to have 
> more, but I can't get more then 35Mbits out of it...
> 
> How can I up the disk performance without having to replace everything 
> by SCSI hardware ?
> 

You can improve performance by using virtual SCSI disks. I post some
benchchmarks with dbench on this list at the end of may (24/05).

QEmu (and thus KVM) doesn't support natively SCSI disk for the PC virtual
machine. I post a patch the 1st of march on QEmu mailing list to add a "-sda"
parameter to use SCSI disk (but my approach was not approved by maintainers).
The problem with the virtual SCSI is you cannot boot on it because there is no
BIOS to manage it. But you can use it as storage and boot linux using the
parameter "-kernel" to load directly the kernel from the host disk.

Regards,
Laurent
-- 
------------- Laurent.Vivier-6ktuUTfB/bM@public.gmane.org  --------------
       "Any sufficiently advanced technology is
  indistinguishable from magic." - Arthur C. Clarke


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #3: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

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

* Re: Couple of quetsions HD perf, mac address...
       [not found]       ` <468A3F2A.4090601-rJAIWvhRp0CZIoH1IeqzKA@public.gmane.org>
@ 2007-07-03 15:19         ` Laurent Vivier
  0 siblings, 0 replies; 8+ messages in thread
From: Laurent Vivier @ 2007-07-03 15:19 UTC (permalink / raw)
  To: Benjamin Budts; +Cc: kvm-devel


[-- Attachment #1.1: Type: text/plain, Size: 1745 bytes --]

Benjamin Budts wrote:
> 
> Hi Laurent,
> 
> Intresting stuff, could you send me your patch and the benchmarks please ?
> I think I might try it out.


patch:

http://permalink.gmane.org/gmane.comp.emulators.qemu/15969

benchmarks:

http://permalink.gmane.org/gmane.comp.emulators.kvm.devel/3373

> thx a lot
> 
> Laurent Vivier wrote:
>> Benjamin Budts wrote:
>> [snip]
>>  
>>> 1* When i run hdparm -t /dev/sda1 I have 80-85Mbit/s read speed on my
>>> guest os (debian etch)
>>>
>>> If I run it ''in'' a virtual machine (using also debian Etch with
>>> 2.6.21.5 kernel) I get : 28-35Mbits...
>>>
>>> I even tried to put the image on a seperate disk to be able to have
>>> more, but I can't get more then 35Mbits out of it...
>>>
>>> How can I up the disk performance without having to replace
>>> everything by SCSI hardware ?
>>>
>>>     
>>
>> You can improve performance by using virtual SCSI disks. I post some
>> benchchmarks with dbench on this list at the end of may (24/05).
>>
>> QEmu (and thus KVM) doesn't support natively SCSI disk for the PC virtual
>> machine. I post a patch the 1st of march on QEmu mailing list to add a
>> "-sda"
>> parameter to use SCSI disk (but my approach was not approved by
>> maintainers).
>> The problem with the virtual SCSI is you cannot boot on it because
>> there is no
>> BIOS to manage it. But you can use it as storage and boot linux using the
>> parameter "-kernel" to load directly the kernel from the host disk.
>>
>> Regards,
>> Laurent
>>   
> 
> 


-- 
------------- Laurent.Vivier-6ktuUTfB/bM@public.gmane.org  --------------
       "Any sufficiently advanced technology is
  indistinguishable from magic." - Arthur C. Clarke


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #3: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

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

end of thread, other threads:[~2007-07-03 15:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-03 11:08 Couple of quetsions HD perf, mac address Gregory Haskins
     [not found] ` <4689F5F10200005A00026F01-Igcdv/6uVdMHoYOw/+koYqIwWpluYiW7@public.gmane.org>
2007-07-03 11:21   ` Benjamin Budts
     [not found]     ` <468A312C.60904-rJAIWvhRp0CZIoH1IeqzKA@public.gmane.org>
2007-07-03 11:33       ` Laurent Vivier
  -- strict thread matches above, loose matches on Subject: below --
2007-07-03 11:31 Gregory Haskins
2007-07-03  9:43 Benjamin Budts
     [not found] ` <468A1A3B.604-rJAIWvhRp0CZIoH1IeqzKA@public.gmane.org>
2007-07-03 11:48   ` Dor Laor
2007-07-03 11:51   ` Laurent Vivier
     [not found]     ` <468A3F2A.4090601@scarlet.be>
     [not found]       ` <468A3F2A.4090601-rJAIWvhRp0CZIoH1IeqzKA@public.gmane.org>
2007-07-03 15:19         ` Laurent Vivier

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