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

Small memory read/write performance issue #9567

Open
cnbailian opened this issue Apr 29, 2024 · 4 comments
Open

Small memory read/write performance issue #9567

cnbailian opened this issue Apr 29, 2024 · 4 comments
Labels
question Requires an answer

Comments

@cnbailian
Copy link

A comparison of my sysbench tests:

企业微信截图_6b7fcdef-ba03-4787-98f8-1ebf65dc2f0b

企业微信截图_be8d1cb5-de63-4c61-8e2c-7a8323529c89

Are there any config optimizations that can solve this issue?

@cnbailian cnbailian added the question Requires an answer label Apr 29, 2024
@lifupan
Copy link
Member

lifupan commented Apr 29, 2024

Hi @cnbailian

You can try to enable " enable_mem_prealloc = true " in your config.

@cnbailian
Copy link
Author

Thanks @lifupan do I need to use this config item with another config or kernel config?

I have turned on this config under the latest version of kata, but it has no effect.

This is the qemu process after I started it:

@lifupan
Copy link
Member

lifupan commented Apr 29, 2024

Thanks @lifupan do I need to use this config item with another config or kernel config?

I have turned on this config under the latest version of kata, but it has no effect.

This is the qemu process after I started it:

It's weird, was there any improvement when you rerun this test many times?

@cnbailian
Copy link
Author

Thanks @lifupan do I need to use this config item with another config or kernel config?
I have turned on this config under the latest version of kata, but it has no effect.
This is the qemu process after I started it:

It's weird, was there any improvement when you rerun this test many times?

@lifupan No change.

But the strange thing is that I had success once after I just changed it, and then disabling this mem_prealloc config also still worked, and then finally the machine rebooted and it never worked again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Requires an answer
Projects
Issue backlog
  
To do
Development

No branches or pull requests

2 participants