qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [RFC] Is it useful to create a seperate address space for c


From: Gonglei (Arei)
Subject: [Qemu-devel] [RFC] Is it useful to create a seperate address space for cpu-memory on x86 platform?
Date: Fri, 26 May 2017 09:59:02 +0000

Hi all,

I found that the memory consumption increase about 5M since below commit on 
Qemu process.

commit 6731d864f80938e404dc3e5eb7f6b76b891e3e43
Author: Peter Crosthwaite <address@hidden>
Date:   Thu Jan 21 14:15:06 2016 +0000

    qom/cpu: Add MemoryRegion property
    
    Add a MemoryRegion property, which if set is used to construct
    the CPU's initial (default) AddressSpace.
    
    Signed-off-by: Peter Crosthwaite <address@hidden>
    [PMM: code is moved from qom/cpu.c to exec.c to avoid having to
     make qom/cpu.o be a non-common object file; code to use the
     MemoryRegion and to default it to system_memory added.]
    Signed-off-by: Peter Maydell <address@hidden>
    Acked-by: Edgar E. Iglesias <address@hidden>

The result before this commit:

linux-arei:/mnt/sdb/gonglei/opensource/qemu # ps aux|grep qemu
root     12658 17.2  0.0 375996 21412 pts/1    Sl+  12:53   0:00 
./x86_64-softmmu/qemu-system-x86_64 -machine pc-i440fx-2.5,accel=kvm,usb=off 
-nodefaults

after the commit:
 
linux-arei:/mnt/sdb/gonglei/opensource/qemu # ps aux|grep qemu
root     23201 17.2  0.0 384196 25736 pts/1    Sl+  12:54   0:00 
./x86_64-softmmu/qemu-system-x86_64 -machine pc-i440fx-2.5,accel=kvm,usb=off 
-nodefaults

I couldn't find any benefits on x86 platform (I'm not familiar with ARM), am I 
missing something?

And It works well if I revert this commit. Can I?

Thanks,
-Gonglei





reply via email to

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