Package Details: linux-xanmod-headers 4.20.2-1

Git Clone URL: https://aur.archlinux.org/linux-xanmod.git (read-only)
Package Base: linux-xanmod
Description: Header files and scripts for building modules for Xanmod Linux kernel
Upstream URL: http://www.xanmod.org/
Licenses: GPL2
Conflicts: linux-xanmod-git-headers
Provides: linux-headers, linux-xanmod-git-headers
Replaces: linux-xanmod-git-headers
Submitter: Yoshi2889
Maintainer: figue (figuepluto, jfigueras)
Last Packager: figue
Votes: 12
Popularity: 0.244650
First Submitted: 2017-02-14 09:40
Last Updated: 2019-01-13 16:11

Dependencies (7)

Required by (313)

Sources (6)

Pinned Comments

figue commented on 2018-12-14 00:50

Please, check new release. You have now several variables to enable/disable features.

References:

## Disable NUMA since most users do not have multiple processors. Breaks CUDA/NvEnc.
## Archlinux and Xanmod enable it by default.
## Set variable "use_numa" to: n to disable (possibly increase performance)
##                             y to enable  (stock default)
if [ -z ${_numa+x} ]; then
  use_numa=y
fi
##
## For performance you can disable FUNCTION_TRACER/GRAPH_TRACER. Limits debugging and analyzing of the kernel.
## Stock Archlinux and Xanmod have this enabled.
## Set variable "use_tracers" to: n to disable (possibly increase performance)
##                                y to enable  (stock default)
if [ -z ${_tracers+x} ]; then
  use_tracers=y
fi
##
## Enable PDS CPU scheduler by default https://gitlab.com/alfredchen/linux-pds
## Set variable "use_pds" to: n to disable (stock Xanmod)
##                            y to enable
if [ -z ${_pds+x} ]; then
  use_pds=n
fi

Personally I'm running now xanmod kernel compiled with this:

env _tracers=0 _numa=0 _pds=1 makepkg -s

Also, you can now put a file in your local repo to build this package with a custom config. You have to call this file myconfig.

Reference:

  # Put the file "myconfig" at the package folder to use this feature
  if [ -f "${startdir}/myconfig" ]; then
    msg2 "Using user CUSTOM config..."
    cp -f "${startdir}"/myconfig .config
  fi

Latest Comments

1 2 3 4 5 6 Next › Last »

figue commented on 2018-12-15 00:12

@Markospox thanks for the tips. Adopted almost all (I think myconfig it's enough). Check fixed comment again.

Apologies for making so many changes in such a short time.

Markospox commented on 2018-12-14 22:15

I'd myself change _numa to use_numa, _tracers to use_tracers, _pds to use_pds and myconfig to custom_config or mycustomconfig. It's also good to change in PKGBUILD teorically to theoretically or to possibly as well as "people that wants" to "people that want". Can you tell, are these CONFIG_FUNCTION_TRACER & CONFIG_FUNCTION_GRAPH_TRACER useful just for doing kernel debugging or are they necessary if I wish to develop software and debug my code too? I think it'd awesome if there was use_production_config parameter which would allow you to choose if you want a kernel that's aimed at most of users in which case kernel debugging would be turned off (1) or for kernel debugging/development (0). I would be also using more modern ifs (if [[ ... ]]). Do you know anything more about this PDS-mq, I don't know much about it and I'm a bit stopped by "currently incompatible" comment?

Besides, I don't know why it's not building for me, gotta check one more time

figue commented on 2018-12-14 00:50

Please, check new release. You have now several variables to enable/disable features.

References:

## Disable NUMA since most users do not have multiple processors. Breaks CUDA/NvEnc.
## Archlinux and Xanmod enable it by default.
## Set variable "use_numa" to: n to disable (possibly increase performance)
##                             y to enable  (stock default)
if [ -z ${_numa+x} ]; then
  use_numa=y
fi
##
## For performance you can disable FUNCTION_TRACER/GRAPH_TRACER. Limits debugging and analyzing of the kernel.
## Stock Archlinux and Xanmod have this enabled.
## Set variable "use_tracers" to: n to disable (possibly increase performance)
##                                y to enable  (stock default)
if [ -z ${_tracers+x} ]; then
  use_tracers=y
fi
##
## Enable PDS CPU scheduler by default https://gitlab.com/alfredchen/linux-pds
## Set variable "use_pds" to: n to disable (stock Xanmod)
##                            y to enable
if [ -z ${_pds+x} ]; then
  use_pds=n
fi

Personally I'm running now xanmod kernel compiled with this:

env _tracers=0 _numa=0 _pds=1 makepkg -s

Also, you can now put a file in your local repo to build this package with a custom config. You have to call this file myconfig.

Reference:

  # Put the file "myconfig" at the package folder to use this feature
  if [ -f "${startdir}/myconfig" ]; then
    msg2 "Using user CUSTOM config..."
    cp -f "${startdir}"/myconfig .config
  fi

figue commented on 2018-12-13 21:06

@Markospox you can change oldefconfig to remove default settings and use menuconfig if it's what you want.

I'm testing a new build process, removing Arch config but adding an option for users that want a custom config. It's simple, but should work... The idea is to replace .config with a file called myconfig on the package folder. People that build this package without this file would compile with xanmod default (as usual). If anyone wants a different config this should be enough. Thoughts?

  # This is intended for the people that wants to build this package with their own config
  # Put the file "myconfig" at the package folder to use this feature
  if [ -f "../myconfig" ]; then
    msg2 "Using user CUSTOM config..."
    cp ../myconfig .config
  fi

Also, thanks to some ideas shared by private by openglfreak, I would add an option to disable NUMA and also disable FUNCTION_TRACER/GRAPH_TRACER.

Markospox commented on 2018-12-13 15:35

What should be done if I wish to adjust configuration before building the package? Would replacing make olddefconfig with make menuconfig in PKGBUILD be fine, there's no #info anymore? What's next, makepkg? Or maybe makepkg -> fail, makepkg -e?

Markospox commented on 2018-12-13 13:26

I have: rm: cannot remove '/home/mkl/Downloads/linux-xanmod-419/pkg/linux-xanmod-4.19.6/usr/lib/modules//source': No such file or directory after DEPMOD 4.19.6-xanmod4-1-xanmod-4.19.6MANJARO can you tell why is this?

kyle_dolichev commented on 2018-12-13 01:00

ld: arch/x86/kernel/cpu/bugs.o:(__jump_table+0x28): undefined reference to `sched_smt_present'
ld: arch/x86/kernel/cpu/bugs.o:(__jump_table+0x40): undefined reference to `sched_smt_present'
ld: arch/x86/kernel/cpu/bugs.o:(__jump_table+0x58): undefined reference to `sched_smt_present'
ld: arch/x86/kernel/cpu/bugs.o:(__jump_table+0x70): undefined reference to `sched_smt_present'

those are the errors in case you're curious. And, can you please leave in an option so that we can have a config file we can adjust? thanks

figue commented on 2018-12-12 23:22

@kyle_dolichev I'll probably drop arch configuration. I think it doesn't have any sense.

kyle_dolichev commented on 2018-12-12 19:02

Is anybody else getting an error about sched_smt or smt_sched when trying to build with the archlinux configuration file? Or is it just me? Perhaps I am enabling something that's causing it, I still have to test whether or not it'll do the error without my edits so maybe its my doing but I don't know.

figue commented on 2018-09-09 21:30

@adrioanocr if you know kernel config you want to change, you can replace config changing PKGBUILD variable _configuration to 2, then instead of use Archlinux config put your own file. It's easy (replace config source and updpkgsums).

Another choice is to add "make menuconfig" at the end of prepare() function and do all the changes manually.