harsh97 / compcache

Automatically exported from code.google.com/p/compcache
1 stars 0 forks source link

zram.num_devices parameter ignored in kernel 3.2.x #101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. I have upgraded kernel from 3.0.6-gentoo to 3.2.1-gentoo-r2 with zram 
compiled in (not as a module), using only make oldconfig for kernel 
configuration without any other change.
2. On old kernel it created 3 zram devices, using zram.num_devices=3 as boot 
parameter
3. On new kernel it ignores this parameter and creates only one device.

What version of the product are you using? On what operating system?
Gentoo x86-64

Excerpt from dmesg:
[    0.000000] Linux version 3.2.1-gentoo-r2 (root@bluesky) (gcc version 4.5.3 
(Gentoo 4.5.3-r2 p1.1, pie-0.4.7) ) #1 SMP Mon Mar 12 21:21:44 CET 2012
[    0.000000] Command line: root=/dev/sda4 video=vesafb:ywrap,mtrr:3 vga=15a 
zram.num_devices=3
....
[    1.475579] zram: num_devices not specified. Using default: 1
[    1.476131] zram: Creating 1 devices ...

Original issue reported on code.google.com by rin...@gmail.com on 15 Mar 2012 at 1:12

GoogleCodeExporter commented 9 years ago
I believe for 3.2 it's supposed to be zram.zram_num_devices.

Could be wrong though. I do know that the command parameter did change, however.

Original comment by aric...@gmail.com on 16 Mar 2012 at 5:09

GoogleCodeExporter commented 9 years ago
aricat: You are correct. Just checked 3.2.11 source and its indeed 
zram_num_devices:
http://lxr.linux.no/linux+v3.2.11/drivers/staging/zram/zram_drv.c#L861

I remember sending a patch to rename it back to num_devices but looks like it 
didn't make it to the mainline. It will try sending it again for possible 
inclusion in 3.3.

Thanks.

Original comment by nitingupta910@gmail.com on 17 Mar 2012 at 4:39

GoogleCodeExporter commented 9 years ago
zram.zram_num_devices works, thanks.

Original comment by rin...@gmail.com on 17 Mar 2012 at 10:25

GoogleCodeExporter commented 9 years ago

Original comment by nitingupta910@gmail.com on 2 Oct 2012 at 10:08