New answers tagged linux-kernel
-1
votes
is stat(2) read-after-write consistent with write(2)?
stat retrieves the st_size as well as other informations (metadata) from the inode :
…Each file has an inode containing metadata about the file. An
application can retrieve this metadata using stat(2)...
1
vote
Accepted
Why do /dev/ramX devices have all 0's in /proc/diskstats?
Ramdisks /dev/ram* (or rather the brd module) don't bother updating stats (*), for efficiency reasons I guess.
If you don't mind a small overhead, here is a workaround: use the device-mapper to create ...
0
votes
Ubuntu 22.04 iptables command not working
On Ubuntu 22.04 nftables is used by default.
What’s new in Security for Ubuntu 22.04 LTS?
nftables as the default firewall backend
Firewalling on Linux consists of two components – the firewall ...
1
vote
What should do to generate a minimal Linux kernel?
I figured out my way to generate a minimal Linux kernel.
Here it is.
Follow the normal and common way to run make menuconfig to go through tons of configurations and disable what is NOT used/needed, ...
1
vote
Accepted
How to disable the Linux page cache
I think that we shouldn't try to bypass the page cache on a block device like HDDs and SSDs. That's because the granularity of such disks is block (512B, 4KB or something else), however, the r/w ...
1
vote
Accepted
nftables: Are chains of multiple types all evaluated for a given hook?
TL;DR
When doing an experiment where a network namespace receives traffic and does NAT on it, one can see that whatever the priority given to the type nat hook prerouting chain, it doesn't matter with ...
0
votes
When and where are the standard in, out, and error file descriptors first opened in linux?
No, the kernel does not care. They are opened in early startup userspace code, before entering main()
4
votes
How to disable the Linux page cache
It is not possible, even temporarily, to disable the page cache.
One particular application can however indeed try its best to bypass caches by open_ing files with the O_DIRECT flag set :
O_DIRECT ...
0
votes
Is there a plain GNU/Linux OS?
What you are looking for is BSD: FreeBSD, NetBSD, OpenBSD. Here is a discussion about differences with Linux and a nice genealogy diagram.
1
vote
Process appears with square brackets ([]) around name after being SIGKILL'd
The short answer is in the ps man page:
Sometimes the process args will be unavailable; when this happens, ps will instead print the executable name in brackets.
What this means is that the procps ...
1
vote
Lenovo screen backlight can not set with brightness function Fn keys
I like to control backlight with use of the light utility (in Ubuntu, it is in the package light).
So on sway, Ubuntu, I did this:
sudo apt install light
vim .config/sway/config
Add these lines ...
1
vote
Accepted
Unable to install any packages Ubuntu 23.10
This is now a known bug and has been submitted by another person on launchpad. The link to the bug report is here.
3
votes
How to disable core dump of a specific process (Syslog-ng in my case) of Systemd
According to ArchWiki, the systemd service running syslog-ng is named [email protected] in Arch.
Run systemctl edit [email protected], and type in the following lines:
[Service]
...
1
vote
Unable to install any packages Ubuntu 23.10
In this answer I am presuming that the root file system has been damaged and that you need to fix it. This is not normally something anyone should do without great care. See if you can find someone to ...
-1
votes
Detached LUKS-header on Debian-based GNU/Linux
It is not required to configure any hooks or parameters with initramfs-tools or other configurations in Debian?
In Arch Linux, it is necessary to configure hook scripts with mkinitcpio in order to ...
1
vote
Accepted
Kernel-mounted vs FUSE-mounted exfat filesystem
Fuse was added on 2005-09-09, that's probably Linux ~2.6.18, far earlier than Linux 5.4
Does incorporation of support for exfat filesystems mean that the exfat-fuse package is no longer required?
...
0
votes
how to install libc6 2.34 from sources?
It is better to build the kernel by yourself. According to my tests, when using make-kpkg to build the deb package of the kernel, only the kernel package matching the current system environment (libc6)...
4
votes
Accepted
select() marks a FD to be readable, but there is no data to be read
This is correct behaviour. You cannot be sure that a connection still sits on the accept-queue if you do an accept() after a select() since the connection can already be terminated by the initiator or ...
1
vote
Accepted
What's the difference between the kernel boot parameters nohz_full and isolcpus=nohz
Initially, the nohz_full kernel parameter was meant to only (*) :
set the specified list of CPUs whose tick will be stopped whenever
possible.
When isolcpus was meant to (*) :
Specify one or more ...
4
votes
Accepted
What does driver rejects match -19 mean?
Regarding most recent Linux kernel, the error reported in OP comes following some code in /drivers/base/dd.c :
if (dev->bus->probe)
ret = dev->bus->probe(dev);
else if (drv-...
Top 50 recent answers are included
Related Tags
linux-kernel × 3512linux × 1112
kernel × 536
kernel-modules × 340
debian × 208
drivers × 197
compiling × 153
ubuntu × 151
boot × 139
memory × 117
networking × 105
embedded × 94
centos × 90
process × 90
virtual-memory × 82
filesystems × 80
system-calls × 75
arch-linux × 66
configuration × 63
scheduling × 62
usb × 61
kernel-panic × 61
fedora × 57
make × 57
initramfs × 56