[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2] memory: reduce heap Rss size around 3M

From: Yang Zhong
Subject: [Qemu-devel] [PATCH v2] memory: reduce heap Rss size around 3M
Date: Fri, 10 Mar 2017 21:44:35 +0800

Since cpu-memory and memory have same address space,one malloced
memory is enough. This patch will skip memory malloc for memory
address space,which will reduce around 3M physical memory in heap.

Signed-off-by: Yang Zhong <address@hidden>
 memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/memory.c b/memory.c
index 284894b..6af80e7 100644
--- a/memory.c
+++ b/memory.c
@@ -2422,7 +2422,7 @@ AddressSpace *address_space_init_shareable(MemoryRegion 
*root, const char *name)
     AddressSpace *as;
     QTAILQ_FOREACH(as, &address_spaces, address_spaces_link) {
-        if (root == as->root && as->malloced) {
+        if (root == as->root) {
             return as;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]