[opensuse-kernel] zcache=deflate needs CONFIG_CRYPTO_DEFLATE=y
Hi: In current openSUSE kernels one cannot use zcache=deflate, only the default LZO unless CONFIG_CRYPTO_DEFLATE is set to Y. Will be cool if this can be changed in the future. Thanks. -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
Hi Cristian, Disclaimer: I knew nothing about zcache before, and I still don't know a lot. Le lundi 10 septembre 2012 à 21:30 -0300, Cristian Rodríguez a écrit :
In current openSUSE kernels one cannot use zcache=deflate, only the default LZO unless CONFIG_CRYPTO_DEFLATE is set to Y.
Will be cool if this can be changed in the future.
So you're basically asking for CONFIG_CRYPTO_DEFLATE to be changed from =m to =y in all configurations (all architectures?.) This will increase the kernel size by 5-7 kB and slow down booting a bit for everyone. So we'll need a good reason for doing that. You did not tell why you wanted to use zcache=deflate. I presume there's a good reason why lzo is the default, so why do you want deflate instead? For reference, http://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Oberhumer suggests that LZO is faster than deflate on the decompression side. Also, did you try adding deflate to your initrd (add it to INITRD_MODULES in /etc/sysconfig/kernel and run initrd)? I am curious if it may be enough for what you want to do. -- Jean Delvare Suse L3 -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
El 12/09/12 11:33, Jean Delvare escribió:
Hi Cristian,
Disclaimer: I knew nothing about zcache before, and I still don't know a lot.
Le lundi 10 septembre 2012 à 21:30 -0300, Cristian Rodríguez a écrit :
In current openSUSE kernels one cannot use zcache=deflate, only the default LZO unless CONFIG_CRYPTO_DEFLATE is set to Y.
Will be cool if this can be changed in the future.
So you're basically asking for CONFIG_CRYPTO_DEFLATE to be changed from =m to =y in all configurations (all architectures?.)
No, only on those were zcache is enabled. This will increase
the kernel size by 5-7 kB and slow down booting a bit for everyone. So we'll need a good reason for doing that. You did not tell why you wanted to use zcache=deflate. I presume there's a good reason why lzo is the default, so why do you want deflate instead?
to achieve higher compression rates at the cost of extra cpu time ;)
Also, did you try adding deflate to your initrd (add it to INITRD_MODULES in /etc/sysconfig/kernel and run initrd)? I am curious if it may be enough for what you want to do.
oops... yeah, that worked now.. not sure why the last I tried it didint :-D Thanks :-) -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
Le mercredi 12 septembre 2012 à 12:31 -0300, Cristian Rodríguez a écrit :
El 12/09/12 11:33, Jean Delvare escribió:
Hi Cristian,
Disclaimer: I knew nothing about zcache before, and I still don't know a lot.
Le lundi 10 septembre 2012 à 21:30 -0300, Cristian Rodríguez a écrit :
In current openSUSE kernels one cannot use zcache=deflate, only the default LZO unless CONFIG_CRYPTO_DEFLATE is set to Y.
Will be cool if this can be changed in the future.
So you're basically asking for CONFIG_CRYPTO_DEFLATE to be changed from =m to =y in all configurations (all architectures?.)
No, only on those were zcache is enabled.
Ah, yes, of course.
This will increase
the kernel size by 5-7 kB and slow down booting a bit for everyone. So we'll need a good reason for doing that. You did not tell why you wanted to use zcache=deflate. I presume there's a good reason why lzo is the default, so why do you want deflate instead?
to achieve higher compression rates at the cost of extra cpu time ;)
Also, did you try adding deflate to your initrd (add it to INITRD_MODULES in /etc/sysconfig/kernel and run initrd)? I am curious if it may be enough for what you want to do.
oops... yeah, that worked now.. not sure why the last I tried it didint :-D
So you're OK with us leaving CONFIG_CRYPTO_DEFLATE=m? -- Jean Delvare Suse L3 -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
El 12/09/12 13:02, Jean Delvare escribió:
oops... yeah, that worked now.. not sure why the last I tried it didint :-D
So you're OK with us leaving CONFIG_CRYPTO_DEFLATE=m?
Yes, it seem to work now. [ 1.568917] zcache: using deflate compressor [ 1.569090] zcache: cleancache enabled using kernel transcendent memory and compression buddies [ 1.569092] zcache: frontswap enabled using kernel transcendent memory and zsmalloc -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (2)
-
Cristian Rodríguez
-
Jean Delvare