Re: [RFC][PATCH] Remove cgroup member from struct page

From: KAMEZAWA Hiroyuki
Date: Tue Sep 02 2008 - 23:29:21 EST


On Tue, 02 Sep 2008 18:07:18 +0530
Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> wrote:
> I understand your concern and I am not trying to reduce memcg's performance - or
> add a fancy feature. I am trying to make memcg more friendly for distros. I see
> your point about the overhead. I just got back my results - I see a 4% overhead
> with the patches. Let me see if I can rework them for better performance.
>
Just an idea, by using atomic_ops page_cgroup patch, you can encode page_cgroup->lock
to page_cgroup->flags and use bit_spinlock(), I think.
(my new patch set use bit_spinlock on page_cgroup->flags for avoiding some race.)

This will save extra 4 bytes.

Thanks,
-Kame

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/