Skip to content

Using tcache for manual created arenas #2813

Open

Description

@fexolm

I am using manualy created arenas per numa node and I am trying to significantly grow tcache up to gigabytes, to avoid syncronization overhead. For some reason in stats I see non zero tcache_bytes only in default arenas[0]. Is it expected? Or how could I assign tcache to my custom arenas?

P.S. I tried to use per thread arena, but as I also use custom extent hooks with rte_malloc inside I wasn't able to return memory back to rte_malloc, so other arenas could use it (as extent hooks deallocate memory with smaller chunks, than they allocate). I didn't want to implement another layer on top of rte_malloc cache to handle these small deallocations and share them between arenas, so I thought I could use per numa arena with aggressive tcache. And yes, I'm seeing promising results, but statistic is a bit confusing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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