Re: CPU usage for IPSec in Linux 2.6.38
From: Naveen B N (nbn) <hidden>
Date: 2012-01-11 07:09:07
Hi David, Thanks for the early reply . I can't have a wild card has my outer IP address Are unique for across Ipsec Tunnle > 6000, so I this case I have to add all the policies for Which the selectors my have a wild card but Outer IP address are specific and unique. So taught of optimizing my just adding the policy Entry without the actual checking the previous list In kernel. Is there better way of doing it David. Thanks and Regards Naveen -----Original Message----- From: David Miller [mailto:davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org] Sent: Wednesday, January 11, 2012 12:05 PM To: Naveen B N (nbn) Cc: ipsec-tools-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Subject: Re: CPU usage for IPSec in Linux 2.6.38 From: "Naveen B N (nbn)" <redacted> Date: Wed, 11 Jan 2012 08:20:12 +0530
Did anybody try creating IPSec Tunnels > 6000 in Linux And faced the same problem below.
The problem is that you must situate your rules according to certain rules otherwise performance will suffer greatly. You must: 1) Predominantly use fully specified, non-wildcard, rules. These go into a special hash table which approaches complexity O(1). 2) If you absolutely must have wildcarded rules, only have an extremely small number of them. These go onto a linked list which is O(N). There is no reasonable reason to have thousands of wildcarded rules. Thousands of fully specified non-wildcard rules are reasonable, and what we optimize the IPSEC datastructures for. ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox