Bug 12184 - [6.6 enhancement] backport "mm/filemap: Allow arch to request folio size for exec memory"
Summary: [6.6 enhancement] backport "mm/filemap: Allow arch to request folio size for ...
Status: RESOLVED WONTFIX
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: mm (show other bugs) mm
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: wangrongwei
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-02 14:35 UTC by justinhe
Modified: 2024-12-26 11:20 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description justinhe 2024-12-02 14:35:56 UTC
Description of problem:

Change the readahead config so that if it is being requested for an
executable mapping, do a synchronous read of an arch-specified size in a
naturally aligned manner.
Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 justinhe 2024-12-02 14:39:28 UTC
original patch :https://lore.kernel.org/lkml/Zc6zD4zfsrkRlHe6@casper.infradead.org/t/#m24279a34aafb15db4a542e7e9ad4c917cddf6df2
It is not merged but worth pushing to OpenAnolis since the performance improvement.

Ps, OpenEuler 6.6 branch had applied this patch already:
-----------------------------------------------------------------
commit 9c1fb418a36bb1eff8f352c60b01887c117c8f22
Author: Ryan Roberts <ryan.roberts@arm.com>
Date:   Sat May 18 00:00:01 2024 +0800

    mm/filemap: Allow arch to request folio size for exec memory

    maillist inclusion
    category: feature
    bugzilla: https://gitee.com/openeuler/kernel/issues/I9Q9DF
    CVE: NA

    Reference: https://lore.kernel.org/linux-mm/Zc6zD4zfsrkRlHe6@casper.infradead.org

    -------------------------------------------------

    Change the readahead config so that if it is being requested for an
    executable mapping, do a synchronous read of an arch-specified size in a
    naturally aligned manner.
...
Comment 2 justinhe 2024-12-02 18:11:43 UTC
Although this patch [1] has not yet been merged into the mainline kernel, it
demonstrates notable performance improvements across various benchmarks. It
is worth promoting for adoption in Chinese Linux distributions for cloud
servers, such as the OpenAnolis Cloud Kernel (based on v6.6 stable).

The patch, available on the mailing list, can be easily applied to the
OpenAnolis Cloud Kernel 6.6 branch with minimal modifications.
Comment 3 小龙 admin 2024-12-02 18:18:53 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/4179
Comment 4 justinhe 2024-12-26 11:20:52 UTC
maintainer prefer the RFC here https://gitee.com/anolis/cloud-kernel/pulls/4378