From dcd9c3d752a947d0e1acd4ff5b018b801689fa97 Mon Sep 17 00:00:00 2001 From: Chen Qun Date: Thu, 10 Feb 2022 21:41:06 +0800 Subject: [PATCH] target-i386: Fix the RES memory inc which caused by the coroutine created for better performance, change the POOL_BATCH_SIZE from 64 to 128. Signed-off-by: caojinhua Signed-off-by: jiangdongxu --- ...the-RES-memory-inc-which-caused-by-t.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 target-i386-Fix-the-RES-memory-inc-which-caused-by-t.patch diff --git a/target-i386-Fix-the-RES-memory-inc-which-caused-by-t.patch b/target-i386-Fix-the-RES-memory-inc-which-caused-by-t.patch new file mode 100644 index 0000000..ae16318 --- /dev/null +++ b/target-i386-Fix-the-RES-memory-inc-which-caused-by-t.patch @@ -0,0 +1,30 @@ +From 6e070be26502e171fd5d43a128dea99f1d34429b Mon Sep 17 00:00:00 2001 +From: jiangdongxu +Date: Thu, 10 Feb 2022 21:41:06 +0800 +Subject: [PATCH] target-i386: Fix the RES memory inc which caused by the + coroutine created + +for better performance, change the POOL_BATCH_SIZE from 64 to 128. + +Signed-off-by: caojinhua +Signed-off-by: jiangdongxu +--- + util/qemu-coroutine.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/util/qemu-coroutine.c b/util/qemu-coroutine.c +index 38fb6d3084..b9586d6929 100644 +--- a/util/qemu-coroutine.c ++++ b/util/qemu-coroutine.c +@@ -21,7 +21,7 @@ + #include "block/aio.h" + + enum { +- POOL_BATCH_SIZE = 64, ++ POOL_BATCH_SIZE = 128, + }; + + /** Free list to speed up creation */ +-- +2.27.0 +