mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ryan Roberts <ryan.roberts@arm.com>
To: Yang Shi <yang@os.amperecomputing.com>,
	catalin.marinas@arm.com, will@kernel.org
Cc: cl@gentwo.org, scott@os.amperecomputing.com,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [RFC v2 PATCH 0/2] arm64: support FEAT_BBM level 2 and large block mapping when rodata=full
Date: Tue, 18 Feb 2025 11:58:05 +0000	[thread overview]
Message-ID: <43192985-584e-4d6a-86b6-5299638d9fb1@arm.com> (raw)
In-Reply-To: <8e3ad39e-de59-48bf-b776-b27dc784a8ef@os.amperecomputing.com>

On 13/02/2025 21:27, Yang Shi wrote:

>>> I don't really understand how vmalloc is relevant here? vmalloc can already map
>>> huge pages you use vmalloc_huge() and changing the permissions of vmalloc
>>> mapping will only affect the ptes pertaining to that mapping; I don't see why
>>> that would cause permissions to be changed on the linear map or for huge pages
>>> in the linear map to be split?
> 
> I just uses vmalloc() API to emulate what modules loading does. Allocate memory
> via vmalloc() then change permission to, for example, read-only, by calling
> set_memory_ro(). So I can stress the page split by doing it on the most of
> memory, for example, 80% of memory. It is more efficient than loading real modules.

Ahh I see. I hadn't previously appreciated that we change the linear map
permissions at the same time as changing the vmap permissions. Makes sense.

> 
> It is implemented by a patch against test_vmalloc. I don't include the patch in
> this series, if you think it is useful, I can include it in v3 anyway.

I don't think it's necessary to include in this series. Although perhaps useful
as follow up patch to beef up the vmalloc perf tests.

Thanks,
Ryan

      reply	other threads:[~2025-02-18 11:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-03  1:17 Yang Shi
2025-01-03  1:17 ` [v2 PATCH 1/2] arm64: cpufeature: detect FEAT_BBM level 2 Yang Shi
2025-02-11 11:55   ` Ryan Roberts
2025-02-13 21:14     ` Yang Shi
2025-02-18 11:17       ` Ryan Roberts
2025-02-20  0:19         ` Yang Shi
2025-01-03  1:17 ` [v2 PATCH 2/2] arm64: mm: support large block mapping when rodata=full Yang Shi
2025-02-11 12:58   ` Ryan Roberts
2025-02-13 21:18     ` Yang Shi
2025-02-18 13:28       ` Ryan Roberts
2025-02-20  1:11         ` Yang Shi
2025-01-22 18:04 ` [RFC v2 PATCH 0/2] arm64: support FEAT_BBM level 2 and " Yang Shi
     [not found] ` <022c4799-bf0e-44d4-b657-d6af29a9a31d@arm.com>
2025-02-11 11:36   ` Ryan Roberts
2025-02-13 21:27     ` Yang Shi
2025-02-18 11:58       ` Ryan Roberts [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=43192985-584e-4d6a-86b6-5299638d9fb1@arm.com \
    --to=ryan.roberts@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=cl@gentwo.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=scott@os.amperecomputing.com \
    --cc=will@kernel.org \
    --cc=yang@os.amperecomputing.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®