kata-containers / kata-containers

Kata Containers is an open source project and community working to build a standard implementation of lightweight Virtual Machines (VMs) that feel and perform like containers, but provide the workload isolation and security advantages of VMs. https://katacontainers.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Small memory read/write performance issue

cnbailian opened this issue · comments

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?

Hi @cnbailian

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

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:

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?

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.