From: Michal Hocko <mhocko@kernel.org>
To: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Cc: Linux MM <linux-mm@kvack.org>, Andrew Morton <akpm@linux-foundation.org>
Subject: Re: Issue fixed by commit 53a59fc67f97 is surfacing again..
Date: Mon, 2 Jul 2018 11:27:13 +0200 [thread overview]
Message-ID: <20180702092713.GA19043@dhcp22.suse.cz> (raw)
In-Reply-To: <11416e51-08b5-11ec-a2c8-9078c386d895@linux.vnet.ibm.com>
On Fri 29-06-18 17:32:00, Laurent Dufour wrote:
[...]
> As Power is 64K page size based, MAX_GATHER_BATCH = 8189, so
> MAX_GATHER_BATCH_COUNT will not exceed 1.
>
> So there is no way to loop in zap_pte_range() due to the batch's limit.
> I guess we are never hitting the workaround introduced in the commit
> 53a59fc67f97. By the way should cond_resched being called in zap_pte_range()
> when the flush is due to the batch's limit ?
Well, I guess you are missing 2 things here. zap path does cond_resched
once per pmd regardless of the batching. MAX_GATHER_BATCH_COUNT is there
to not accumulate too many pages to free at once after we are done with
the address space tear down (tlb_finish_mmu). So whatever is the
batching it should not have a big effect on the zap part.
[...]
> Anyway, this should not fix the soft lockup I'm facing because
> MAX_GATHER_BATCH_COUNT=1 on ppc64.
>
> Indeed, I'm wondering if the 10K pages is too large in some cases, especially
> when the node is loaded, and contention on the pte lock is likely to happen.
> Here with less than 8k pages processed soft lockup are surfacing.
>
> Should the MAX_GATHER_BATCH limit be forced to lower value on ppc64 or more
> code introduced to work around that ?
Have you tried to profile what is taking so long? Exit path is not
parallel to hit on pte locks and having many processes shouldn't add to
any lock contention I can see. Why is per-pmd cond_resched not enough?
--
Michal Hocko
SUSE Labs
prev parent reply other threads:[~2018-07-02 9:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-29 15:32 Laurent Dufour
2018-07-02 9:27 ` Michal Hocko [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=20180702092713.GA19043@dhcp22.suse.cz \
--to=mhocko@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=ldufour@linux.vnet.ibm.com \
--cc=linux-mm@kvack.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