All posts by corbet

Kernel prepatch 6.6-rc3

Post Syndicated from corbet original https://lwn.net/Articles/945445/

The third 6.6 kernel prepatch is out for
testing.

Unusually, we have a large chunk of changes in filesystems. Part of
it is the vfs-level revert of some of the timestamp handling that
needs to soak a bit more, and part of it is some xfs fixes. With a
few other filesystem fixes too.

The multi-grain timestamp changes turned
out to cause the occasional regression (timestamps that could appear to go
backward) and were taken back out.

[$] User-space spinlocks with help from rseq()

Post Syndicated from corbet original https://lwn.net/Articles/944895/

Back in May, André Almeida presented some
work
toward the creation of user-space spinlocks using adaptive
spinning. At that time, the work was stalled because there is, in Linux,
currently no way to quickly determine whether a given thread is actually
executing on a CPU. Some progress has since been made on that front; at
the 2023
Open Source Summit Europe
, Almeida returned to discuss how that
difficulty might be overcome.

[$] Revisiting the kernel’s preemption models (part 1)

Post Syndicated from corbet original https://lwn.net/Articles/944686/

All that Ankur Arora seemingly wanted to do with this
patch set
was to make the process of clearing huge pages on x86
systems go a little faster. What resulted was an extensive discussion on
the difficulties of managing preemption correctly in the kernel. It may be
that some changes will come to the plethora of preemption models that the
kernel currently offers.

Security updates for Wednesday

Post Syndicated from corbet original https://lwn.net/Articles/945073/

Security updates have been issued by Debian (frr and libyang), Fedora (golang-github-prometheus-exporter-toolkit, golang-github-xhit-str2duration, golang-gopkg-alecthomas-kingpin-2, libpano13, and open-vm-tools), Oracle (firefox, frr, and thunderbird), Red Hat (dmidecode, kernel, kernel-rt, kpatch-patch, libwebp: critical, linux-firmware, mariadb:10.3, ncurses, postgresql:15, and virt:rhel and virt-devel:rhel), Scientific Linux (firefox, open-vm-tools, and thunderbird), SUSE (binutils, bluez, chromium, curl, gcc7, go1.20, go1.21, grpc, protobuf, python-Deprecated, python-PyGithub, python-aiocontextvars, python-avro, python-bcrypt, python-cryptography, python- cryptography-vectors, python-google-api-core, pyt, gstreamer-plugins-good, kernel, libcares2, libxml2, mdadm, mutt, and python-brotlipy), and Ubuntu (indent, linux, linux-aws, linux-aws-5.15, linux-azure, linux-azure-5.15,
linux-azure-fde, linux-azure-fde-5.15, linux-gcp, linux-gcp-5.15,
linux-gke, linux-gkeop, linux-gkeop-5.15, linux-hwe-5.15, linux-ibm,
linux-ibm-5.15, linux-kvm, linux-lowlatency, linux-lowlatency-hwe-5.15,
linux-nvidia, linux, linux-aws, linux-aws-5.4, linux-azure, linux-azure-5.4, linux-gcp,
linux-gcp-5.4, linux-gkeop, linux-hwe-5.4, linux-ibm, linux-ibm-5.4,
linux-iot, linux-kvm, linux-oracle, linux-oracle-5.4, linux-xilinx-zynqmp, linux, linux-aws, linux-aws-6.2, linux-azure, linux-azure-6.2,
linux-azure-fde-6.2, linux-gcp, linux-gcp-6.2, linux-hwe-6.2, linux-ibm,
linux-kvm, linux-lowlatency, linux-lowlatency-hwe-6.2, linux-oracle,
linux-raspi, linux-starfive, linux, linux-aws, linux-kvm, linux-lts-xenial, linux-oem-6.0, linux-oem-6.1, and memcached).

Forty years of GNU

Post Syndicated from corbet original https://lwn.net/Articles/944849/

The Free Software Foundation looks
forward to the 40th anniversary of the GNU project
, coming soon:

On September 27, 1983, a computer scientist named Richard Stallman
announced the plan to develop a free software Unix-like operating
system called GNU, for “GNU’s not Unix.” GNU is the only operating
system developed specifically for the sake of users’ freedom, and
has remained true to its founding ideals for forty years.

Security updates for Tuesday

Post Syndicated from corbet original https://lwn.net/Articles/944848/

Security updates have been issued by Debian (chromium, flac, gnome-shell, libwebp, openjdk-11, and xrdp), Fedora (giflib), Oracle (kernel), Red Hat (busybox, dbus, firefox, frr, kpatch-patch, libwebp, open-vm-tools, and thunderbird), Slackware (netatalk), SUSE (flac, gcc12, kernel, libeconf, libwebp, libxml2, and thunderbird), and Ubuntu (binutils, c-ares, libraw, linux-intel-iotg, nodejs, python-django, and vsftpd).

[$] Moving physical pages from user space

Post Syndicated from corbet original https://lwn.net/Articles/944115/

Processes in a Linux system run within their own virtual address spaces.
Their virtual addresses map to physical pages provided by the hardware, but
the kernel takes pains to hide the physical addresses of those pages;
processes normally have no way of knowing (and no need to know) where their
memory is located in physical memory. As a result, the system calls for
memory management also deal in virtual addresses. Gregory Price is
currently trying to create an exception to this rule with a
proposal
for a new system call that would operate on memory using physical
addresses.

Kernel prepatch 6.6-rc2

Post Syndicated from corbet original https://lwn.net/Articles/944705/

The 6.6-rc2 kernel prepatch is out for
testing.

I think the most notable thing about 6.6-rc2 is simply that it’s
exactly 32 years to the day since the 0.01 release. And that’s a round
number if you are a computer person.

Because other than the random date, I don’t see anything that really
stands out here.

[$] Shrinking shrinker locking overhead

Post Syndicated from corbet original https://lwn.net/Articles/944199/

Much of the kernel’s performance is dependent on caching — keeping useful
information around for future use to avoid the cost of looking it up again.
The kernel aggressively caches pages of file data, directory entries,
inodes, slab objects, and much more. Without active measures, though,
caches will tend to grow without bounds, leading to memory exhaustion. The
kernel’s “shrinker” mechanism exists to be that active measure, but
shrinkers have some performance difficulties of their own. This
patch series
from Qi Zheng seeks to address one of the worst of those
by removing some locking overhead.

PostgreSQL 16 released

Post Syndicated from corbet original https://lwn.net/Articles/944516/

Version 16
of the PostgreSQL database manager has been released.

PostgreSQL 16 contains many new features and enhancements, including:

  • Allow parallelization of FULL and internal right OUTER hash joins
  • Allow logical replication from standby servers
  • Allow logical replication subscribers to apply large transactions in parallel
  • Allow monitoring of I/O statistics using the new pg_stat_io view
  • Add SQL/JSON constructors and identity functions
  • Improve performance of vacuum freezing
  • Add support for regular expression matching of user and database
    names in pg_hba.conf, and user names in pg_ident.conf

[$] Why glibc’s fstat() is slow

Post Syndicated from corbet original https://lwn.net/Articles/944214/

The fstat()
system call retrieves some of the metadata — owner, size, protections,
timestamps, and so on — associated with an open file descriptor. One might
not think of it as a performance-critical system call, but there are
workloads that make a lot of fstat() calls; it is not something
that should be slowed unnecessarily. As it turns out, though, the GNU C
Library (glibc) has been doing exactly that, but a fix is in the works.

Security updates for Wednesday

Post Syndicated from corbet original https://lwn.net/Articles/944354/

Security updates have been issued by Debian (e2guardian), Fedora (libeconf), Red Hat (dmidecode, kernel, kernel-rt, keylime, kpatch-patch, libcap, librsvg2, linux-firmware, and qemu-kvm), Slackware (mozilla), SUSE (chromium and shadow), and Ubuntu (cups, dotnet6, dotnet7, file, flac, and ruby-redcloth).