Package Details: linux-xanmod 6.8.9-1

Git Clone URL: https://aur.archlinux.org/linux-xanmod.git (read-only, click to copy)
Package Base: linux-xanmod
Description: The Linux kernel and modules with Xanmod patches
Upstream URL: http://www.xanmod.org/
Licenses: GPL2
Provides: KSMBD-MODULE, NTFS3-MODULE, VIRTUALBOX-GUEST-MODULES, WIREGUARD-MODULE
Replaces: virtualbox-guest-modules-arch, wireguard-arch
Submitter: Yoshi2889
Maintainer: figue (figuepluto, jfigueras)
Last Packager: figue
Votes: 127
Popularity: 1.19
First Submitted: 2017-02-14 09:40 (UTC)
Last Updated: 2024-05-04 08:02 (UTC)

Dependencies (14)

Required by (5)

Sources (4)

Pinned Comments

figue commented on 2018-12-14 00:50 (UTC) (edited on 2023-02-27 20:00 (UTC) by figue)

This package have several variables to enable/disable features.

##
## The following variables can be customized at build time. Use env or export to change at your wish
##
##   Example: env _microarchitecture=98 use_numa=n use_tracers=n makepkg -sc
##
## Look inside 'choose-gcc-optimization.sh' to choose your microarchitecture
## Valid numbers between: 0 to 99
## Default is: 0 => generic
## Good option if your package is for one machine: 98 (Intel native) or 99 (AMD native)
if [ -z ${_microarchitecture+x} ]; then
  _microarchitecture=0
fi

## 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 ${use_numa+x} ]; then
  use_numa=y
fi

## Since upstream disabled CONFIG_STACK_TRACER (limits debugging and analyzing of the kernel)
## you can enable them setting this option. Caution, because they have an impact in performance.
## Stock Archlinux has this enabled. 
## Set variable "use_tracers" to: n to disable (possibly increase performance, XanMod default)
##                                y to enable  (Archlinux default)
if [ -z ${use_tracers+x} ]; then
  use_tracers=n
fi

# Unique compiler supported upstream is GCC
## Choose between GCC and CLANG config (default is GCC)
## Use the environment variable "_compiler=clang"
if [ "${_compiler}" = "clang" ]; then
  _compiler_flags="CC=clang HOSTCC=clang LLVM=1 LLVM_IAS=1"
fi

# Choose between the 4 main configs for stable branch. Default x86-64-v1 which use CONFIG_GENERIC_CPU2:
# Possible values: config_x86-64-v1 (default) / config_x86-64-v2 / config_x86-64-v3 / config_x86-64-v4
# This will be overwritten by selecting any option in microarchitecture script
# Source files: https://github.com/xanmod/linux/tree/5.17/CONFIGS/xanmod/gcc
if [ -z ${_config+x} ]; then
  _config=config_x86-64-v1
fi

# Compress modules with ZSTD (to save disk space)
if [ -z ${_compress_modules+x} ]; then
  _compress_modules=n
fi

# Compile ONLY used modules to VASTLY reduce the number of modules built
# and the build time.
#
# To keep track of which modules are needed for your specific system/hardware,
# give module_db script a try: https://aur.archlinux.org/packages/modprobed-db
# This PKGBUILD read the database kept if it exists
#
# More at this wiki page ---> https://wiki.archlinux.org/index.php/Modprobed-db
if [ -z ${_localmodcfg} ]; then
  _localmodcfg=n
fi

# Tweak kernel options prior to a build via nconfig
if [ -z ${_makenconfig} ]; then
  _makenconfig=n
fi

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

env _microarchitecture=98 use_tracers=n use_numa=n _localmodcfg=y _compress_modules=y makepkg -sic

Also, you can now create the file myconfig in your local repo to build this package with a custom config or use ${XDG_CONFIG_HOME}/linux-xanmod/myconfig. This file can be a full kernel config or be a script with several entries to add/remove options (you have several examples in PKGBUILD by using scripts/config):

Code involved:

  for _myconfig in "${SRCDEST}/myconfig" "${HOME}/.config/linux-xanmod/myconfig" "${XDG_CONFIG_HOME}/linux-xanmod/myconfig" ; do
    if [ -f "${_myconfig}" ] && [ "$(wc -l <"${_myconfig}")" -gt "0" ]; then
      if grep -q 'scripts/config' "${_myconfig}"; then
        # myconfig is a partial file. Executing as a script
        msg2 "Applying myconfig..."
        bash -x "${_myconfig}"
      else
        # myconfig is a full config file. Replacing default .config
        msg2 "Using user CUSTOM config..."
        cp -f "${_myconfig}" .config
      fi
      echo
      break
    fi
  done

Latest Comments

« First ‹ Previous 1 .. 9 10 11 12 13 14 15 16 17 18 19 .. 51 Next › Last »

figue commented on 2021-08-25 14:43 (UTC)

This daemon?

figue on pluto ~ ➜  systemctl status haveged    
● haveged.service - Entropy Daemon based on the HAVEGE algorithm
     Loaded: loaded (/usr/lib/systemd/system/haveged.service; disabled; vendor preset: disabled)
     Active: active (running) since Wed 2021-08-25 16:42:06 CEST; 11s ago
       Docs: man:haveged(8)
             http://www.issihosts.com/haveged/
   Main PID: 2299865 (haveged)
      Tasks: 1 (limit: 14007)
     Memory: 3.5M
        CPU: 200ms
     CGroup: /system.slice/haveged.service
             └─2299865 /usr/bin/haveged -w 1024 -v 1 --Foreground

ago 25 16:42:06 pluto systemd[1]: Started Entropy Daemon based on the HAVEGE algorithm.
ago 25 16:42:06 pluto haveged[2299865]: haveged: command socket is listening at fd 3
ago 25 16:42:07 pluto haveged[2299865]: haveged: ver: 1.9.14; arch: x86; vend: GenuineIntel; build: (gcc 10.2.0 ITV); collect: 128K
ago 25 16:42:07 pluto haveged[2299865]: haveged: cpu: (L4 VC); data: 32K (L4 V); inst: 32K (L4 V); idx: 24/40; sz: 32154/54019
ago 25 16:42:07 pluto haveged[2299865]: haveged: tot tests(BA8): A:1/1 B:1/1 continuous tests(B):  last entropy estimate 8.00214
ago 25 16:42:07 pluto haveged[2299865]: haveged: fills: 0, generated: 0

Thalour commented on 2021-08-25 09:10 (UTC)

I have the same problem as matbonn. Any fix?

matbonn commented on 2021-08-15 14:42 (UTC)

I get this when booting Arch with this kernel "Failed to start Entropy daemon using the HAVEGE algorithm" Anyone have an idea what it is and how to fix?

enihcam commented on 2021-08-08 15:48 (UTC)

build failed after FULLCONE NAT is enabled. i also filed this bug to fullcone nat project. refer to https://github.com/Chion82/netfilter-full-cone-nat/issues/38 for more details.

figue commented on 2021-07-30 22:26 (UTC)

@patlefort myconfig can be 2 things:

1- A full kernel config

2- A script that adds/removes specific options

For example, to disable CONFIG_USER_NS, you could create a myconfig file and include "scripts/config --disable CONFIG_USER_NS"

Hope this explains it.

patlefort commented on 2021-07-30 20:36 (UTC)

So I misunderstood what the myconfig file was, I thought I could define variables like _microarchitecture in it when executed as a script. That leads me to ask for a way to do so. It compile fine after fixing it.

figue commented on 2021-07-30 10:05 (UTC)

@patlefort did you used gcc or clang? Any other options or custom config?

patlefort commented on 2021-07-29 23:48 (UTC)

Still fails with the same error. I'm not sure if it's specific to this package or xanmod's patches.

figue commented on 2021-07-29 08:42 (UTC)

@patlefort Check the new release, please.