[OE-core] [PATCH] core-image-sato-sdk: test image with 512M memory

Kang Kai Kai.Kang at windriver.com
Mon Jul 29 02:11:38 UTC 2019


On 2019/7/27 下午4:35, Alexander Kanavin wrote:
> I think you need to re-generate the image first (it goes to qemuboot 
> config file). It is already used in ptest images, so it’s good to be 
> consistent.

Thank. It works for testimage with setting QB_MEM. For the other 2 
images which has been set QB_MEM are ptest images just as you said
(core-image-sato-ptest-fast and core-image-sato-sdk-ptest). But for 
core-image-sato-sdk, it affects runqemu beyond testiamge. I just wonder
is that acceptable?

Regards,
Kai

>
> Alex
>
> On 27 Jul 2019, at 4.35, Kang Kai <Kai.Kang at windriver.com 
> <mailto:Kai.Kang at windriver.com>> wrote:
>
>> On 2019/7/26 下午6:11, Alexander Kanavin wrote:
>>> I think you need to use QB_MEM here.
>>
>> Used TEST_QEMUPARAMS because I found the following line in 
>> testimage.bbclass:
>>
>> # TEST_QEMUPARAMS can be used to pass extra parameters to qemu, e.g. 
>> "-m 1024" for setting the amount o f ram to 1 GB.
>>
>>
>> And it seems QB_MEM is not used when boot the qemu during testimage.
>>
>>
>>>
>>> Also, maybe we should just bump the 256M default?
>>
>> I hope so.
>>
>>
>> Regards,
>> Kai
>>
>>
>>>
>>> Alex
>>>
>>> On Fri, 26 Jul 2019 at 12:24, <kai.kang at windriver.com 
>>> <mailto:kai.kang at windriver.com>> wrote:
>>>
>>>     From: Kai Kang <kai.kang at windriver.com
>>>     <mailto:kai.kang at windriver.com>>
>>>
>>>     When run do_testimage for core-image-sato-sdk, it fails to pass test
>>>     case:
>>>
>>>     | RESULTS - systemd.SystemdBasicTests.test_systemd_failed:
>>>     FAILED (0.43s)
>>>
>>>     It is OOM issue and daemon rpc.statd is killed:
>>>
>>>     |  [  531.306146] Out of memory: Kill process 193 (rpc.statd)
>>>     score 200 or sacrifice child
>>>
>>>     Increase the memory of qemu to 512M to avoid such OOM issue.
>>>
>>>     Signed-off-by: Kai Kang <kai.kang at windriver.com
>>>     <mailto:kai.kang at windriver.com>>
>>>     ---
>>>      meta/recipes-sato/images/core-image-sato-sdk.bb
>>>     <http://core-image-sato-sdk.bb> | 1 +
>>>      1 file changed, 1 insertion(+)
>>>
>>>     diff --git a/meta/recipes-sato/images/core-image-sato-sdk.bb
>>>     <http://core-image-sato-sdk.bb>
>>>     b/meta/recipes-sato/images/core-image-sato-sdk.bb
>>>     <http://core-image-sato-sdk.bb>
>>>     index d7cc52b52b..f7963d018e 100644
>>>     --- a/meta/recipes-sato/images/core-image-sato-sdk.bb
>>>     <http://core-image-sato-sdk.bb>
>>>     +++ b/meta/recipes-sato/images/core-image-sato-sdk.bb
>>>     <http://core-image-sato-sdk.bb>
>>>     @@ -9,3 +9,4 @@ IMAGE_FEATURES += "dev-pkgs tools-sdk \
>>>
>>>      IMAGE_INSTALL += "kernel-devsrc"
>>>
>>>     +TEST_QEMUPARAMS = "-m 512"
>>>     -- 
>>>     2.20.0
>>>
>>>     -- 
>>>     _______________________________________________
>>>     Openembedded-core mailing list
>>>     Openembedded-core at lists.openembedded.org
>>>     <mailto:Openembedded-core at lists.openembedded.org>
>>>     http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>>
>>
>> -- 
>> Kai Kang


-- 
Kai Kang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20190729/1b2b6dfe/attachment.html>


More information about the Openembedded-core mailing list