From 70704265a8618cebde95c8dfec89a75d760b0e20 Mon Sep 17 00:00:00 2001 From: CrimsonHawk Date: Sat, 14 Dec 2024 20:10:00 +0800 Subject: [PATCH] added NUMA emulation --- config | 4 ++-- patches/NUMA.patch | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100755 patches/NUMA.patch diff --git a/config b/config index 85500aa..adc7bca 100644 --- a/config +++ b/config @@ -1258,7 +1258,7 @@ CONFIG_LOCK_MM_AND_FIND_VMA=y CONFIG_IOMMU_MM_DATA=y CONFIG_EXECMEM=y CONFIG_NUMA_MEMBLKS=y -# CONFIG_NUMA_EMU is not set +CONFIG_NUMA_EMU=y # # Data Access Monitoring @@ -11536,7 +11536,7 @@ CONFIG_SWIOTLB=y CONFIG_DMA_NEED_SYNC=y CONFIG_DMA_COHERENT_POOL=y CONFIG_DMA_CMA=y -# CONFIG_DMA_NUMA_CMA is not set +CONFIG_DMA_NUMA_CMA=y # # Default contiguous memory area size: diff --git a/patches/NUMA.patch b/patches/NUMA.patch new file mode 100755 index 0000000..851e92f --- /dev/null +++ b/patches/NUMA.patch @@ -0,0 +1,22 @@ +diff --git a/home/lihaowang/Downloads/confign b/home/lihaowang/Downloads/config +index 85500aa..adc7bca 100644 +--- a/home/lihaowang/Downloads/confign ++++ b/home/lihaowang/Downloads/config +@@ -1258,7 +1258,7 @@ CONFIG_LOCK_MM_AND_FIND_VMA=y + CONFIG_IOMMU_MM_DATA=y + CONFIG_EXECMEM=y + CONFIG_NUMA_MEMBLKS=y +-# CONFIG_NUMA_EMU is not set ++CONFIG_NUMA_EMU=y + + # + # Data Access Monitoring +@@ -11536,7 +11536,7 @@ CONFIG_SWIOTLB=y + CONFIG_DMA_NEED_SYNC=y + CONFIG_DMA_COHERENT_POOL=y + CONFIG_DMA_CMA=y +-# CONFIG_DMA_NUMA_CMA is not set ++CONFIG_DMA_NUMA_CMA=y + + # + # Default contiguous memory area size: