From: "Shekhar Kshirsagar" Subject: Memory scaling issues with Per CPU Copy of ipt_entry tables in iptables Date: Sat, 18 Mar 2006 00:06:15 -0800 Message-ID: <8cfc57e20603180006q2baa1bfcgfa87972cb69dae4@mail.gmail.com> References: <8cfc57e20603180001n545e7adak90d293354313d05e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: To: netfilter-devel@lists.netfilter.org In-Reply-To: <8cfc57e20603180001n545e7adak90d293354313d05e@mail.gmail.com> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org iptables code (2.4/2.6), iptables implementation makes per CPU copy of the ipt_entry tables. Looking in the code, it seems that per CPU copy is really required only for two variables in ipt_entry structure - 'comefrom' and 'counters'. But further investigation reveals that, old ipchains implementation (ipchains_core.c) had per CPU copy of only counters instead of the complete structure. So it seems like there was some specific reason to move away from per CPU copy of just counters to per CPU copy of complete ipt_entry tables. Can somebody who knows history of these changes help me understand the implications if one wants to reduce iptables memory requirements by going per CPU copy of only two variables - 'comefrom' and 'counters'. Thanks, Shekhar