From: Balbir Singh <bsingharora@gmail.com>
To: Daniel Axtens <dja@axtens.net>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: Failure to allocate HTAB for guest - CMA allocation failures?
Date: Mon, 21 May 2018 16:53:32 +1000 [thread overview]
Message-ID: <20180521165332.5b2ff78e@balbir.ozlabs.ibm.com> (raw)
In-Reply-To: <87zi0ye2n8.fsf@linkitivity.dja.id.au>
On Fri, 18 May 2018 01:13:31 +1000
Daniel Axtens <dja@axtens.net> wrote:
> I noticed from [1] that there is a patch from Balbir that apparently
> helps when VFIO is used - 2e5bbb5461f1 ("KVM: PPC: Book3S HV: Migrate
> pinned pages out of CMA"). The user is running a 4.4 kernel with this
> backported.
Hmm.. there are two possible scenarios
1. We got movable allocations in the CMA region, these should be migrated
out on their own
2. We've got pinned allocations in the CMA region and hence movable won't
work with them. We do have trace events for cma_alloc/cma_release if you
want to look them.
Your right in that we'll try to allocate 128 MB from
the CMA region (based on the 1/128th calculation that I remember). If we
can figure out what's allocated memory in the CMA region we can debug
this further. Do the sum of HPT allocations add up to the used CMA memory?
Balbir Singh.
prev parent reply other threads:[~2018-05-21 6:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-17 15:13 Failure to allocate HTAB for guest - CMA allocation failures? Daniel Axtens
2018-05-21 6:53 ` Balbir Singh [this message]
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=20180521165332.5b2ff78e@balbir.ozlabs.ibm.com \
--to=bsingharora@gmail.com \
--cc=dja@axtens.net \
--cc=linuxppc-dev@lists.ozlabs.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).