机器用的是3.10内核,先看perf的结果,有两个东西跑的比较高 :native_queued_spin_lock_slowpath和isolate_freepages_block 其中isolate_freepages_block的堆栈长这样: 从堆栈信息可以看出,在分配内存时走到了__alloc_pages_slow_path,然后触发了compact_zone。应该是当前不能满足内存分配的请求,有可能是order过大,而...
函数名称:solate_migratepages_block() - isolate all migrate-able pages within* a single pageblock*@cc: Compaction control structure.*@low_pfn: The first PFN to isolate*@end_pfn: The one-past-the-last PFN to isolate, within same pageblock 函数原型:static unsigned long isolate_migratepages_bloc...
extern int block_quota; extern int inode_quota; extern int cg_enable; extern int cg_memory_limit; extern int cg_timing; extern int box_id; extern uid_t box_uid, orig_uid; extern gid_t box_gid, orig_gid; /* util.c */ void *xmalloc(size_t size); char *xstrdup(char *str); ...