From: Satoru Moriya <satoru.moriya.br@hitachi.com>
To: Chegu Vinod <chegu_vinod@hp.com>
Cc: qemu-devel qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v4] Add option to mlock qemu and guest memory
Date: Tue, 23 Apr 2013 12:47:25 +0900 [thread overview]
Message-ID: <5176044D.4090809@hitachi.com> (raw)
In-Reply-To: <5174C7AA.5040701@hp.com>
Hi Vinod,
Thank you for your report.
(2013/04/22 14:16), Chegu Vinod wrote:
> FYI... I had tried to use this change earlier and it did show some
> improvements in perf. (due to reduced exits).
>
> But as expected mlockall () on large sized guests adds a considerable
> delay in boot time.
Yes, it is expected.
> For e.g. on an 8 socket Westmere box => a 256G guest :
> took an additional ~2+ mins to boot and a 512G guest took an additional
> ~5+ mins to boot. This is mainly due to long time spent in trying to clear
> all the pages.
>
> 77.96% 35728 qemu-system-x86 [kernel.kallsyms] [k] clear_page_c
> |
> --- clear_page_c
> hugetlb_no_page
> hugetlb_fault
> follow_hugetlb_page
> __get_user_pages
> __mlock_vma_pages_range
> __mm_populate
> vm_mmap_pgoff
> sys_mmap_pgoff
> sys_mmap
> system_call
> __GI___mmap64
> qemu_ram_alloc_from_ptr
> qemu_ram_alloc
> memory_region_init_ram
> pc_memory_init
> pc_init1
> pc_init_pci
> main
> __libc_start_main
>
> Need to have a faster way to clear pages.
Hmm, clear_page() just calls memset(page, 0, PAGE_SIZE)...
The patch has just merged today. I'll start to think of the issue above.
Regards,
Satoru
next prev parent reply other threads:[~2013-04-23 3:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-22 5:16 [Qemu-devel] [PATCH v4] Add option to mlock qemu and guest memory Chegu Vinod
2013-04-23 3:47 ` Satoru Moriya [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-03-26 15:05 Satoru Moriya
2013-03-27 15:18 ` Anthony Liguori
2013-03-28 4:43 ` Satoru Moriya
2013-04-02 15:03 ` Seiji Aguchi
2013-04-02 19:12 ` Anthony Liguori
2013-04-03 7:57 ` Markus Armbruster
2013-04-22 18:38 ` Anthony Liguori
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=5176044D.4090809@hitachi.com \
--to=satoru.moriya.br@hitachi.com \
--cc=chegu_vinod@hp.com \
--cc=qemu-devel@nongnu.org \
/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.