Balbir Singh wrote:
YAMAMOTO Takashi wrote:
hi,
i implemented some statistics for your memory controller.
it's tested with 2.6.23-rc2-mm2 + memory controller v7.
i think it can be applied to 2.6.23-rc4-mm1 as well.
YAMOMOTO Takshi
todo: something like nr_active/inactive in /proc/vmstat.
On Sat, 6 Oct 2007, Paul Jackson wrote:
struct cgroup_iter it;
struct task_struct *p, **tasks;
int i = 0;
cgroup_iter_start(cs-css.cgroup, it);
while ((p = cgroup_iter_next(cs-css.cgroup, it))) {
get_task_struct(p);
tasks[i++] = p;
On Sat, 6 Oct 2007, Paul Menage wrote:
The getting and putting of the tasks will prevent them from exiting or
being deallocated prematurely. But this is also a critical section that
will need to be protected by some mutex so it doesn't race with other
set_cpus_allowed().
Is that
On Fri, 5 Oct 2007, Balbir Singh wrote:
Found-by: Hugh Dickins [EMAIL PROTECTED]
mem_cgroup_charge() in unuse_pte() is called under a lock, the pte_lock.
That's
clearly incorrect, since we pass GFP_KERNEL to mem_cgroup_charge() for
allocation of page_cgroup.
This patch release the
Hugh Dickins wrote:
On Fri, 5 Oct 2007, Balbir Singh wrote:
Found-by: Hugh Dickins [EMAIL PROTECTED]
mem_cgroup_charge() in unuse_pte() is called under a lock, the pte_lock.
That's
clearly incorrect, since we pass GFP_KERNEL to mem_cgroup_charge() for
allocation of page_cgroup.
This