OpenVZ Forum


Home » Mailing lists » Devel » [PATCH][NETNS] Move some code into __init section when CONFIG_NET_NS=n
Re: [PATCH][NETNS] Move some code into __init section when CONFIG_NET_NS=n [message #21400 is a reply to message #21292] Mon, 08 October 2007 07:18 Go to previous message
davem is currently offline  davem
Messages: 463
Registered: February 2006
Senior Member
From: Pavel Emelyanov <xemul@openvz.org>
Date: Thu, 04 Oct 2007 17:54:11 +0400

> With the net namespaces many code leaved the __init section,
> thus making the kernel occupy more memory than it did before.
> Since we have a config option that prohibits the namespace
> creation, the functions that initialize/finalize some netns
> stuff are simply not needed and can be freed after the boot.
> 
> Currently, this is almost not noticeable, since few calls
> are no longer in __init, but when the namespaces will be
> merged it will be possible to free more code. I propose to 
> use the __net_init, __net_exit and __net_initdata "attributes"
> for functions/variables that are not used if the CONFIG_NET_NS
> is not set to save more space in memory.
> 
> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

Applied, thanks Pavel.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CPU controller for Completely Fair Scheduler?
Next Topic: [PATCH] Use task_pid_nr() instead of pid_nr(task_pid())
Goto Forum:
  


Current Time: Fri Oct 18 02:05:02 GMT 2024

Total time taken to generate the page: 0.05307 seconds