Add NUMA and thread affinity support for Unix (dotnet/coreclr#10938)
authorJan Vorlicek <janvorli@microsoft.com>
Wed, 19 Apr 2017 22:13:30 +0000 (15:13 -0700)
committerGitHub <noreply@github.com>
Wed, 19 Apr 2017 22:13:30 +0000 (15:13 -0700)
commitd4ffe751d2c631dbdbcbacf9e8615974a207eb31
treeb0f0223ddaf503c1aeed7cb44ee80fdfd6df913a
parent8cc60bea9adcb934a99642baed13642b29917bdc
Add NUMA and thread affinity support for Unix (dotnet/coreclr#10938)

* Add NUMA and thread affinity support for Unix

This change adds new PAL functions for NUMA and thread affinity support
for Unix and also enables related code in GC and VM for FEATURE_PAL.

It doesn't reflect the limits imposed by CGROUPS on systems with
CGROUPS enables yet.

Commit migrated from https://github.com/dotnet/coreclr/commit/48ebab8270a96e505a2be128a4875f903ef1c4b2
15 files changed:
src/coreclr/src/dlls/mscordac/mscordac_unixexports.src
src/coreclr/src/gc/gc.cpp
src/coreclr/src/inc/utilcode.h
src/coreclr/src/pal/inc/pal.h
src/coreclr/src/pal/src/CMakeLists.txt
src/coreclr/src/pal/src/config.h.in
src/coreclr/src/pal/src/configure.cmake
src/coreclr/src/pal/src/include/pal/dbgmsg.h
src/coreclr/src/pal/src/include/pal/numa.h [new file with mode: 0644]
src/coreclr/src/pal/src/init/pal.cpp
src/coreclr/src/pal/src/map/virtual.cpp
src/coreclr/src/pal/src/misc/sysinfo.cpp
src/coreclr/src/pal/src/numa/numa.cpp [new file with mode: 0644]
src/coreclr/src/utilcode/util.cpp
src/coreclr/src/vm/gcenv.os.cpp