Questions tagged [kernel]

The main component of most operating systems, the kernel manages most of a computer's communication between hardware and software. Typically, the kernel is the lowest level of abstraction a programmer can have to a resource.

In computing, the kernel is a computer program that manages input/output requests from software, and translates them into data processing instructions for the central processing unit and other electronic components of a computer. The kernel is a fundamental part of a modern computer's operating system.

Because of its critical nature, the kernel code is usually loaded into a protected area of memory, which prevents it from being overwritten by other, less frequently used parts of the operating system or by application programs. The kernel performs its tasks, such as executing processes and handling interrupts.

Reference

http://en.wikipedia.org/wiki/Kernel_(operating_system)

912 questions
225
votes
7 answers

Allow non-root process to bind to port 80 and 443?

Is it possible to tune a kernel parameter to allow a userland program to bind to port 80 and 443? The reason I ask is I think its foolish to allow a privileged process to open a socket and listen. Anything that opens a socket and listens is high…
jww
  • 11,918
  • 44
  • 119
  • 208
174
votes
8 answers

Obtain kernel config from currently running Linux system?

I accidentally deleted my .config for my kernel configuration on Linux, and seem to remember there was a way to retrieve the kernel configuration via the proc filesystem somehow. Is this still possible, and if so how would I do it?
Sonny Ordell
  • 1,917
  • 3
  • 15
  • 13
68
votes
5 answers

How can a linux kernel be so small?

An ordinary stable 3* kernel is about 70 mb now. But there are little linux distributions of 30-10 mb with software and other stuff running out of the box. How can the linux kernel be so small in these distros? Can stripping down only unneeded…
puzzled tux
  • 683
  • 1
  • 5
  • 4
63
votes
9 answers

Why is the first BIOS instruction located at 0xFFFFFFF0 ("top" of RAM)?

I know that BIOS loads its first instruction from 0xFFFFFFF0, but why this specific address? I've a bunch of questions and hope you can help me with some of them, at least. My questions: Why is the first BIOS instruction located at the "top" of a…
Fernando Paladini
  • 851
  • 2
  • 9
  • 11
56
votes
11 answers

Would an executable need an OS kernel to run?

I know that when the source code, in say C++, is compiled, the output from the compiler is the machine code (executable) which I thought were instructions to the CPU directly. Recently I was reading up on kernels and I found out that programs cannot…
GRANZER
  • 693
  • 1
  • 5
  • 8
50
votes
2 answers

What is there in an Operating System other than the kernel

As I understand it, the kernel does all the interaction with the hardware, and manages the memory, the I/O devices, etc. So the kernel is doing everything, yet it is just a part of the operating system. So what else is there in an OS ? Just the…
AnkurVj
  • 1,101
  • 2
  • 10
  • 21
46
votes
2 answers

Is it possible to compile a Darwin Distro from source, like you can a build a Linux Distro?

I have read through and undertaken Linux From Scratch (and BLFS) and I was wondering, can I follow this guide to create a Darwin Distro by substituting the xnu kernel? Would the process be vastly different to that outlined in LFS? My current…
Ephemera
  • 1,371
  • 1
  • 13
  • 18
33
votes
6 answers

Is kernel a process?

In Linux, we always say the first process is init (pid==1). But why is not the kernel (startup) which setup the system and create the init process. Is kernel a process? We know all the user space threads are rooted at init process. Then what…
Guoqin
32
votes
5 answers

How to fix and prevent VirtualBox Kernel driver not installed

Today I noticed that my VirtualBox VMs no longer start. With messages The virtual machine 'CGI' has terminated unexpectedly during startup with exit code 1 (0x1). Result Code: NS_ERROR_FAILURE…
onknows
  • 787
  • 2
  • 10
  • 17
27
votes
3 answers

How to disable IPv6 on Debian Wheezy?

I know there's a wiki entry http://wiki.debian.org/DebianIPv6#How_to_turn_off_IPv6 that shows how to disable IPv6 in Debian Squeeze, but that's a 2.6.* kernel. What about 3.2.* kernels running Wheezy?
JohnnyFromBF
  • 4,858
  • 19
  • 58
  • 72
27
votes
7 answers

How to add a new kernel to grub2

How can we add a kernel to grub2? i knew the stuff we could do with the former versions, but it seems to have changed. What files should we edit?
Amir Zadeh
  • 381
  • 1
  • 3
  • 4
25
votes
3 answers

How can I update the kernel in WSL2 kernel to latest release?

The current kernel version in my WSL2 subsystem is: 5.10.60.1-microsoft-standard-WSL2 However, I see in the official Microsoft WSL GitHub repo there is a newer version of the kernel: linux-msft-wsl-5.10.102.1 How can I update the kernel in my…
sjrm
  • 548
  • 1
  • 5
  • 8
21
votes
3 answers

Kernel NTFS driver vs NTFS-3G

A more comprehensive phrased question since I lost access to the other one. I would ask that the other one be deleted, not this one, as it should not have been migrated in the first place. There are currently two NTFS drivers available for…
Jack
  • 1,921
  • 6
  • 19
  • 22
20
votes
3 answers

how to know if noatime or relatime is default mount option in kernel?

I was trying to know if relatime or noatime was set on a filesystem, but i didn't found the information, neither in /etc/fstab, neither in kernel boot options. First of all, it seems clear that i don't have the "normal" behaviour on…
user368507
  • 301
  • 1
  • 2
  • 5
20
votes
2 answers

How to diagnose ballooning OS X kernel_task and wired memory usage?

I have a very strange issue, which I'm having a hard time diagnosing as to the root cause. I have a Mac Pro (2008, 8-core 2.8 GHz, 8800GT) with 14 GB of RAM (recently upgraded because of this issue!). When I boot my system and log in, vm_stat / top…
user28930
1
2 3
60 61