diff mbox series

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

Message ID 20180815084743.31486-2-po-hsu.lin@canonical.com
State New
Headers show
Series [xenial/linux-kvm,SRU,PATCHv2,1/1] UBUNTU: [Config]: enable CONFIG_ZRAM | expand

Commit Message

Po-Hsu Lin Aug. 15, 2018, 8:47 a.m. UTC
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 Sacilotto de Souza Aug. 15, 2018, 1:17 p.m. UTC | #1
On 08/15/18 10:47, 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>

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 2356d44..da81928 100644
> --- a/debian.kvm/config/config.common.ubuntu
> +++ b/debian.kvm/config/config.common.ubuntu
> @@ -1711,6 +1711,7 @@ CONFIG_PERF_EVENTS=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
> @@ -2293,4 +2294,7 @@ CONFIG_ZLIB_INFLATE=y
>  CONFIG_ZONE_DMA32=y
>  CONFIG_ZONE_DMA_FLAG=0
>  # CONFIG_ZPOOL is not set
> -# CONFIG_ZSMALLOC is not set
> +CONFIG_ZRAM=m
> +CONFIG_ZRAM_LZ4_COMPRESS=y
> +CONFIG_ZSMALLOC=y
> +# CONFIG_ZSMALLOC_STAT is not set
>
Kamal Mostafa Aug. 16, 2018, 5:26 p.m. UTC | #2
Acked-by: Kamal Mostafa <kamal@canonical.com>

On Wed, Aug 15, 2018 at 04:47:43PM +0800, 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 2356d44..da81928 100644
> --- a/debian.kvm/config/config.common.ubuntu
> +++ b/debian.kvm/config/config.common.ubuntu
> @@ -1711,6 +1711,7 @@ CONFIG_PERF_EVENTS=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
> @@ -2293,4 +2294,7 @@ CONFIG_ZLIB_INFLATE=y
>  CONFIG_ZONE_DMA32=y
>  CONFIG_ZONE_DMA_FLAG=0
>  # CONFIG_ZPOOL is not set
> -# CONFIG_ZSMALLOC is not set
> +CONFIG_ZRAM=m
> +CONFIG_ZRAM_LZ4_COMPRESS=y
> +CONFIG_ZSMALLOC=y
> +# CONFIG_ZSMALLOC_STAT is not set
> -- 
> 2.7.4
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
diff mbox series

Patch

diff --git a/debian.kvm/config/config.common.ubuntu b/debian.kvm/config/config.common.ubuntu
index 2356d44..da81928 100644
--- a/debian.kvm/config/config.common.ubuntu
+++ b/debian.kvm/config/config.common.ubuntu
@@ -1711,6 +1711,7 @@  CONFIG_PERF_EVENTS=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
@@ -2293,4 +2294,7 @@  CONFIG_ZLIB_INFLATE=y
 CONFIG_ZONE_DMA32=y
 CONFIG_ZONE_DMA_FLAG=0
 # CONFIG_ZPOOL is not set
-# CONFIG_ZSMALLOC is not set
+CONFIG_ZRAM=m
+CONFIG_ZRAM_LZ4_COMPRESS=y
+CONFIG_ZSMALLOC=y
+# CONFIG_ZSMALLOC_STAT is not set