Skip to content

memory/info job should consider the memory share scenario #2382

@rickwu666666

Description

@rickwu666666

Enhancement Proposal

In some IoT devices, memory is shared with hardware accelerators. The current test compares the memory size from lshw with /proc/meminfo. However, this test fails when the system shares memory. For example, my device has 2 GB of RAM, but it shares 512 MB with the AI accelerator.

test job log

Results:
	/proc/meminfo reports:	1.25GiB
	lshw reports:	1.88GiB

FAIL: Meminfo reports 675942400 less than lshw, a difference of 33.57%. Only a variance of 25% in reported memory is allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions