Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a key-based process table #169

Merged
merged 2 commits into from
Nov 7, 2023

Conversation

hillu
Copy link
Collaborator

@hillu hillu commented Nov 5, 2023

Processes are now uniquely identified by a ProcessKey instead of
process IDs as those may be recycled quickly.

Most of the code interfacing with the process table has been pulled
into the early part of Coalesce::transform_event that handles SYSCALL
messages.

The test introduced with #168 now passes.

Fixes #146

Performance-wise, this is a slight improvement over current master.

This branch:

test parse_only      ... bench:  20,237,394 ns/iter (+/- 235,818)
test parse_serialize ... bench:  27,426,770 ns/iter (+/- 255,343)

master (f237694):

test parse_only      ... bench:  22,737,572 ns/iter (+/- 397,532)
test parse_serialize ... bench:  30,010,731 ns/iter (+/- 369,789)

@hillu hillu force-pushed the fix-proctable branch 4 times, most recently from 2cdc8df to d20f49d Compare November 6, 2023 23:35
hillu added 2 commits November 7, 2023 00:38
Processes are now uniquely identified by a ProcessKey instead of
process IDs as those may be recycled quickly.

Most of the code interfacing with the process table has been pulled
into the early part of Coalesce::transform_event that handles SYSCALL
messages.

The test introduced with threathunters-io#168 now passes.

Fixes threathunters-io#146

Performance-wise, this is a slight improvement over current master.

This branch:

test parse_only      ... bench:  20,237,394 ns/iter (+/- 235,818)
test parse_serialize ... bench:  27,426,770 ns/iter (+/- 255,343)

master (f237694):

test parse_only      ... bench:  22,737,572 ns/iter (+/- 397,532)
test parse_serialize ... bench:  30,010,731 ns/iter (+/- 369,789)
@hillu hillu merged commit 8a710d5 into threathunters-io:master Nov 7, 2023
5 checks passed
@hillu hillu deleted the fix-proctable branch December 27, 2023 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deal better with proceess ID recycling
1 participant