def test_odp_rc_huge_user_addr_traffic(self): self.user_addr = mmap(length=HUGE_PAGE_SIZE, flags=MAP_ANONYMOUS_ | MAP_PRIVATE_ | MAP_HUGETLB_) client, server = self.create_players(OdpRC, is_huge=True, user_addr=self.user_addr) traffic(client, server, self.iters, self.gid_index, self.ib_port)
def __init__(self, alloc_func=None, free_func=None, **kwargs): user_data = mem.mmap(length=HUGE_PAGE_SIZE, flags=mem.MAP_ANONYMOUS_ | mem.MAP_PRIVATE_ | mem.MAP_HUGETLB_) super().__init__(alloc_func=alloc_func, free_func=free_func, user_data=user_data, **kwargs)