Page MenuHomeFreeBSD

netmap: Make memory pools NUMA-aware
Needs ReviewPublic

Authored by markj on Fri, Sep 13, 8:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 21, 3:50 AM
Unknown Object (File)
Sat, Sep 21, 3:50 AM
Unknown Object (File)
Sat, Sep 21, 3:36 AM
Unknown Object (File)
Thu, Sep 19, 10:00 AM
Unknown Object (File)
Wed, Sep 18, 12:27 PM
Unknown Object (File)
Wed, Sep 18, 10:17 AM
Unknown Object (File)
Wed, Sep 18, 2:34 AM
Unknown Object (File)
Mon, Sep 16, 8:34 AM
Subscribers

Details

Reviewers
vmaffione
Summary

Each netmap adapter associated with a physical adapter is attached to a
netmap memory pool. contigmalloc() is used to allocate physically
contiguous memory for the pool, but ideally we would ensure that all
such memory is allocated from the NUMA domain local to the adapter.

Augment netmap's memory pools with a NUMA domain ID, similar to how
IOMMU groups are handled in the Linux port. That is, when attaching to
a physical adapter, ensure that the associated memory pools are local to
the adapter's associated memory domain, creating new pools as needed.

Some types of ifnets do not have any defined NUMA affinity; in this case
the domain ID in question is IF_NODOM.

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 59477
Build 56364: arc lint + arc unit