Can switching to FLATMEM cause bugs?

Jani Monoses jani at ubuntu.com
Mon Jun 10 05:13:05 EDT 2013


Hello,

enabling memory control groups in a Nexus 4 kernel causes boot hangs due 
to what I think is a mismatch between where the cgroup code looks for 
memory blocks to account for and physical memory layout of the Nexus 4 
platform. It skips two blocks which are not aligned to 64K which is the 
increment used by memcg initialization code. When later there are 
references to pages in one of these blocks, there's a page fault due to 
invalid cgroup block links.

I found a workaround to be switching to FLATMEM from SPARSEMEM. Could 
this switch cause bugs by itself? I am not sure whether a certain choice 
of memory model is only about best resource utilization and performance 
or it has implications on the correctness of the memory manager.

thanks
Jani

PS: The details of what I think is the bug on the cgroup mailing list 
http://permalink.gmane.org/gmane.linux.kernel.cgroups/7003




More information about the linux-arm-kernel mailing list