Re: [PATCH] module: kzalloc mod->ref

From: Takashi Iwai
Date: Wed Jan 14 2009 - 04:10:36 EST


At Tue, 13 Jan 2009 22:35:33 -0500,
Kyle McMartin wrote:
>
> From: Kyle McMartin <kyle@xxxxxxxxxx>
>
> Dynamically allocate mod->ref instead of fixing it in the struct module.
> Reduces on disk space wasted in the module .ko, and kills a loop
> initializing the local_t it contains since we can just kzalloc it.
>
> This matters when we're talking about large NR_CPUS.
>
> Signed-off-by: Kyle McMartin <kyle@xxxxxxxxxx>
> ---
> The patch removing cacheline_aligned from struct module_ref should be
> applied as well to cut down on the amount of memory we allocate. This
> patch makes a nice stopgap until we have per_cpu module references.
>
> cheers, Kyle

Similar patches (including mine) have been already posted, but no
proceed until now...
http://lkml.org/lkml/2008/11/11/315


thanks,

Takashi
--
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/