Skip to content

High CPU load when using memStress #6

@phamquiluan

Description

@phamquiluan

I am trying to stress the memory without affecting CPU usage.

In the Chao-mesh document, it says:

To avoid the high CPU load caused by the read and write pressure from stress-ng, Chaos Mesh uses memStress to simulate memory stress. This is because memStress simulates memory stress by consuming actual memory instead of applying the read and write pressure to memory.

https://chaos-mesh.org/docs/simulate-heavy-stress-on-kubernetes/#cpustressor

But I see it doesn't do what it should do. The CPU usage is high when stressing memory.

The command I used

memStress --size 100MiB --workers 1

Screenshot: You can see that the CPU usage spike from 5% to 45% of a CPU

image

Q: Is there any way to reduce the CPU usage while stressing memory?

Thank a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions