https://github.com/FastFilter/fastfilter_cpp/blob/5f4f425a982bf6d770ff4ce38edc473487d5921d/benchmarks/linux-perf-events.h#L56 I believe you are not closing all fd that are opened in the for loop of the constructor. Best regards Jens