Questions tagged [linux-kernel]

This tag is for questions about the internals of the Linux kernel itself - particularly about use or configuration of kernel modules or drivers.

Questions about userspace applications in Linux should generally be tagged linux instead.

Since the internals of the Linux kernel are constantly changing, it is helpful to include the precise kernel version(s) that you are interested in.

479 questions
52
votes
4 answers

How to sign a kernel module Ubuntu 18.04

I am new to using Ubuntu. I am trying to install Genymotion so I can have access to an android emulator. In order to use Genymotion, it is required I have VirtualBox. I have VirtualBox installed but it seems as if I need to sign a kernal module...…
aty0
  • 621
  • 1
  • 6
  • 3
49
votes
5 answers

How to get a list of active drivers that are statically built into the linux kernel?

While I can use lsmod in order to show currently active kernel modules, how can I see which drivers are statically built into the kernel AND currently active?
JohnnyFromBF
  • 4,858
  • 19
  • 58
  • 72
48
votes
5 answers

Is it possible to make the OOM killer intervent earlier?

I try to tweak my development system to maximal reliability. I disabled swap, because for GUI usage it mostly renders the machine unresponsive in such a way not useable anymore. Nevertheless, if agressive appications eat up the memory, some…
dronus
  • 1,870
  • 4
  • 24
  • 42
40
votes
2 answers

Directory - /sys in linux

What is going on inside the /sys directory on a Linux system?
user72789
  • 413
  • 1
  • 4
  • 6
39
votes
7 answers

Unable to install VIrtualbox, `"Specify KERN_DIR="` -- installing Virtual Box to Debian?

I am getting this error: Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop. Basically I'm doing: $ sudo /etc/init.d/vboxdrv setup Removing existing VirtualBox non-DKMS…
hhh
  • 683
  • 3
  • 9
  • 17
35
votes
7 answers

VirtualBox Ubuntu Guest Additions not installing : modprobe vboxsf failed

I just installed this software off virtual box, i downloaded the ISO off the official ubuntu website, was the lastest LTS. I attempted to install Guest Additions using the 'Insert Guest Additions CD Image". Result: Verifying archive integrity... All…
Apthos
  • 351
  • 1
  • 3
  • 3
32
votes
5 answers

What does "sudo -s" actually do?

I am using ubuntu 10.04. I notice that after I run in terminal: sudo -s The prompt changed from: my_user@my_hostname to: root@my_hostname Seems it changed to root privilege. But when I check the documentation of sudo command here, it explains…
Leem
  • 493
  • 3
  • 6
  • 9
32
votes
1 answer

Enable user namespaces in Debian kernel

I'm trying to figure out how to enable user namespaces capability in my kernel (I think CAP_SYS_USER_NS). I'm using Debian Stretch, kernel 4.6.0-1-amd64. My assumption is there is a way to turn on user namespaces and recompile the kernel. After…
Senrabdet
  • 321
  • 1
  • 3
  • 4
27
votes
1 answer

Where can I find the Linux kernel file?

Is there any common directory to find kernel file in all Linux distributions?if yes please tell me how to browse to the directory? Where can I find the Linux file in Ubuntu & RedHat operating systems?
BlueBerry - Vignesh4303
  • 8,129
  • 22
  • 68
  • 99
24
votes
7 answers

How do I uncompress vmlinuz to vmlinux?

I have already tried uncompress, gzip, and all other solutions that come up as google results and these have not worked for me. To get just the image search for the GZ signature - 1f 8b 08 00. > od -A d -t x1 vmlinuz | grep '1f 8b 08 00' 0024576 24…
Lord Loh.
  • 1,014
  • 4
  • 13
  • 30
20
votes
2 answers

How to check which SysRq functions are enabled?

The file /proc/sys/kernel/sysrq contains a single number, such as: 1 (enable all SysRq commands), 0 (disable all), or a base-10 positive integer which functions as a binary bitmask, enabling a subset of functions. Could someone please tell me…
user001
  • 3,474
  • 7
  • 24
  • 32
19
votes
4 answers

How to view all boot messages in Linux after booting?

Relevant questions are: Where Linux places the messages of boot? Name of log file where boot process is logged However, these do not answer this question. This question is concerned with how all the boot messages can be viewed. This is for Gentoo,…
16
votes
2 answers

What is the exact difference between the parameters (pgpgin, pswpin) and (pswpout, pgpgout) in /proc/vmstat?

Please note that this question is specific to linux only. And by swap space, I mean the dedicated swap partition. I did google a bit on this, and found these definitions: Paging refers to writing portions, termed pages, of a process’ memory to…
Nehal J Wani
  • 575
  • 1
  • 7
  • 16
13
votes
4 answers

Linux kernel hangs at 'Switching to clocksource tsc" on Pentium 4

Hardware: Dell Dimension 4500S : i845G, Pentium 4, stock + 2GB RAM and latest (circa 2002) BIOS update. I've been building a Linux system from source, so far it's LFS 7.0 by the book. The first kernel I built works fine, but has alot of fluff and…
rfmodulator
  • 242
  • 1
  • 4
  • 14
12
votes
1 answer

Linux overcommit memory

I've been looking into memory overcommitting in Linux using /proc/sys/vm/overcommit_memory, and I've read a few articles which don't say the same thing. This doc, under the heading "Going in the wrong direction", goes on to say, "values 1: do…
Doddy
  • 1,018
  • 9
  • 18
1
2 3
31 32