Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High CPU load when using memStress #6

Open
phamquiluan opened this issue Aug 12, 2023 · 0 comments
Open

High CPU load when using memStress #6

phamquiluan opened this issue Aug 12, 2023 · 0 comments

Comments

@phamquiluan
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant