Questions tagged [kernel]

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. This tag is for general questions regarding code that runs in the context of an operating system kernel.

This tag is for general questions regarding code that runs in the context of an operating system kernel (kernelspace, as opposed to userspace), including writing custom kernels. Questions about specific kernels should use a relevant tag (eg. , , ).

This tag is not about other uses of the word "kernel" - for example, questions about CUDA kernels should use the tag.

SOURCE

Wikipedia

9344 questions
3
votes
0 answers

Kernel problem while initializing Jupyter notebook

I have installed Anaconda and along with it I tried working with Jupyter notebook but can't seem to have kernel while opening a notebook python file. In the below image (line 2) it can be seen that notebook is starting with 2 kernels. Here in the…
Amar
  • 131
  • 3
3
votes
1 answer

Jupyter Notebook kernel installation error

I'm using Pycharm and I've installed conda&Anaconda and the jupyter project, however when I try to "register project interpreter as kernel" I get this error, how do I solve it? Traceback (most recent call last): File…
Yuki1112
  • 365
  • 2
  • 12
3
votes
1 answer

How does KVM/QEMU and guest OS handles page fault

For example, I have a host OS (say, Ubuntu) with KVM enabled. I start a virtual machine with QEMU to run a guest OS (say, CentOS). It is said that to the host OS, this VM is just a process. So in the host's point of view, it handles page fault as…
yuanqili
  • 392
  • 3
  • 12
3
votes
1 answer

set net.ipv4.tcp_timestamps=0 in Pod

I would like to set net.ipv4.tcp_timestamps=0 in Pods of my k8s cluster, However it gives me error: sysctl: cannot stat /proc/sys/net/ipv4/tcp_timestamps: No such file or directory" Same issue with container directly created with docker run…
James Pei
  • 151
  • 2
  • 11
3
votes
0 answers

How to debug custom kernel with GDB and QEMU

I have a simple project which comes to be a very very simple kernel. I have some issues with the code and tried to debug it using GDB. Here's the first problem the code is not an executable to be started and debugged in the GDB. After, I tried to…
arsdever
  • 1,111
  • 1
  • 11
  • 32
3
votes
1 answer

Does the CS and DS registers still affect instructions in x64 intel

Afaik they are never used and CS=DS=SS nowadays. However if I were to set these values, would anything change or does the processor ignore them. Ive found really conflicting information on the question and I don't understand why they would still be…
Sylent
  • 33
  • 3
3
votes
0 answers

BIOS interrupt 0x10 causes booting from ROM loop in QEMU

Problem I am programming a basic kernel in C with a little bit of assembly. I want to change the video mode to 0x13, but when I call int 0x10, QEMU gets stuck in a booting from ROM loop where it appears to repeatedly execute the…
Daemon Beast
  • 2,794
  • 3
  • 12
  • 29
3
votes
0 answers

Questions about Linux kernel modules

The Linux Debian family 4.10 and later seem to have some rules affecting kernel modules. When trying to add a hook list while building a kernel module, we get an undefined symbolic link error as shown below. WARNING: "security_add_hooks"…
Charles
  • 31
  • 1
3
votes
2 answers

Difference between kernel threads and user threads in a multi core cpu?

I would like to clarify my understanding of kernel threads and user threads in a multicore environment . Only threads created by the kernel can run on different cores of a cpu ,if the cpu supports it . The user level threads are abstracted on a…
Saurav Jha
  • 33
  • 1
  • 6
3
votes
2 answers

How to disable software SMI (System Management Interrupt) in Windows

Starting from Windows 10 1809, OS generates lots of software SMIs. We are running our real time application on separate processor core and each SMI generates unpredictable delay. Before 1809 it was always possible to disable SMIs in BIOS. Call stack…
3
votes
1 answer

How to implement Async I/O efficiently in the kernel

This question is about low-level async I/O system calls like send + epoll/aio_read and others. I am asking about both network I/O and disk I/O. The naive way of implementing those async calls would be to create a thread for each asynchronous I/O…
Mike76
  • 899
  • 1
  • 9
  • 31
3
votes
4 answers

When I open the spyder in anaconda, the spyder indicates that an error ocurred while starting the kernel in spyder

When I open the Spyder in anaconda, the Spyder indicates that an error occurred while starting the kernel in Spyder. I have tried (in the terminal) two suggested commands from Spyder. However, after I restart anaconda and open Spyder, the same…
Boning Yang
  • 31
  • 1
  • 1
  • 2
3
votes
1 answer

Is printk atomic-safe?

Is it safe to call printk from an atomic context, e.g. an IRQ?
Albus Dumbledore
  • 12,368
  • 23
  • 64
  • 105
3
votes
2 answers

Is there any way to figure out that child process was killed with SIGKILL by the kernel when the parent process isn't root

I have a situation where there is a nonroot (so i can't read kernel logs) parent process and its child, the child may have been killed with SIGKILL by the kernel for consuming a lot of memory. When it happens the parent process should know that the…
Rost
  • 65
  • 1
  • 7
3
votes
1 answer

Kernel.c not executing complete code [OS from scratch]

I am a beginner in operating systems and I am trying to build os from scratch (following the tutorial). Although I can execute the code provided by the author. But when I add my custom bootloader (which obviously takes more memory, and waits for…
Azle Blade
  • 110
  • 1
  • 7