Questions tagged [kernel-parameters]
The kernel-parameters tag has no summary.
140 questions
5
votes
2
answers
494
views
Can I Automatically List Supported Kernel Parameters in GRUB?
In GRUB, when loading a kernel, you can pass various parameters to linux/vmlinuz, for example:
menuentry 'GNU/Linux' {
...
linux /live/vmlinuz boot=live config live-media=removable ...
1
vote
2
answers
71
views
How to capture boot steps
I have a linux-box.
My hdd is nvme, hence boot is fast. I need to analyze each line of after grub.
Can I pass a kernel parameter to capture my boot lines?
0
votes
1
answer
103
views
Brave browser full sandboxing = How to achieve full green brave://sandbox/?
I am new to the concept of Sandboxing. I run Linux Mint Debian Edition 7 with kernel 6.12.48+deb13-amd64, and just installed the Brave browser. At this moment I am trying to enable all sandbox ...
1
vote
1
answer
410
views
Can I deny the root access to the user keys in the Kernel key retention service?
I know the Linux kernel has a key retention service even though I haven't used it myself.
I'm constructing a system where anybody with root cannot check the keys in that service that were registered ...
0
votes
0
answers
112
views
Problem with touchpad lag running Linux on X1 carbon gen 7
I bought this second hand laptop one month ago (Lenovo X1 carbon gen7) and I started installing Arch Linux on it and I noticed there was a problem with the touch pad. The touchpad works at the end but ...
0
votes
0
answers
45
views
Additional steps for blacklisting compiled in kernel drivers
I am having a conflict with third party moxa driver mxupcie and the default linux 8250_moxa which is compiled in. I have been following this thread but still having issues.
-bash-4.2$ lspci -vvv -s8a:...
2
votes
0
answers
114
views
Disable a scsi drive on linux without a physical ex
Similar question was asked here. I have a SATA disk connected to a SAS2308 HBA and there is backplane. Is there any way i can make the linux system ignore the disk at boot.
# lsscsi -v
[0:0:3:0] ...
2
votes
2
answers
3k
views
How to fix or get rid of BadDLLP warnings (Correctable PCIe Bus Error) flooding my logs?
First off, this question is not a duplicate of Why is journalctl reporting "PCIe Bus Error" BadTLP and BadDLLP? because instead of asking what is causing this kernel warning, I directly ask ...
0
votes
1
answer
134
views
Passing an unlocked LUKS partition context from GRUB to Linux?
Question
In GRUB one can use the cryptomount command to mount a LUKS partition.
Is there a way to pass this decrypted partition to linux such that it appears as a device mapper (/dev/mapper/xxx) entry ...
0
votes
1
answer
442
views
Redirect console to ttyUSB0
I'm trying to redirect the console to ttyUSB0, with the idea of later disable tty1, but I'm not getting anywhere....
I've added
GRUB_CMDLINE_LINUX="console=tty1 console=ttyUSB0,19200n8r"
To ...
0
votes
1
answer
608
views
Impact of disabling kexec_load_disabled kernel parameter
According to the documenation of the kernel parameters kexec_load_disabled,
This value defaults to 0 (false: kexec_load enabled), but can be set
to 1 (true: kexec_load disabled). Once true, kexec can ...
1
vote
0
answers
48
views
Undefine CONFIG_BLK_CGROUP macro while building linux kernel image
I am wanted to build a custom kernel image in which macro CONFIG_BLK_CGROUP is not defined. After researching a little bit I found we can do such configurations in .config file.
To be more precise I ...
4
votes
1
answer
2k
views
Understanding the “memmap” Linux parameter
I'm trying to understand the “memmap” parameter from the Linux kernel
(see The kernel’s command-line parameters),
in particular, the following options:
memmap=nn[KMG]$ss[KMG]
[KNL,ACPI] Mark ...
0
votes
1
answer
299
views
Boot a kernel of debian installer with expert mode
I want to reinstall my VPS with the debian's official repository, instead of with the image provided by the VPS operator(I don't trust the VPS operator).
On original system I installed debian-...
0
votes
0
answers
449
views
Setting user passwords via kernel parameter
What is the correct syntax to use these bits of information from systemd manual:
systemd-sysusers(8) will look for the credentials passwd.hashed-password., passwd.plaintext-password. and passwd.shell....
2
votes
1
answer
1k
views
modprobe: FATAL: Module dm_mod not found in directory /lib/modules/6.6.16
I have built a custom kernel and given a CONFIG_LOCALVERSION of -grant-nvme during compilation. However, when I try to boot into it, no matter what I do, grub seems to look for /lib/modules/6.6.16 and ...
0
votes
1
answer
173
views
Difference between sysctl options to set system parameters
I see on the web two different commands to load sysctl custom parameters:
sysctl --system
sysctl -p
Is there any difference between the two commands? I know the second one I posted can take the path ...
0
votes
1
answer
819
views
Is there an official way to set kernel parameters in /boot/boot.scr in Debian?
I have installed Debian 12 on my Orange Pi Zero using a custom u-boot image. I notice that Debian has a file called /root/boot.scr which is rebuilt after apt upgrades. I had previously modified this ...
1
vote
1
answer
4k
views
What's the difference between the kernel boot parameters nohz_full and isolcpus=nohz
When isolating CPU cores for jitter-sensitive processes it is common to use both boot parameters nohz_full and isolcpus (I know the latter is deprecated in favor of cpusets, but it's still around). ...
0
votes
1
answer
178
views
“binutils”/Kernel 6.5.X - “Invalid –compress-debug-sections option: `zstd’”
I'm trying to build a driver for a USB to HDMI adapter...
Bus 001 Device 010: ID 534d:6021 MacroSilicon VGA Display Adapter
NOTE: "lsusb" output.
... but this error is occurring...
Fatal ...
1
vote
1
answer
5k
views
What is the console setting for kernel early_printk in Linux?
I am working on an embedded Linux (kernel-5.10.24), and I enabled the early_printk in kernel configuration to help my debugging kernel.
Normally, the kernel command line has set console=ttyS0,115200 .....
0
votes
2
answers
227
views
Why can't keyboards be used in customized linux?
I am customizing a Linux system using a Linux kernel of 6.4.0. After booting, why is the keyboard not working? # 1. The disk is externally connected through a USB interface. If I enter the Linux live ...
0
votes
1
answer
471
views
How do disable MMC Command Queue Engine
What is the kernel parameter to disable the Command Queue Engine driver?
I am reading through mmc.c
MMC_DEV_ATTR(cmdq_en, "%d\n", card->ext_csd.cmdq_en);
/*
* Enable Command Queue if ...
4
votes
1
answer
1k
views
How to disable/enable bounce-buffers in IOMMU?
I am trying to figure out how to disable bounce buffers used in IOMMU when the hardware IOMMU is used.
To give more context, when IOMMU_DEFAULT_DMA_STRICT is set in the kernel it enables strict IOTLB ...
4
votes
2
answers
1k
views
GRUB hangs itself with 64bit Memtest86+ BadRAM pattern?
When I add the "badram" pattern that 64bit Memtest86+ v6.10/v6.20 gave me, GRUB 2 hangs completely on boot.
Q:
Why is the badram pattern address different from the "Error Address" ...
4
votes
2
answers
2k
views
Linux kernel difference between protected and reserved memory? (memmap parameter)
The Linux kernel takes a memmap parameter *) to manually designate memory regions for different use-cases.
Q: What is the difference between reserved memory (memmap=nn[KMG]$ss[KMG]) and protected ...
0
votes
0
answers
836
views
How do we input multiple kernel parameter for the same module?
Lets say I want to put command line args for a kernel module. If the module is some_module.ko.
In modprobe I would go, options some_module option1=value option2=value
In kernel command line I would go
...
0
votes
1
answer
88
views
Which Kernel version should I download to recompile my kernel with lock stats enabled
I'm trying to use the CLI tool perf, however it requires the CONFIG_LOCKDEP and CONFIG_LOCK_STAT enabled in the Kernel code.
I understand that to enable these flags, I need to download the source code ...
1
vote
0
answers
418
views
In the middle of "Too many files open" mess
I am in the middle of "file limit" mess and I am not sure what to do.
I am sure restarting the system will help for a while. However, could someone point me in the right direction for tools ...
4
votes
1
answer
3k
views
Set affinity of a process using TASKSET or sched_setaffinity() to a processor core isolated using CPUSET
First, let me give a background of what I am trying to achieve. I know how to isolate a particular CPU using boot param (isolcpu and nohz_full; the housekeeping subsystem setup).
But as per my ...
1
vote
0
answers
385
views
Recompiling a Kernel module from source
Good night,
I am trying to recompile a kernel module from its source (in case you are wondering, it is the b43 driver module) on Debian 11. I've ran into a problem, which is that I want to specify ...
0
votes
1
answer
281
views
kernel ignores append init=/bin/bash
qemu-system-x86_64 -m 2G -accel kvm -kernel kernel6.1 -append "init=/bin/bash" -initrd myinitrd.gz
Supposed to run bash as init, but kernel still prints:
[ 1.400577] Run /init as init ...
10
votes
2
answers
9k
views
Difference between net.ipv4.conf.all.forwarding and net.ipv4.ip_forward
According to https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt
conf/all/* is special, changes the settings for all interfaces
forwarding - BOOLEAN
Enable IP forwarding on this ...
4
votes
2
answers
1k
views
Disable webcam at boot time, by appending a boot parameter
I have an internal webcam on my Dell laptop. I don't see it listed with lspci, but it works.
I am using a self-compiled kernel, and here are the options I have enabled:
# zcat /proc/config.gz | grep -...
1
vote
0
answers
4k
views
Is there an `ibt=off` linux command-line parameter?
I use Arch Linux - I recently did a full system upgrade and I am now experiencing a hang up on boot that seems to relate to the nvidia module. This Arch Wiki page (under Installation) describes some ...
1
vote
0
answers
328
views
Kernel data structure that shows which CPUs are partitioned (isolated) using tuned?
This is for Red Hat Linux 7.9, kernel 3.10.0-1160.71.1 .
I would like to know what kernel data structure can be used to show which CPUs it thinks are isolated using tuned. This means I've isolated ...
1
vote
1
answer
791
views
Compiling kernel with specified parameter
You can easily change kernel parameters with sysctl and then make it persistent with /etc/sysctl.d but is there a fast way to change default kernel parameters like default vm.swappiness = 60 at the ...
0
votes
1
answer
4k
views
get rid of rebooting messages and watchdog
Broadcast message from username@Desktop (Sun 1919-08-10 11:45:14 CST):
The system is going to reboot NOW!
[756.345947] watchdog: watchdog0: watchdog did not stop!
[756.472889] watchdog: watchdog0: ...
2
votes
0
answers
531
views
How to blacklist some scsi devices via a kernel parameter?
I need to tell kernel to completely ignore some SCSI devices (eg. from vendor 'PURE'). I see libata.force=x.yy:disable can be used for individual SATA devices, but I need something equivalent for SCSI ...
1
vote
1
answer
1k
views
Do subsequent arguments override previous from linux kernel command line, or vice versa?
This was prompted by another question elsewhere, which after digging into briefly a quick online search ("linux kernel command line override priority" and some variations) turned up ...
1
vote
1
answer
2k
views
CentOS 7 - Isolated cores are not isolated in practice
I have a pair of CentOS 7 servers (7.9.2009) with 8 physical CPUs each.
Out of those, I'm trying to isolate cores 4-8 (so 3-7 as the OS sees them).
I added the tag isolcpus=3-7 to /etc/default/grub ...
2
votes
1
answer
3k
views
pcie_bus_perf : Understanding the capping of MRRS
Quoting the linux kernel documentation for boot parameters :
pcie_bus_perf : Set device MPS to the largest allowable MPS based on
its parent bus. Also set MRRS (Max Read Request Size) to the largest
...
1
vote
2
answers
1k
views
linux-zen VS cfs-zen-tweaks
I'm using Arch on a very old computer with Chrome and it crashes pretty often, plus the CPU consumption is very high.
I read that using cfs-zen-tweaks could improve the responsiveness.
Which is better,...
1
vote
0
answers
362
views
How can I pass a parameter to a module that is not built-in to the kernel using GRUB2?
If I choose to have a module built-in (Y), I can choose "e" to edit the boot entries on GRUB2 and modify the kernel command line to include "module.variable=whatever" and it works ...
3
votes
1
answer
1k
views
Why jiffies/HZ does not match uptime?
System uptime is stored in /proc/uptime.
As you know, the Linux kernel has a jiffies variable which increments by each timer interrupt specified by the HZ parameter. I got the value ofHZ by the ...
0
votes
0
answers
537
views
How to find a kernel source code for ARM cortext-A55?
I want to know how to find a proper Linux kernel source code for using ARM cortext-A55.
I got a kernel source code from kernel.org.
But don't know how to "Config" my kernel to support ...
2
votes
2
answers
5k
views
Disable GTT on amdgpu?
How can I disable GTT on amdgpu?
According to https://www.kernel.org/doc/html/v4.20/gpu/amdgpu.html, adding amdgpu.gttsize=0 should work but that has no effect.
The reason why I am asking is, that my ...
1
vote
0
answers
1k
views
Why would Linux kernel drop the isolcpus parameter?
I'm trying to pass isolcpus=1-4 to the kernel command line, Linux version 5.10.42 LTS. My boot manager is EFISTUB/efibootmgr. I'm booting OK but the parameter is simply not there when checking with
$ ...
1
vote
0
answers
125
views
slub_min_objects : How comes 0 can stand as a valid / default value / rationale?
In the comments of the source code (mm/slub.c) of my linux_5.4 kernel, I can read :
In order to reach satisfactory performance we must ensure that a minimum
number of objects is in one slab. Otherwise ...
2
votes
1
answer
532
views
Where to get offline documentation/descriptions of individual sysctl kernel tunable parameters?
The NOTES section of $ man 5 sysctl.conf states: The description of individual parameters can be found in the kernel documentation.
But is there a way for me to find this kernel documentation offline? ...