diff options
author | Song Liu <[email protected]> | 2022-02-04 10:57:40 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-02-07 18:13:01 -0800 |
commit | 57631054fae6dcc9c892ae6310b58bbb6f6e5048 (patch) | |
tree | cbc2dd82f7767f68f07b404e2eb354a9002f1280 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | ebc1415d9b4f043cef5a1fb002ec316e32167e7a (diff) |
bpf: Introduce bpf_prog_pack allocator
Most BPF programs are small, but they consume a page each. For systems
with busy traffic and many BPF programs, this could add significant
pressure to instruction TLB. High iTLB pressure usually causes slow down
for the whole system, which includes visible performance degradation for
production workloads.
Introduce bpf_prog_pack allocator to pack multiple BPF programs in a huge
page. The memory is then allocated in 64 byte chunks.
Memory allocated by bpf_prog_pack allocator is RO protected after initial
allocation. To write to it, the user (jit engine) need to use text poke
API.
Signed-off-by: Song Liu <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions