LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-27-2020, 11:14 AM   #1
athithanvijay
Member
 
Registered: Aug 2020
Posts: 31

Rep: Reputation: Disabled
How to enable NUMA node in custom Linux


I am trying to run DPDK helloworld example in a custom Linux distribution. I have installed custom Linux in a VMware player. The program is failed due to the fact the NUMA node is not supported. When I try to execute grep NUMA /boot/config-uname -a`, I don't get any results.

On the other hand, I tried the same activity in Ubuntu VM in VMware player. There DPDK helloworld didn't fail. When I try to execute grep NUMA /boot/config-uname -a` , I got details about NUMA configuration.

The other day, VMplayer provided different default NIC cards for Ubuntu and custom Linux. Hence i changed entries in vmx file.

I am just wondering whether different results are due to any setting parameters in custom linux or vmx file settings in the virtual machine.

Would appreicate your help on this to understand the cause of the issue.

Edit 1: I tried the following commands in different VMs

In CentOS VM

cat /etc/centos-release
centOS Linux release 8.2
uname -r
4.18.0
lscpu
NUMA node(s) :1
NUMA node0 CPU(s): 0-3
grep NUMA /boot/Config.x
CONFIG_NUMA=y

In Ubuntu VM
uname -r
4.10.0

lsb_release -a
Ubuntu 16.04
lscpu
NUMA node(s) :1
NUMA node0 CPU(s): 0-3
grep NUMA /boot/Config.x
CONFIG_NUMA=y
numactl --hardware gives output

In Custom Linux

uname -r
3.16.71
**lscpu output don't contain NUMA details**
zgrep NUMA /proc/config.gz
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
CONFIG_ARCH_WANTS_PROT_NUMA_PROT_NONE=y
**#CONFIG_NUMA is not set**

numactl --show
**No NUMA support available on this system**

In custom Linux source code the following line is there
sources/kernel-headers/linux-3.4.104/arch/x86/configs/x86_64_defconfig
**Config_NUMA=y**

But as per results, it says CONFIG_NUMA is not set.

Would appreciate your inputs whether do I need to update any other part in kernel source code to enable NUMA node.
 
Old 09-27-2020, 11:17 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Read the LQ Rules; don't post the same question multiple times. Thread reported
 
1 members found this post helpful.
Old 09-27-2020, 09:24 PM   #3
athithanvijay
Member
 
Registered: Aug 2020
Posts: 31

Original Poster
Rep: Reputation: Disabled
@TB0ne, Thanks for your feedback. I understand it would not be good to post a message multiple times. Actually Once I got more details, I concluded that the question is related to kernel recompile rather Linux from scratch. I couldn't figure out how to move the question from one forum to another. I am sorry for that. I will close one of the threads to avoid duplication
 
Old 11-14-2020, 10:28 PM   #4
athithanvijay
Member
 
Registered: Aug 2020
Posts: 31

Original Poster
Rep: Reputation: Disabled
This requires compiling Linux kernel with NUMA flag enabled.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to enable NUMA node in custom Linux athithanvijay Linux From Scratch 3 09-28-2020 03:46 PM
node recovery when the node becomes fault by using another node to replace it jerinc Linux - Wireless Networking 0 02-21-2014 05:44 PM
How to transfer the services from node 1 to node 2 ,if node 1 is directly turned off sankarg304 Linux - Server 1 12-12-2012 10:06 AM
Numa numa dance! stabile007 General 7 04-22-2005 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration