LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-10-2018, 04:30 AM   #1
barz_83_LQ
Member
 
Registered: Apr 2017
Posts: 31

Rep: Reputation: Disabled
KConfig option CONFIG_NO_HZ_FULL not found (3.13.0-32 kernel), to build low latency setup


Hello,

I currently have Ubuntu 14.04.01 LTS, Kernel 3.13.0-32 on a dual core laptop. I am working on creating a low latency kernel image of 3.12.74
version and preempt_rt patch.

While make menuconfig, (using the .config file as received while installing Ubuntu 14.04.1),
I see only 2 options under "Timer Subsystems"
-> Old Idle dynticks config
-> High resolution Timer support

--------------------------------------------------------------

It is missing option related to CONFIG_NO_HZ_FULL and other similar options.
It is not a problem of kernel supporting the feature, as it is available as per documentation from 3.10 kernel.

This is relvant excerpt from original config which am modifying:
#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y


(Not sure and dont believe I have disabled anything that would make this option disabled). So, now, I believe this particular config file which I received aling with Ubuntu 14 installation is incomplete. But am not an expert at these options, so I have 2 simple questions:
1) How do I modify config file (There might be dependencies etc and other things might need to be done, instead of just adding another macro in config file as CONFIG_NO_HZ_FULL)
2) How do I deal with this issue in general, as always I would be using some existing config file, which might be incomplete, and I might be missing some options which I might want to try out.

Thank you

Last edited by barz_83_LQ; 02-10-2018 at 04:45 AM. Reason: Missing detail added
 
Old 02-10-2018, 04:29 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
OK, you need to get the config file from somewhere. Where did it come from? I usually use the latest /boot/config-xyz file, and just rename it .config. Then, before you can manually configure the kernel, you have to do 'make oldconfig'. Then you can do a menuconfig, or xconfig, or gconfig.
 
Old 02-11-2018, 04:34 AM   #3
barz_83_LQ
Member
 
Registered: Apr 2017
Posts: 31

Original Poster
Rep: Reputation: Disabled
Dear AwesomeMachine,
I have used the .config file taken from existing installation and reused it. I did directly run make menuconfig.
I have by now tried multiple things, (also checked make help for a view of make targets of linux kernel), make defconfig and then make oldconfig and then make menuconfig, (or) make alldefconfig and then make menuconfig (or) make oldconfig and then make menuconfig etc various combinations of these but still I do not get the option corresponding to CONFIG_NO_HZ_FULL.
The documentation resources (for example ...https://lwn.net/Articles/549580/) show that the option has been present since 3.10 and am building 3.12.x version of kernel.

My question is straight forward, why am I unable to see the option. Any inputs towards resolution or anything that I misunderstood. I have actually searched in kernel source directory for CONFIG_NO_HZ_FULL but I did not get any results in config files but I got the macro in source and header files.Exact source version of kernel am trying to build is 3.12.74.

Thank you
 
Old 02-11-2018, 05:05 AM   #4
barz_83_LQ
Member
 
Registered: Apr 2017
Posts: 31

Original Poster
Rep: Reputation: Disabled
I just realized that the default arch provided config file for 64 bit one (x86_64_defconfig) contains the option CONFIG_NO_HZ_FULL, the 32 bit variant(i386_defconfig) doesnt contain the macro.

"I am not sure if that is intentional and the 32 bit kernel 3.12 doesnt support CONFIG_NO_HZ_FULL option (or) it is something that needs to be fixed (or) overlooked to be updated".

1) So, any comments and inputs and detail on my understanding(above statement) is greatly appreciated.

2)Can I manually edit the 32 bit config file to include the macro? (It din work, I tried already) (or) should I try to compare the 64 bit config file and 32 bit one and copy relevant changes to the 32 bit one (Am about to give this a try now)

Thank you very much

Last edited by barz_83_LQ; 02-11-2018 at 05:14 AM. Reason: Increased scope of question but made questions particular
 
Old 02-13-2018, 10:07 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
32-bit processors probably don't use that config option, or it's always set the same, so there is no option to change it on a 32-bit kernel.

I noticed you are not running 'make clean' at all. After you configure the kernel, before you configure it again, you have to run 'make clean'.
 
  


Reply

Tags
build, config, kernel, menuconfig



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
LXer: New Low-Latency Ubuntu Server Build Proposed LXer Syndicated Linux News 0 01-21-2010 02:21 AM
Kernel panic, Preemptible Kernel (Low-Latency Desktop) Smartnow Linux - Kernel 3 04-13-2008 02:46 AM
Low Latency Kernel Rockgod1969 Linux - Software 3 06-05-2007 12:52 PM
enabling low latency 2.6 kernel friendly_guy Linux - General 6 06-17-2005 07:01 AM
Low Latency Kernel SpiderIRE Linux - Software 2 01-30-2005 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:12 PM.

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