From: "Gonglei (Arei)" <arei.gonglei@huawei.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
"peter.crosthwaite@xilinx.com" <peter.crosthwaite@xilinx.com>,
"peter.maydell@linaro.org" <peter.maydell@linaro.org>,
"edgar.iglesias@xilinx.com" <edgar.iglesias@xilinx.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"Huangweidong (C)" <weidong.huang@huawei.com>
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 [thread overview]
Message-ID: <33183CC9F5247A488A2544077AF19020DA2B906D@DGGEMA505-MBX.china.huawei.com> (raw)
Hi all,
I found that the memory consumption increase about 5M since below commit on Qemu process.
commit 6731d864f80938e404dc3e5eb7f6b76b891e3e43
Author: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
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 <peter.crosthwaite@xilinx.com>
[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 <peter.maydell@linaro.org>
Acked-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
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
next reply other threads:[~2017-05-26 9:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-26 9:59 Gonglei (Arei) [this message]
2017-05-26 11:06 ` [Qemu-devel] [RFC] Is it useful to create a seperate address space for cpu-memory on x86 platform? Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=33183CC9F5247A488A2544077AF19020DA2B906D@DGGEMA505-MBX.china.huawei.com \
--to=arei.gonglei@huawei.com \
--cc=edgar.iglesias@xilinx.com \
--cc=pbonzini@redhat.com \
--cc=peter.crosthwaite@xilinx.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=weidong.huang@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.