Commit Graph

6929 Commits

Author SHA1 Message Date
Tobias Brunner ee0fb2ab81 Keep count of remaining elements to enumerate in hashtable_t.
This improves performance during enumeration as not all buckets have to be
checked.
2011-05-24 19:23:45 +02:00
Tobias Brunner 8af0177189 Replaced linked_list_t usage in hashtable_t with custom list implementation.
With this change inserting elements into a hashtable_t object is now
nearly as fast as inserting them into a linked_list_t object, whereas
before it was up to seven times slower.  Additionally, the memory
footprint of a hashtable is now significantly smaller.  The lookup
performance is also nearly doubled.
2011-05-24 19:23:45 +02:00
Tobias Brunner c74ece334d pluto: Made helper functions in event_queue static. 2011-05-24 19:23:45 +02:00
Tobias Brunner b3c4475076 Compiler warning fixed. 2011-05-24 19:23:45 +02:00
Martin Willi 8ed3c9fba5 Enable strict-aliasing warnings, we should really get rid of them 2011-05-24 12:04:35 +02:00
Martin Willi d45b242b60 Fix memwipe() of leading unaligned bytes 2011-05-24 11:49:20 +02:00
Martin Willi 8c1bfe6545 Link libstrongswan against libdumm, fixes build of ruby extension 2011-05-20 14:59:17 +02:00
Martin Willi 4ae7f7d13e Use spaces in Makefile.am identation, autotools don't like tabs 2011-05-20 10:09:09 +02:00
Martin Willi afd53de627 Add md5 to script plugins 2011-05-20 10:08:57 +02:00
Martin Willi b8509b7164 Link libstrongswan directly to dumm/irdumm, fixes build with newer binutils 2011-05-19 15:47:40 +02:00
Martin Willi 513701f41b Fix some warnings triggered by gcc 4.6 -Wunused-but-set-variable 2011-05-19 15:47:40 +02:00
Tobias Brunner d30df6ff3d stroke: Usage output updated. 2011-05-16 18:47:52 +02:00
Tobias Brunner 92abe2bd68 Update working thread count without allocation. 2011-05-16 18:28:03 +02:00
Tobias Brunner 21692169b9 Make sure working thread count is correctly updated 2011-05-16 15:24:16 +02:00
Martin Willi 4baf1f3bfe Migrated controller_t to INIT/METHOD macros 2011-05-16 15:24:15 +02:00
Martin Willi 83245de0ac Provide get_priority() method in controller jobs 2011-05-16 15:24:15 +02:00
Martin Willi c8972da757 Added a load tester strongswan.conf option to throttle initiation 2011-05-16 15:24:15 +02:00
Martin Willi 8606725676 Migrated load_tester_listern to INIT/METHOD macros 2011-05-16 15:24:15 +02:00
Martin Willi a4c040d536 Added strongswan.conf option to override half open IKE_SA timeout 2011-05-16 15:24:15 +02:00
Martin Willi 14bf2f689d Use CRITICAL job priority class for long running dispatcher jobs 2011-05-16 15:24:15 +02:00
Martin Willi 1c8f58adb9 Introduce a highest priority job for critical thread services 2011-05-16 15:24:15 +02:00
Martin Willi 4cf6f101d8 Show total and half-open SA count in statusall 2011-05-16 15:24:15 +02:00
Martin Willi 9a96ba4b6e Added a get_count() method to IKE_SA manager 2011-05-16 15:24:15 +02:00
Martin Willi a836cf8085 Fixed identiation in private_ike_sa_manager 2011-05-16 15:24:15 +02:00
Martin Willi c6089e252d Added a callback_job constructor supporting custom priorities 2011-05-16 15:24:15 +02:00
Martin Willi 0b04bdde30 Added a DPD option for load-tester 2011-05-16 15:24:14 +02:00
Martin Willi 015c15688c Don't simulate traffic on load-tester kernel interface 2011-05-16 15:24:14 +02:00
Martin Willi c726b1a6a5 Show how many threads are active in each class in statusall 2011-05-16 15:24:14 +02:00
Martin Willi 877fdcf0b8 Count number of threads active in each class, and reserve threads only if none active 2011-05-16 15:24:14 +02:00
Martin Willi a694b481ee Added a statusallnb stroke command to show status non-blocking 2011-05-16 15:24:14 +02:00
Martin Willi a2302d2322 Added init_limit_half_open and a init_limit_job_load (replacing job_threshold) options, some refactorings 2011-05-16 15:24:14 +02:00
Martin Willi a1bf879a43 Added preshared_key/eap_password load_tester options to set custom credentials 2011-05-16 15:24:14 +02:00
Martin Willi ac96ca80eb Added initiator/responder_id load tester options to enforce different identities 2011-05-16 15:24:14 +02:00
Martin Willi 187bf24e4d Migrated load_tester_config to INIT/METHOD macros 2011-05-16 15:24:13 +02:00
Martin Willi 8e67b5413c Migrated load_tester_creds to INIT/METHOD macros 2011-05-16 15:24:13 +02:00
Martin Willi e13819507e Fix load tester shared key enumerator, provide dedicated EAP password 2011-05-16 15:24:13 +02:00
Martin Willi 69c3eca0e9 Added a non-blocking, skipping variant of IKE_SA enumerator 2011-05-16 15:24:13 +02:00
Martin Willi 3f06403705 Added a job_threshold option to drop IKE_SA_INITs if a certain job load reached 2011-05-16 15:24:13 +02:00
Martin Willi 06f0ede759 Use high priority for retransmit/dpd/keepalive jobs 2011-05-16 15:24:13 +02:00
Martin Willi ea69c70d0e Use job priorities in process_message job based on exchange types 2011-05-16 15:24:13 +02:00
Martin Willi 68f56418cd Reserve threads for job priority classes based on strongswan.conf options 2011-05-16 15:24:13 +02:00
Martin Willi 2959ea6f84 Added job priority enum names 2011-05-16 15:24:13 +02:00
Martin Willi c73d4f53f5 Processor job scheduling respects job priority classes 2011-05-16 15:24:13 +02:00
Martin Willi f77203bbfb Introduce priority classes for jobs 2011-05-16 15:24:12 +02:00
Martin Willi dfe9bad981 Added a stroke memusage command to show memory usage 2011-05-16 15:22:21 +02:00
Martin Willi fce3b5c3ba Added a leak detective method to report current memory usage with backtraces 2011-05-16 15:22:21 +02:00
Martin Willi f37e8252a3 Make leak detective public 2011-05-16 15:22:21 +02:00
Martin Willi 42e0f26e53 Migrated leak_detective to INIT/METHOD macros 2011-05-16 15:22:21 +02:00
Martin Willi 61a141d01c Added a frame enumerator to backtrace_t 2011-05-16 15:22:21 +02:00
Martin Willi c238e8ea86 Added an equals function to backtrace_t 2011-05-16 15:22:21 +02:00