aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/load_tester/load_tester_ipsec.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-04-11 16:23:39 +0200
committerTobias Brunner <tobias@strongswan.org>2014-04-24 17:54:14 +0200
commita68454bd68221490e5504969b5378a1e86f204de (patch)
treee83034599cc4e2c517eee273c93d24f2b345a9cd /src/libcharon/plugins/load_tester/load_tester_ipsec.c
parent0f603d425df132adcb60b9f25ac277b26e80c72a (diff)
downloadstrongswan-a68454bd68221490e5504969b5378a1e86f204de.tar.bz2
strongswan-a68454bd68221490e5504969b5378a1e86f204de.tar.xz
ike-sa-manager: Improve scalability of half-open IKE_SA checking
This patch is based on one by Christoph Gouault. Currently, to count the total number of half_open IKE_SAs, get_half_open_count sums up the count of each segment in the SA hash table (acquiring a lock for each segment). This procedure does not scale well when the number of segments increases, as the method is called for each new negotiation. Instead, lets maintain a global atomic counter. This optimization allows the use of big values for charon.ikesa_table_size and charon.ikesa_table_segments.
Diffstat (limited to 'src/libcharon/plugins/load_tester/load_tester_ipsec.c')
0 files changed, 0 insertions, 0 deletions