[09/13] kernel: Enable frontswap

Message ID 20210917114229.10704-9-michael.tremer@ipfire.org
State Staged
Commit 340f155649ee22afa19f1b6677e35a3d155a7898
Headers show
Series [01/13] kernel: Change timer tick to 1000Hz | expand

Commit Message

Michael Tremer Sept. 17, 2021, 11:42 a.m. UTC
"Frontswap provides a “transcendent memory” interface for swap pages. In
some environments, dramatic performance savings may be obtained because
swapped pages are saved in RAM (or a RAM-like device) instead of a swap
disk."

https://www.kernel.org/doc/html/latest/vm/frontswap.html

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 config/kernel/kernel.config.aarch64-ipfire | 3 ++-
 config/kernel/kernel.config.armv6l-ipfire  | 3 ++-
 config/kernel/kernel.config.i586-ipfire    | 3 ++-
 config/kernel/kernel.config.x86_64-ipfire  | 3 ++-
 4 files changed, 8 insertions(+), 4 deletions(-)

Comments

Peter Müller Sept. 18, 2021, 4:20 p.m. UTC | #1
Acked-by: Peter Müller <peter.mueller@ipfire.org>

> "Frontswap provides a “transcendent memory” interface for swap pages. In
> some environments, dramatic performance savings may be obtained because
> swapped pages are saved in RAM (or a RAM-like device) instead of a swap
> disk."
> 
> https://www.kernel.org/doc/html/latest/vm/frontswap.html
> 
> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
> ---
>   config/kernel/kernel.config.aarch64-ipfire | 3 ++-
>   config/kernel/kernel.config.armv6l-ipfire  | 3 ++-
>   config/kernel/kernel.config.i586-ipfire    | 3 ++-
>   config/kernel/kernel.config.x86_64-ipfire  | 3 ++-
>   4 files changed, 8 insertions(+), 4 deletions(-)
> 
> diff --git a/config/kernel/kernel.config.aarch64-ipfire b/config/kernel/kernel.config.aarch64-ipfire
> index 15f8cfc6b..a59fecaea 100644
> --- a/config/kernel/kernel.config.aarch64-ipfire
> +++ b/config/kernel/kernel.config.aarch64-ipfire
> @@ -956,11 +956,12 @@ CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y
>   # CONFIG_MEMORY_FAILURE is not set
>   # CONFIG_TRANSPARENT_HUGEPAGE is not set
>   CONFIG_CLEANCACHE=y
> -# CONFIG_FRONTSWAP is not set
> +CONFIG_FRONTSWAP=y
>   CONFIG_CMA=y
>   # CONFIG_CMA_DEBUG is not set
>   # CONFIG_CMA_DEBUGFS is not set
>   CONFIG_CMA_AREAS=7
> +# CONFIG_ZSWAP is not set
>   # CONFIG_ZPOOL is not set
>   # CONFIG_ZBUD is not set
>   # CONFIG_ZSMALLOC is not set
> diff --git a/config/kernel/kernel.config.armv6l-ipfire b/config/kernel/kernel.config.armv6l-ipfire
> index fc309c9b3..dc8d3a6b9 100644
> --- a/config/kernel/kernel.config.armv6l-ipfire
> +++ b/config/kernel/kernel.config.armv6l-ipfire
> @@ -964,11 +964,12 @@ CONFIG_BOUNCE=y
>   CONFIG_KSM=y
>   CONFIG_DEFAULT_MMAP_MIN_ADDR=65536
>   CONFIG_CLEANCACHE=y
> -# CONFIG_FRONTSWAP is not set
> +CONFIG_FRONTSWAP=y
>   CONFIG_CMA=y
>   # CONFIG_CMA_DEBUG is not set
>   # CONFIG_CMA_DEBUGFS is not set
>   CONFIG_CMA_AREAS=7
> +# CONFIG_ZSWAP is not set
>   # CONFIG_ZPOOL is not set
>   # CONFIG_ZBUD is not set
>   # CONFIG_ZSMALLOC is not set
> diff --git a/config/kernel/kernel.config.i586-ipfire b/config/kernel/kernel.config.i586-ipfire
> index 08df3d656..90d4ac856 100644
> --- a/config/kernel/kernel.config.i586-ipfire
> +++ b/config/kernel/kernel.config.i586-ipfire
> @@ -950,8 +950,9 @@ CONFIG_TRANSPARENT_HUGEPAGE=y
>   CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
>   # CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set
>   CONFIG_CLEANCACHE=y
> -# CONFIG_FRONTSWAP is not set
> +CONFIG_FRONTSWAP=y
>   # CONFIG_CMA is not set
> +# CONFIG_ZSWAP is not set
>   # CONFIG_ZPOOL is not set
>   # CONFIG_ZBUD is not set
>   # CONFIG_ZSMALLOC is not set
> diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kernel.config.x86_64-ipfire
> index 5f8711ac4..29fc30274 100644
> --- a/config/kernel/kernel.config.x86_64-ipfire
> +++ b/config/kernel/kernel.config.x86_64-ipfire
> @@ -950,8 +950,9 @@ CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
>   CONFIG_ARCH_WANTS_THP_SWAP=y
>   CONFIG_THP_SWAP=y
>   CONFIG_CLEANCACHE=y
> -# CONFIG_FRONTSWAP is not set
> +CONFIG_FRONTSWAP=y
>   # CONFIG_CMA is not set
> +# CONFIG_ZSWAP is not set
>   # CONFIG_ZPOOL is not set
>   # CONFIG_ZBUD is not set
>   # CONFIG_ZSMALLOC is not set
>

Patch

diff --git a/config/kernel/kernel.config.aarch64-ipfire b/config/kernel/kernel.config.aarch64-ipfire
index 15f8cfc6b..a59fecaea 100644
--- a/config/kernel/kernel.config.aarch64-ipfire
+++ b/config/kernel/kernel.config.aarch64-ipfire
@@ -956,11 +956,12 @@  CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y
 # CONFIG_MEMORY_FAILURE is not set
 # CONFIG_TRANSPARENT_HUGEPAGE is not set
 CONFIG_CLEANCACHE=y
-# CONFIG_FRONTSWAP is not set
+CONFIG_FRONTSWAP=y
 CONFIG_CMA=y
 # CONFIG_CMA_DEBUG is not set
 # CONFIG_CMA_DEBUGFS is not set
 CONFIG_CMA_AREAS=7
+# CONFIG_ZSWAP is not set
 # CONFIG_ZPOOL is not set
 # CONFIG_ZBUD is not set
 # CONFIG_ZSMALLOC is not set
diff --git a/config/kernel/kernel.config.armv6l-ipfire b/config/kernel/kernel.config.armv6l-ipfire
index fc309c9b3..dc8d3a6b9 100644
--- a/config/kernel/kernel.config.armv6l-ipfire
+++ b/config/kernel/kernel.config.armv6l-ipfire
@@ -964,11 +964,12 @@  CONFIG_BOUNCE=y
 CONFIG_KSM=y
 CONFIG_DEFAULT_MMAP_MIN_ADDR=65536
 CONFIG_CLEANCACHE=y
-# CONFIG_FRONTSWAP is not set
+CONFIG_FRONTSWAP=y
 CONFIG_CMA=y
 # CONFIG_CMA_DEBUG is not set
 # CONFIG_CMA_DEBUGFS is not set
 CONFIG_CMA_AREAS=7
+# CONFIG_ZSWAP is not set
 # CONFIG_ZPOOL is not set
 # CONFIG_ZBUD is not set
 # CONFIG_ZSMALLOC is not set
diff --git a/config/kernel/kernel.config.i586-ipfire b/config/kernel/kernel.config.i586-ipfire
index 08df3d656..90d4ac856 100644
--- a/config/kernel/kernel.config.i586-ipfire
+++ b/config/kernel/kernel.config.i586-ipfire
@@ -950,8 +950,9 @@  CONFIG_TRANSPARENT_HUGEPAGE=y
 CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
 # CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set
 CONFIG_CLEANCACHE=y
-# CONFIG_FRONTSWAP is not set
+CONFIG_FRONTSWAP=y
 # CONFIG_CMA is not set
+# CONFIG_ZSWAP is not set
 # CONFIG_ZPOOL is not set
 # CONFIG_ZBUD is not set
 # CONFIG_ZSMALLOC is not set
diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kernel.config.x86_64-ipfire
index 5f8711ac4..29fc30274 100644
--- a/config/kernel/kernel.config.x86_64-ipfire
+++ b/config/kernel/kernel.config.x86_64-ipfire
@@ -950,8 +950,9 @@  CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
 CONFIG_ARCH_WANTS_THP_SWAP=y
 CONFIG_THP_SWAP=y
 CONFIG_CLEANCACHE=y
-# CONFIG_FRONTSWAP is not set
+CONFIG_FRONTSWAP=y
 # CONFIG_CMA is not set
+# CONFIG_ZSWAP is not set
 # CONFIG_ZPOOL is not set
 # CONFIG_ZBUD is not set
 # CONFIG_ZSMALLOC is not set