netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Reusing nfct handle for bulk ct loads
@ 2021-08-23 15:57 Mikhail Sennikovsky
  2021-08-23 15:57 ` [PATCH 1/2] tests/conntrack: script for stress-testing ct load Mikhail Sennikovsky
  2021-08-23 15:57 ` [PATCH 2/2] conntrack: use same nfct handle for all entries Mikhail Sennikovsky
  0 siblings, 2 replies; 5+ messages in thread
From: Mikhail Sennikovsky @ 2021-08-23 15:57 UTC (permalink / raw)
  To: netfilter-devel, pablo; +Cc: Mikhail Sennikovsky

Hi Pablo & all,

I've finally got my hands on doing some more sophisticated testing
of the bulk ct operations functionality (-R option), and revealed 
a way to makethe ct load operations to be almost twice as fast 
by reusing the same nfct handleinstead of recreating it for each
entry.
This becomes essential for bulk loads of big amounts of entries,
where the overall speedup reaches values of seconds.

The two patches posted here are the tests/conntrack/bulk-load-stress.sh 
script that could be used for stress testing the bulk operations
and the patch improving the bulk ct load performance.

(Btw the script also reveals that bulk deletion of big amount
of entries specified individually is really slow,
but it's another story which could be addressed later if needed.)

Any feedback/suggestions for the patches are welcome.

Regards,
Mikhail


Mikhail Sennikovsky (2):
  tests/conntrack: script for stress-testing ct load
  conntrack: use same nfct handle for all entries

 src/conntrack.c                     | 160 +++++++++++++++++-----------
 tests/conntrack/bulk-load-stress.sh | 152 ++++++++++++++++++++++++++
 2 files changed, 247 insertions(+), 65 deletions(-)
 create mode 100755 tests/conntrack/bulk-load-stress.sh

-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-17 13:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-23 15:57 [PATCH 0/2] Reusing nfct handle for bulk ct loads Mikhail Sennikovsky
2021-08-23 15:57 ` [PATCH 1/2] tests/conntrack: script for stress-testing ct load Mikhail Sennikovsky
2021-09-06 10:48   ` Pablo Neira Ayuso
2021-08-23 15:57 ` [PATCH 2/2] conntrack: use same nfct handle for all entries Mikhail Sennikovsky
2021-10-17 13:58   ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).