OpenVZ Forum


Home » Mailing lists » Devel » [PATCH v2] cgroup: prefer [kv]zalloc[_node] over [kv]malloc+memset in memory controller code.
Re: [PATCH v2] cgroup: prefer [kv]zalloc[_node] over [kv]malloc+memset in memory controller code. [message #41970 is a reply to message #41969] Thu, 04 November 2010 20:35 Go to previous message
Li Zefan is currently offline  Li Zefan
Messages: 90
Registered: February 2008
Member
> In mem_cgroup_alloc() we currently do either kmalloc() or vmalloc() then
> followed by memset() to zero the memory. This can be more efficiently
> achieved by using kzalloc() and vzalloc().
> There's also one situation where we can use kzalloc_node() - this is
> what's new in this version of the patch.
>
> The original patch was:
>
> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
> Reviewed-by: Wu Fengguang <fengguang.wu@intel.com>
> Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
>
> Here's version 2. I'd appreciate it if someone could merge it, but I don't
> know who that someone would be.
>

Normally it's Andrew Morton.

btw, a better title is: [...] memcgroup: prefer ... over ... memset
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containe rs
 
Read Message
Read Message
Previous Topic: [PATCH 0/3] rcu - removing superfluous rcu_read_lock_held check
Next Topic: Re: [PATCH] cgroup: Avoid a memset by using vzalloc
Goto Forum:
  


Current Time: Sun Aug 03 01:24:25 GMT 2025

Total time taken to generate the page: 1.02956 seconds