Andrew Morton <akpm@osdl.org> wrote: > > Oh, and because vm_acct_memory() is counting a singleton object, it can use > DEFINE_PER_CPU rather than alloc_percpu(), so it saves on a bit of kmalloc > overhead. Actually, I don't think that's true. we're allocating a sizeof(long) with kmalloc_node() so there shouldn't be memory wastage. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch 3/4] net: Percpufy frequently used variables -- proto.sockets_allocated
- From: Ravikiran G Thirumalai <kiran@scalex86.org>
- Re: [patch 3/4] net: Percpufy frequently used variables -- proto.sockets_allocated
- References:
- [patch 0/4] net: Percpufy frequently used variables on struct proto
- From: Ravikiran G Thirumalai <kiran@scalex86.org>
- [patch 3/4] net: Percpufy frequently used variables -- proto.sockets_allocated
- From: Ravikiran G Thirumalai <kiran@scalex86.org>
- Re: [patch 3/4] net: Percpufy frequently used variables -- proto.sockets_allocated
- From: Eric Dumazet <dada1@cosmosbay.com>
- Re: [patch 3/4] net: Percpufy frequently used variables -- proto.sockets_allocated
- From: Ravikiran G Thirumalai <kiran@scalex86.org>
- Re: [patch 3/4] net: Percpufy frequently used variables -- proto.sockets_allocated
- From: Andrew Morton <akpm@osdl.org>
- Re: [patch 3/4] net: Percpufy frequently used variables -- proto.sockets_allocated
- From: Ravikiran G Thirumalai <kiran@scalex86.org>
- Re: [patch 3/4] net: Percpufy frequently used variables -- proto.sockets_allocated
- From: Andrew Morton <akpm@osdl.org>
- [patch 0/4] net: Percpufy frequently used variables on struct proto
- Prev by Date: 2.6.16 - sys_sched_getaffinity & hotplug
- Next by Date: [PATCH] framebuffer: Remove old radeon driver
- Previous by thread: Re: [patch 3/4] net: Percpufy frequently used variables -- proto.sockets_allocated
- Next by thread: Re: [patch 3/4] net: Percpufy frequently used variables -- proto.sockets_allocated
- Index(es):
![]() |