[bionic/linux-kvm,SRU,1/1] UBUNTU: [Config]: enable CONFIG_ZRAM

Message ID 20180803065107.28833-3-po-hsu.lin@canonical.com
State New
Headers show
Series
  • [bionic/linux-kvm,SRU,1/1] UBUNTU: [Config]: enable CONFIG_ZRAM
Related show

Commit Message

Po-Hsu Lin Aug. 3, 2018, 6:51 a.m.
BugLink: https://bugs.launchpad.net/bugs/1766823

zram is an useful module for memory constrained systems. However it's
imposibble for KVM kernel user to use it.

Enable the CONFIG_ZRAM and other related configs like in generic kernel to make
it available for KVM kernels, so that it can pass the ubuntu_zram_smoke_test
in the SRU regression test suite.

Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
---
 debian.kvm/config/config.common.ubuntu | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comments

Kleber Souza Aug. 14, 2018, 4:03 p.m. | #1
On 08/03/18 08:51, Po-Hsu Lin wrote:
> BugLink: https://bugs.launchpad.net/bugs/1766823
> 
> zram is an useful module for memory constrained systems. However it's
> imposibble for KVM kernel user to use it.
> 
> Enable the CONFIG_ZRAM and other related configs like in generic kernel to make
> it available for KVM kernels, so that it can pass the ubuntu_zram_smoke_test
> in the SRU regression test suite.
> 
> Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>

The config options seem to be in sync with bionic's master kernel.

Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>

> ---
>  debian.kvm/config/config.common.ubuntu | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/debian.kvm/config/config.common.ubuntu b/debian.kvm/config/config.common.ubuntu
> index 9b21e28..750ee9d9 100644
> --- a/debian.kvm/config/config.common.ubuntu
> +++ b/debian.kvm/config/config.common.ubuntu
> @@ -1844,6 +1844,7 @@ CONFIG_PERF_EVENTS_INTEL_RAPL=y
>  CONFIG_PERF_EVENTS_INTEL_UNCORE=y
>  # CONFIG_PERSISTENT_KEYRINGS is not set
>  CONFIG_PGTABLE_LEVELS=4
> +CONFIG_PGTABLE_MAPPING=y
>  # CONFIG_PHANTOM is not set
>  # CONFIG_PHONET is not set
>  # CONFIG_PHYLIB is not set
> @@ -2504,6 +2505,9 @@ CONFIG_ZLIB_INFLATE=y
>  # CONFIG_ZONE_DMA is not set
>  CONFIG_ZONE_DMA32=y
>  # CONFIG_ZPOOL is not set
> -# CONFIG_ZSMALLOC is not set
> +CONFIG_ZRAM=m
> +CONFIG_ZRAM_WRITEBACK=y
> +CONFIG_ZSMALLOC=y
> +# CONFIG_ZSMALLOC_STAT is not set
>  CONFIG_ZSTD_COMPRESS=m
>  CONFIG_ZSTD_DECOMPRESS=m
>
Khaled Elmously Aug. 23, 2018, 5:44 a.m. | #2
to bionic-kvm/master-next

On 2018-08-03 14:51:07 , Po-Hsu Lin wrote:
> BugLink: https://bugs.launchpad.net/bugs/1766823
> 
> zram is an useful module for memory constrained systems. However it's
> imposibble for KVM kernel user to use it.
> 
> Enable the CONFIG_ZRAM and other related configs like in generic kernel to make
> it available for KVM kernels, so that it can pass the ubuntu_zram_smoke_test
> in the SRU regression test suite.
> 
> Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
> ---
>  debian.kvm/config/config.common.ubuntu | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/debian.kvm/config/config.common.ubuntu b/debian.kvm/config/config.common.ubuntu
> index 9b21e28..750ee9d9 100644
> --- a/debian.kvm/config/config.common.ubuntu
> +++ b/debian.kvm/config/config.common.ubuntu
> @@ -1844,6 +1844,7 @@ CONFIG_PERF_EVENTS_INTEL_RAPL=y
>  CONFIG_PERF_EVENTS_INTEL_UNCORE=y
>  # CONFIG_PERSISTENT_KEYRINGS is not set
>  CONFIG_PGTABLE_LEVELS=4
> +CONFIG_PGTABLE_MAPPING=y
>  # CONFIG_PHANTOM is not set
>  # CONFIG_PHONET is not set
>  # CONFIG_PHYLIB is not set
> @@ -2504,6 +2505,9 @@ CONFIG_ZLIB_INFLATE=y
>  # CONFIG_ZONE_DMA is not set
>  CONFIG_ZONE_DMA32=y
>  # CONFIG_ZPOOL is not set
> -# CONFIG_ZSMALLOC is not set
> +CONFIG_ZRAM=m
> +CONFIG_ZRAM_WRITEBACK=y
> +CONFIG_ZSMALLOC=y
> +# CONFIG_ZSMALLOC_STAT is not set
>  CONFIG_ZSTD_COMPRESS=m
>  CONFIG_ZSTD_DECOMPRESS=m
> -- 
> 2.7.4
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team

Patch

diff --git a/debian.kvm/config/config.common.ubuntu b/debian.kvm/config/config.common.ubuntu
index 9b21e28..750ee9d9 100644
--- a/debian.kvm/config/config.common.ubuntu
+++ b/debian.kvm/config/config.common.ubuntu
@@ -1844,6 +1844,7 @@  CONFIG_PERF_EVENTS_INTEL_RAPL=y
 CONFIG_PERF_EVENTS_INTEL_UNCORE=y
 # CONFIG_PERSISTENT_KEYRINGS is not set
 CONFIG_PGTABLE_LEVELS=4
+CONFIG_PGTABLE_MAPPING=y
 # CONFIG_PHANTOM is not set
 # CONFIG_PHONET is not set
 # CONFIG_PHYLIB is not set
@@ -2504,6 +2505,9 @@  CONFIG_ZLIB_INFLATE=y
 # CONFIG_ZONE_DMA is not set
 CONFIG_ZONE_DMA32=y
 # CONFIG_ZPOOL is not set
-# CONFIG_ZSMALLOC is not set
+CONFIG_ZRAM=m
+CONFIG_ZRAM_WRITEBACK=y
+CONFIG_ZSMALLOC=y
+# CONFIG_ZSMALLOC_STAT is not set
 CONFIG_ZSTD_COMPRESS=m
 CONFIG_ZSTD_DECOMPRESS=m