mm: Page allocation from buddy system might delay the tasks on different SMP cores

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mel,
Through my experiment in SMP system, I find the mm_page_alloc_zone_locked
event produced by the fork system call on one CPU might delay the task
on another CPU.  According to the events-keme.txt in kernel documents,
the interrupts are disabled and cache lines between CPUs are dirtied
when this event happens.  Therefore, I am afraid that a task might be
interfered by the tasks on different CPUs
which at the same time request memory from the buddy allocator.

My questions are as follows:
    * Is it necessary to disable interrupts when allocating/freeing memory from
      buddy system?
    * Why the cache lines between CPUs are dirtied by the allocation in
      buddy system?

Thanks,
- Kang

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]