linux518/519: Add MGLRU patchset on a toggle and enable by default - https://lore.kernel.org/lkml/20220706220022.968789-1-yuzhao@google.com/
We've been offering the patchset in community patches for a while now with very good feedback
This commit is contained in:
6
PKGBUILD
6
PKGBUILD
@@ -59,7 +59,7 @@ else
|
||||
fi
|
||||
pkgname=("${pkgbase}" "${pkgbase}-headers")
|
||||
pkgver="${_basekernel}"."${_sub}"
|
||||
pkgrel=264
|
||||
pkgrel=265
|
||||
pkgdesc='Linux-tkg'
|
||||
arch=('x86_64') # no i686 in here
|
||||
url="https://www.kernel.org/"
|
||||
@@ -762,6 +762,7 @@ case $_basever in
|
||||
0009-glitched-ondemand-bmq.patch
|
||||
0009-glitched-bmq.patch
|
||||
0009-prjc_v5.18-r2.patch
|
||||
0010-lru_5.18.patch
|
||||
#0012-linux-hardened.patch
|
||||
0012-misc-additions.patch
|
||||
# MM Dirty Soft for WRITE_WATCH support in Wine
|
||||
@@ -786,6 +787,7 @@ case $_basever in
|
||||
'9fad4a40449e09522899955762c8928ae17f4cdaa16e01239fd12592e9d58177'
|
||||
'a557b342111849a5f920bbe1c129f3ff1fc1eff62c6bd6685e0972fc88e39911'
|
||||
'bb8a2daf56a513701895f67dc0e6cbde153481fcd0557906af45523d24aa9f76'
|
||||
'55f633da855b9346bfcfc5204f109eca6d0d7532ad42dec131ea0d64a0d4fd08'
|
||||
'428517fbcb161a640b53782000c16f797c2ad27cf2758e7e56133fc62d2d113b'
|
||||
'1b656ad96004f27e9dc63d7f430b50d5c48510d6d4cd595a81c24b21adb70313'
|
||||
'b0319a7dff9c48b2f3e3d3597ee154bf92223149a633a8b7ce4026252db86da6')
|
||||
@@ -812,6 +814,7 @@ case $_basever in
|
||||
0009-glitched-ondemand-bmq.patch
|
||||
0009-glitched-bmq.patch
|
||||
0009-prjc_v5.19-r0.patch
|
||||
0010-lru_5.19.patch
|
||||
#0012-linux-hardened.patch
|
||||
0012-misc-additions.patch
|
||||
# MM Dirty Soft for WRITE_WATCH support in Wine
|
||||
@@ -836,6 +839,7 @@ case $_basever in
|
||||
'9fad4a40449e09522899955762c8928ae17f4cdaa16e01239fd12592e9d58177'
|
||||
'a557b342111849a5f920bbe1c129f3ff1fc1eff62c6bd6685e0972fc88e39911'
|
||||
'b9822a7f912a46196facb9e70229b90357fbc7c7c1dfe23a407e1cb014add30d'
|
||||
'970819d5a6eca65b9eeb7c459a8bd487600a10b2b02fed323f7456f483c7d5ce'
|
||||
'213ecf1ba59dc87ed1844c3473d575b85ffe3a567f86735e8c6239c92dbbb493'
|
||||
'1b656ad96004f27e9dc63d7f430b50d5c48510d6d4cd595a81c24b21adb70313'
|
||||
'b0319a7dff9c48b2f3e3d3597ee154bf92223149a633a8b7ce4026252db86da6')
|
||||
|
@@ -150,6 +150,11 @@ _acs_override=""
|
||||
# Set to "true" to add Bcache filesystem support. You'll have to install bcachefs-tools-git from AUR for utilities - https://bcachefs.org/ - If in doubt, set to "false"
|
||||
_bcachefs=""
|
||||
|
||||
# Set to "true" to add multi-generational LRU framework support on kernel 5.18+ - https://lore.kernel.org/lkml/20220706220022.968789-1-yuzhao@google.com/
|
||||
# Older kernel versions might have a patch available in the community-patches repo
|
||||
# ! This option will be disabled when bcachefs is enabled for now !
|
||||
_mglru="true"
|
||||
|
||||
# Set to "true" to enable support for fsync, an experimental replacement for esync found in Valve Proton 4.11+ - https://steamcommunity.com/games/221410/announcements/detail/2957094910196249305
|
||||
# Can be enabled alongside _futex_waitv on 5.13+ to use it as a fallback for older Proton builds
|
||||
_fsync="true"
|
||||
|
@@ -1181,6 +1181,24 @@ _tkg_srcprep() {
|
||||
fi
|
||||
fi
|
||||
|
||||
# MGLRU
|
||||
tkgpatch="$srcdir/0010-lru_${_basekernel}.patch"
|
||||
if [ -e "$tkgpatch" ] && [ "$_bcachefs" != "true" ] && [[ ! "$CONDITION8" =~ [yY] ]]; then
|
||||
if [ -z "$_mglru" ]; then
|
||||
plain ""
|
||||
plain "Add multi-generational LRU framework support? "
|
||||
plain "https://lore.kernel.org/lkml/20220706220022.968789-1-yuzhao@google.com/"
|
||||
read -rp "`echo $' > N/y : '`" CONDITION_mglru;
|
||||
fi
|
||||
if [[ "$CONDITION_mglru" =~ [yY] ]] || [ "$_mglru" = "true" ]; then
|
||||
_msg="Patching MGLRU in"
|
||||
_tkg_patcher
|
||||
|
||||
_enable "LRU_GEN" "LRU_GEN_ENABLED"
|
||||
_disable "LRU_GEN_STATS"
|
||||
fi
|
||||
fi
|
||||
|
||||
# futex_waitv support
|
||||
tkgpatch="$srcdir/0007-v${_basekernel}-futex_waitv.patch"
|
||||
if [ -e "$tkgpatch" ]; then
|
||||
|
6917
linux-tkg-patches/5.18/0010-lru_5.18.patch
Normal file
6917
linux-tkg-patches/5.18/0010-lru_5.18.patch
Normal file
File diff suppressed because it is too large
Load Diff
6926
linux-tkg-patches/5.19/0010-lru_5.19.patch
Normal file
6926
linux-tkg-patches/5.19/0010-lru_5.19.patch
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user