Skip to content

BPF_MAP_TYPE_PERF_EVENT_ARRAY inconsistency: #232

@wez470

Description

@wez470

For picking the buffer length, https://github.com/isovalent/ebpf-docs/blob/master/docs/linux/map-type/BPF_MAP_TYPE_PERF_EVENT_ARRAY.md states

length can be picked and tuned depending on the use case but should always be 1+2^n memory pages and n should not be 0. So Assuming a 4k page size, valid values would be 12288, 20480, 28672 and so on.

But 28672 can not be achieved through that formula. I'm wondering which is correct here. Should the formula be 1+2*n? Or is 28672 invalid?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions