user: custom mapSize flag. improve memory usage #433 .#435
Merged
Conversation
used `--map-size` to set mapSize perCPU in cli. default:10240KB, Signed-off-by: cfc4n <cfc4n.cs@gmail.com>
Member
Author
|
@h0x0er PTAL. |
Set the default `--map-size` to 5120KB. Signed-off-by: cfc4n <cfc4n.cs@gmail.com>
Member
Author
Terminal 1sudo free -m
[sudo] password for cfc4n:
total used free shared buff/cache available
Mem: 3876 477 277 1 3121 3106
Swap: 3893 0 3893
#### exec ecapture at other terminal.
sudo free -m
total used free shared buff/cache available
Mem: 3876 513 240 1 3121 3069
Swap: 3893 0 3893Terminal 2sudo bin/ecapture tlsand , openssl module create 3 ebpf maps. {
Name: "tls_events",
},
{
Name: "connect_events",
},
{
Name: "mastersecret_events",
},
all eBPF maps used memory = 2 * 5 * 3 = 30MB. As expected. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
used
--map-sizeto set mapSize perCPU in cli. default:10240KB,