Linux users are ready to get a new way to identify faulty CPUs with Linux kernel version 6.1.
The new feature will allow users to print out sockets and cores that are potentially responsible when a segmentation fault occurs, which should allow users to identify whether a particular CPU/core is regularly causing problems. Is.
This armchair might not make much sense to Linux enthusiasts, but sysadmins running a fleet of Linux servers stand to benefit.
How does the feature work?
You can enable the new feature by adding “print()” to “show_signal_msg()”, which will print the CPU, core, and socket at the time of the segfault.
This particular print can be controlled through /proc/sys/debug/exception-trace, and you can see the official documentation (opens in new tab) for more information.
The authors of the kernel documentation, Rick van Riel and Borislav Petkov, acknowledge that this feature is “not perfect” because “the task may be rescheduled to another CPU between when the fault is hit and the message is printed”.
However, he added that “in practice, it has been good enough to help people identify many bad CPU cores”.
If you are a developer and are currently using your Linux distro for demanding high-performance use cases, you are unlikely to consider using this feature in isolation. You’ll probably also want to employ common CPU stress testers such as the Prime95 or Aida64.
The update will arrive as part of the Linux 6.1 merge window during October. The last Linux update, version 6.0, recently arrived for testing.
Although Linus Torvalds claimed that “there is nothing fundamentally different” about version 6.0, the update offered a number of changes, 60% of which were driver updates, but also included GPU, networking and sound.
- Interested in giving Linux first? Check out our guide to the best Linux laptops
Phoronix. Through (opens in new tab)