All of lore.kernel.org
 help / color / mirror / Atom feed
* Request to enable SMP and virtio for qemux86/x86-64
@ 2012-01-11  7:01 Zhai, Edwin
  2012-01-11 12:43 ` Bruce Ashfield
  0 siblings, 1 reply; 5+ messages in thread
From: Zhai, Edwin @ 2012-01-11  7:01 UTC (permalink / raw)
  To: bruce.ashfield; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 317 bytes --]

Bruce,
Can we enable SMP and virtio by default for qemux86/x86-64? This can achieve 
huge perf boost for workload inside qemu. E.g. we enabled self-hosted image, 
where we build yocto inside qemu.

Attached patch showes the kernel config option.

Is it reasonable?

Thanks,
Edwin

-- 
best rgds,
edwin

[-- Attachment #2: enable-smp-virtio-for-qemu.patch --]
[-- Type: text/x-diff, Size: 1389 bytes --]

commit 8f2268237c5cb97052c2c9a6ea6c0f818d1a658d
Author: gzhai <gzhai@gzhai-xps.(none)>
Date:   Fri Dec 9 10:32:50 2011 +0800

    linux-yocto: enable smp for qemux86
    
    Signed-off-by: None <None>

diff --git a/meta/recipes-kernel/linux/linux-yocto/extra.cfg b/meta/recipes-kernel/linux/linux-yocto/extra.cfg
new file mode 100644
index 0000000..efe1d9b
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-yocto/extra.cfg
@@ -0,0 +1,7 @@
+CONFIG_SMP=y
+CONFIG_VIRTIO=y
+CONFIG_VIRTIO_PCI=y
+CONFIG_VIRTIO_BALLOON=y
+CONFIG_VIRTIO_RING=y
+CONFIG_VIRTIO_NET=y
+CONFIG_VIRTIO_BLK=y
diff --git a/meta/recipes-kernel/linux/linux-yocto_3.0.bb b/meta/recipes-kernel/linux/linux-yocto_3.0.bb
index 4032567..850310a 100644
--- a/meta/recipes-kernel/linux/linux-yocto_3.0.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_3.0.bb
@@ -20,11 +20,13 @@ SRCREV_machine_qemux86-64 ?= "988fcbe64829f0a03ccfcc08d45cedb26cabe9ed"
 SRCREV_machine ?= "ab1de8c21d2b1d084b8488496d75cc54fcd94f02"
 SRCREV_meta ?= "67ce7623909cef63927fd145026aaf371cf4abf1"
 
-PR = "r2"
+PR = "r3"
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
 SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.0;protocol=git;nocheckout=1;branch=${KBRANCH},meta;name=machine,meta"
 
+SRC_URI += "file://extra.cfg"
+
 COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64)"
 
 # Functionality flags

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

* Re: Request to enable SMP and virtio for qemux86/x86-64
  2012-01-11  7:01 Request to enable SMP and virtio for qemux86/x86-64 Zhai, Edwin
@ 2012-01-11 12:43 ` Bruce Ashfield
  2012-01-12 13:14   ` Zhai, Edwin
  0 siblings, 1 reply; 5+ messages in thread
From: Bruce Ashfield @ 2012-01-11 12:43 UTC (permalink / raw)
  To: Zhai, Edwin; +Cc: yocto

On 12-01-11 02:01 AM, Zhai, Edwin wrote:
> Bruce,
> Can we enable SMP and virtio by default for qemux86/x86-64? This can achieve
> huge perf boost for workload inside qemu. E.g. we enabled self-hosted image,
> where we build yocto inside qemu.
>
> Attached patch showes the kernel config option.
>
> Is it reasonable?

It should be. I just need to look at the fallback modes, and how this
impacts different host systems. That being said, I've run with similar
configs in the past (depending on the workload) with no issues.

qemux8-64 is already SMP, so it would just need the addition of virtio
devices, which just means we'd look at this as any BSP/target config
update.

But with graceful degradation (i.e maxcpus with SMP set) and agreement
that we'd like to simulate SMP by default, then we can make the change
and I'll merge it into the base config for the target and pull it into
the kernel tree.

Cheers,

Bruce




>
> Thanks,
> Edwin
>



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

* Re: Request to enable SMP and virtio for qemux86/x86-64
  2012-01-11 12:43 ` Bruce Ashfield
@ 2012-01-12 13:14   ` Zhai, Edwin
  2012-01-17 14:06     ` Bruce Ashfield
  0 siblings, 1 reply; 5+ messages in thread
From: Zhai, Edwin @ 2012-01-12 13:14 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: yocto

Bruce,
Thanks for your efforts!

Edwin

On 2012/1/11 20:43, Bruce Ashfield wrote:
> On 12-01-11 02:01 AM, Zhai, Edwin wrote:
>> Bruce,
>> Can we enable SMP and virtio by default for qemux86/x86-64? This can
>> achieve
>> huge perf boost for workload inside qemu. E.g. we enabled self-hosted
>> image,
>> where we build yocto inside qemu.
>>
>> Attached patch showes the kernel config option.
>>
>> Is it reasonable?
>
> It should be. I just need to look at the fallback modes, and how this
> impacts different host systems. That being said, I've run with similar
> configs in the past (depending on the workload) with no issues.
>
> qemux8-64 is already SMP, so it would just need the addition of virtio
> devices, which just means we'd look at this as any BSP/target config
> update.
>
> But with graceful degradation (i.e maxcpus with SMP set) and agreement
> that we'd like to simulate SMP by default, then we can make the change
> and I'll merge it into the base config for the target and pull it into
> the kernel tree.
>
> Cheers,
>
> Bruce
>
>
>
>
>>
>> Thanks,
>> Edwin
>>
>



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

* Re: Request to enable SMP and virtio for qemux86/x86-64
  2012-01-12 13:14   ` Zhai, Edwin
@ 2012-01-17 14:06     ` Bruce Ashfield
  2012-01-26  4:49       ` Bruce Ashfield
  0 siblings, 1 reply; 5+ messages in thread
From: Bruce Ashfield @ 2012-01-17 14:06 UTC (permalink / raw)
  To: Zhai, Edwin; +Cc: yocto

On 12-01-12 08:14 AM, Zhai, Edwin wrote:
> Bruce,
> Thanks for your efforts!

FYI: I haven't forgotten about this, I'm just reworking a few
things with the 3.2 kernel tree, and will include this as part
of that effort. It will all be available soon.

Bruce

>
> Edwin
>
> On 2012/1/11 20:43, Bruce Ashfield wrote:
>> On 12-01-11 02:01 AM, Zhai, Edwin wrote:
>>> Bruce,
>>> Can we enable SMP and virtio by default for qemux86/x86-64? This can
>>> achieve
>>> huge perf boost for workload inside qemu. E.g. we enabled self-hosted
>>> image,
>>> where we build yocto inside qemu.
>>>
>>> Attached patch showes the kernel config option.
>>>
>>> Is it reasonable?
>>
>> It should be. I just need to look at the fallback modes, and how this
>> impacts different host systems. That being said, I've run with similar
>> configs in the past (depending on the workload) with no issues.
>>
>> qemux8-64 is already SMP, so it would just need the addition of virtio
>> devices, which just means we'd look at this as any BSP/target config
>> update.
>>
>> But with graceful degradation (i.e maxcpus with SMP set) and agreement
>> that we'd like to simulate SMP by default, then we can make the change
>> and I'll merge it into the base config for the target and pull it into
>> the kernel tree.
>>
>> Cheers,
>>
>> Bruce
>>
>>
>>
>>
>>>
>>> Thanks,
>>> Edwin
>>>
>>
>



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

* Re: Request to enable SMP and virtio for qemux86/x86-64
  2012-01-17 14:06     ` Bruce Ashfield
@ 2012-01-26  4:49       ` Bruce Ashfield
  0 siblings, 0 replies; 5+ messages in thread
From: Bruce Ashfield @ 2012-01-26  4:49 UTC (permalink / raw)
  To: Zhai, Edwin; +Cc: yocto

On 12-01-17 9:06 AM, Bruce Ashfield wrote:
> On 12-01-12 08:14 AM, Zhai, Edwin wrote:
>> Bruce,
>> Thanks for your efforts!
>
> FYI: I haven't forgotten about this, I'm just reworking a few
> things with the 3.2 kernel tree, and will include this as part
> of that effort. It will all be available soon.

FYI: I've been testing this with both an updated 3.0 and 3.2 kernel
for the 1.2 release and it seems to cause no issues.

I've made the changes in the repos, and when my 1.2 pull request
comes out for these two trees (in the next day or so), this will be
done.

Cheers,

Bruce

>
> Bruce
>
>>
>> Edwin
>>
>> On 2012/1/11 20:43, Bruce Ashfield wrote:
>>> On 12-01-11 02:01 AM, Zhai, Edwin wrote:
>>>> Bruce,
>>>> Can we enable SMP and virtio by default for qemux86/x86-64? This can
>>>> achieve
>>>> huge perf boost for workload inside qemu. E.g. we enabled self-hosted
>>>> image,
>>>> where we build yocto inside qemu.
>>>>
>>>> Attached patch showes the kernel config option.
>>>>
>>>> Is it reasonable?
>>>
>>> It should be. I just need to look at the fallback modes, and how this
>>> impacts different host systems. That being said, I've run with similar
>>> configs in the past (depending on the workload) with no issues.
>>>
>>> qemux8-64 is already SMP, so it would just need the addition of virtio
>>> devices, which just means we'd look at this as any BSP/target config
>>> update.
>>>
>>> But with graceful degradation (i.e maxcpus with SMP set) and agreement
>>> that we'd like to simulate SMP by default, then we can make the change
>>> and I'll merge it into the base config for the target and pull it into
>>> the kernel tree.
>>>
>>> Cheers,
>>>
>>> Bruce
>>>
>>>
>>>
>>>
>>>>
>>>> Thanks,
>>>> Edwin
>>>>
>>>
>>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



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

end of thread, other threads:[~2012-01-26  4:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-11  7:01 Request to enable SMP and virtio for qemux86/x86-64 Zhai, Edwin
2012-01-11 12:43 ` Bruce Ashfield
2012-01-12 13:14   ` Zhai, Edwin
2012-01-17 14:06     ` Bruce Ashfield
2012-01-26  4:49       ` Bruce Ashfield

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.