Re: [PATCH] mm: fix oom work when memory is under pressure

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

 



On Sun 18-09-16 12:04:47, zhong jiang wrote:
[...]
>  index 5048083..72dc475 100644
> --- a/mm/ksm.c
> +++ b/mm/ksm.c
> @@ -299,7 +299,7 @@ static inline void free_rmap_item(struct rmap_item *rmap_item)
> 
>  static inline struct stable_node *alloc_stable_node(void)
>  {
> -       return kmem_cache_alloc(stable_node_cache, GFP_KERNEL);
> +       return kmem_cache_alloc(stable_node_cache, __GFP_HIGH);
>  }

I do not want to speak for Hugh but I believe he meant something
different. The above will grant access to memory reserves but it doesn't
wake kswapd nor the direct reclaim. I guess he meant GFP_KERNEL | __GFP_HIGH

-- 
Michal Hocko
SUSE Labs

--
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]