NUMA kernel suppport for AGX Xavier

Hello,

I am trying to build the linux kerner, in order to support a NUMA system (What is NUMA? — The Linux Kernel documentation) to be used with docker containers.

Has anyone done something similar? or can someone help configure the Kernel appropriately?

From the .config file i only activate CONFIG_NUMA=y parameter (maybe i need to activate more? any ideas?)

However when i try to build the kernel, the make fails with an error that looks to me like a problem with the
compiler (please see attached).

Any advice welcome,

best,
Pavlos.

Modify the __too_many_isolated() like below to verify.

static int __too_many_isolated(struct pglist_data *pgdat, int file,
	struct scan_control *sc, int safe)
{
	unsigned long inactive, isolated;
	if (file) {
		if (safe) {
			inactive = node_page_state_snapshot(pgdat,
					NR_INACTIVE_FILE);
			isolated = node_page_state_snapshot(pgdat,
					NR_ISOLATED_FILE);
		} else {
			inactive = node_page_state(pgdat, NR_INACTIVE_FILE);
			isolated = node_page_state(pgdat, NR_ISOLATED_FILE);
		}
	} else {
		if (safe) {
			inactive = node_page_state_snapshot(pgdat,
					NR_INACTIVE_ANON);
			isolated = node_page_state_snapshot(pgdat,
					NR_ISOLATED_ANON);
		} else {
			inactive = node_page_state(pgdat, NR_INACTIVE_ANON);
			isolated = node_page_state(pgdat, NR_ISOLATED_ANON);
		}
	}
1 Like

Hello yes,

I did that, and works.

Just an fyi, i managed to connect Openstack (with ZUN plugin that uses docker to manage containers) on the AGX Xavier device and i can orchestrate containers through Openstack to the jetson compute node.

best
Pavlos.