Messages in this thread | | | Date | Wed, 15 Feb 2006 10:10:17 -0800 (PST) | From | Christoph Lameter <> | Subject | Re: [discuss] mmap, mbind and write to mmap'ed memory crashes 2.6.16-rc1[2] on 2 node X86_64 |
| |
On Wed, 15 Feb 2006, Bharata B Rao wrote:
> We don't initialize the free_area list for all zones. Instead, > free_area_init_core() does that only for zones which are non-empty.
Right.
> But in __rmqueue(), we depend on these free_area lists to be intialized > correctly for all zones, which is not true in the present case we > are discussing.
> I think we either need to initialize free_area lists for all zones > or check for !zone->free_area->nr_free in __rmqueue().
Or we can initialize all pcp to contain empty lists for zones without pages.
> Even with this, mbind still needs to be fixed. Even though it > can't get a conforming zone in the node (MPOL_BIND case), right now, > it goes ahead with the "bind"ing of the memory area. This causes the > application to crash (assuming we have fixed the __rmqueue kernel crash) > (Haven't yet figured our why exactly the application dies)
The application crashes because of an OOM.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |