You are not logged in.

#1 2015-02-13 17:46:42

orlfman
Member
Registered: 2007-11-20
Posts: 145

modifying the stock arch linux kernel and kernel timer frequency

so if i understand correctly, if we want to modify the stock arch linux kernel, we have to pull it off of abs. ie "ABSROOT=. abs core/linux" then modify the pkgbuild, uncommenting out make menuconfig and setting the pkgbase name to something different than stock. ie, "linux-custom" then update the checksums followed by importing the gpg keys, ie "gpg --recv-keys 79BE3E4300411886 and gpg --recv-keys 38DBBDC86092693E" for the kernel and patches. then run makepkg -s.

we can't just run make menuconfig on the current kernel that's installed?

and if we pull the linux kernel from abs to customize, does it already come preconfigured with all the arch changes and settings? like its no different than the current one installed?

i just ask because for the most part, i like the current arch kernel, there are just a few minor things i want to change but kept everything else the same as stock arch linux kernel.

also, i herd arch uses 300hz for its timer. whats the benefits and disadvantage of using 300hz over 1000hz for a desktop system?

Offline

#2 2015-02-13 21:18:48

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,175
Website

Re: modifying the stock arch linux kernel and kernel timer frequency

orlfman wrote:

we can't just run make menuconfig on the current kernel that's installed?

No you can't, because the kernel then has to be compiled so the kernel will run with the different tick rate.

orlfman wrote:

and if we pull the linux kernel from abs to customize, does it already come preconfigured with all the arch changes and settings? like its no different than the current one installed?

i just ask because for the most part, i like the current arch kernel, there are just a few minor things i want to change but kept everything else the same as stock arch linux kernel.

As I understand it from the Wiki, the ABS pulls the PKGBUILD and other arch-specific sources from the ArchLinux script server. However, I don't use the ABS, but pull the files I need directly from the ArchLinux SVN and build using makepkg[1] after making the necessary changes.

orlfman wrote:

Also, I heard arch uses 300hz for its timer. whats the benefits and disadvantage of using 300hz over 1000hz for a desktop system?

You're in for a technical discussion here. This has a reasonably friendly discussion on kernel tick rates.

Basically, higher tick rates = a higher level of timing precision & higher processor load, lower tick rates = lower level of timing precision & lower processor load.

[1] Technically, I use the clean chroot manager package, which is a wrapper for makechrootpkg (which in turn is a wrapper for running makepkg in a clean chroot if I'm not mistaken).


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#3 2015-02-13 21:24:38

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,732
Website

Re: modifying the stock arch linux kernel and kernel timer frequency

Why do you wanna change the tick rate?  I believe the Arch default is tickless anyway.  What do you want to achieve with a faster tick rate?

Offline

#4 2015-02-13 21:25:32

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: modifying the stock arch linux kernel and kernel timer frequency

orlfman wrote:

so if i understand correctly, if we want to modify the stock arch linux kernel, we have to pull it off of abs. ie "ABSROOT=. abs core/linux" then modify the pkgbuild, uncommenting out make menuconfig and setting the pkgbase name to something different than stock. ie, "linux-custom" then update the checksums followed by importing the gpg keys, ie "gpg --recv-keys 79BE3E4300411886 and gpg --recv-keys 38DBBDC86092693E" for the kernel and patches. then run makepkg -s.

That's one way to do it, even though I don't think the gpg keys part would be necessary.

we can't just run make menuconfig on the current kernel that's installed?

you need the source code to run make against. The installed kernel only consists of the kernel binary.

and if we pull the linux kernel from abs to customize, does it already come preconfigured with all the arch changes and settings? like its no different than the current one installed?

If you want to copy the arch kernel's configuration. All you need is the .config file from arch kernel package sources, and use it for compiling your own kernel, whether you use ABS or PKGBUILDs or compile the kernel by hand.

Offline

#5 2015-02-13 22:05:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: modifying the stock arch linux kernel and kernel timer frequency

ooo wrote:

If you want to copy the arch kernel's configuration. All you need is the .config file from arch kernel package sources

Not even that.  Just unpack it from /proc/config.gz.

FYI:

graysky wrote:

I believe the Arch default is tickless anyway.

$ uname -r
3.18.6-1-ARCH
$ zgrep ^CONFIG_HZ /proc/config.gz 
CONFIG_HZ_300=y
CONFIG_HZ=300

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2015-02-13 22:23:18

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: modifying the stock arch linux kernel and kernel timer frequency

orlfman wrote:

also, i herd arch uses 300hz for its timer. whats the benefits and disadvantage of using 300hz over 1000hz for a desktop system?

FYI there is also a lot of upstream interest in tickless mode http://lwn.net/Articles/549580/


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

Board footer

Powered by FluxBB