В Linux стандартными средствами можно использовать часть оперативной памяти как диск. Для этого требуется указать тип монтирования tmpfs в команде mount
mount -t tmpfs -o size=5G tmpfs /mnt/ram
Теперь путь /mnt/ram можно использовать как обычный каталог. Для чего это может быть нужно?
▫️ Скорость работы с таким каталогом выше чем многие SSD и тем более HDD.
▫️ Если у вас очень быстрый SSD на NVMe M.2 то такой способ особо не прибавит вам скорости, но поможет сохранить ресурс SSD когда требуется обрабатывать очень много мелких файлов и оперативка позволяет выделить нужный объем.
▫️ Оперативка это энергозависимая память, поэтому выключении питания все файлы безвозвратно теряются. Такой "non persistent" каталог гарантирует удаление временных файлов.
Я написал небольшой скрипт для условного теста и сравнения скорости копирования файлов между SSD и RAM.
Вот мои результаты:
Single File Size: 30.0Gb
ssd > ssd: 0:00:12.850 / 2.3Gb/s
sdd > ram: 0:00:06.453 / 4.6Gb/s
ram > ram: 0:00:06.995 / 4.3Gb/s
ram > sdd: 0:00:06.217 / 4.8Gb/s
Dir size: 32.7Gb, File count: 11127
ssd > ssd: 0:00:15.063 / 2.2Gb/s
sdd > ram: 0:00:08.486 / 3.9Gb/s
ram > ram: 0:00:08.032 / 4.1Gb/s
ram > sdd: 0:00:07.026 / 4.7Gb/s
Скрипт для теста ↗️
На моём железе прирост скорости ~2x. Плюс экономия ресурса SSD.
В Windows такой фишки по умолчанию нет, но обязательно найдутся аналогичные решения
#linux#triks
📰 OpenZFS 2.4.1 Released With Linux 6.19 Compatibility, Many Fixes
Following the big OpenZFS 2.4 release back in December, OpenZFS 2.4.1 was released overnight to ship support for the latest Linux 6.19 stable kernel plus a variety of different bug fixes...
🔗 Source: https://www.phoronix.com/news/OpenZFS-2.4.1-Released
#linux#kernel
📰 Linus Torvalds Drops Old Linux Kconfig Option To Address Tiresome Kernel Log Spam
Following yesterday's Linux 7.0-rc1 release, Linus Torvalds authored and merged a patch to get rid of the Linux kernel's WARN_ALL_UNSEEDED_RANDOM Kconfig option. While that option was added with good intentions, on some systems it can yield a lot of unnecessary kernel log spam...
🔗 Source: https://www.phoronix.com/news/Torvalds-Unseeded-Random
#linux#kernel
📰 Qualcomm Posts Patches For New DSP Accelerator Linux Driver
The newest driver proposed for the Linux kernel's accelerator "accel" subsystem is named QDA and is a Qualcomm DSP Accelerator driver...
🔗 Source: https://www.phoronix.com/news/Qualcomm-DSP-Accel-Driver
#linux#kernel
📰 Linus Torvalds Announces First Linux Kernel 7.0 Release Candidate
Linus Torvalds announced the general availability of the first Release Candidate version of the upcoming Linux 7.0 kernel series for public testing. Here’s what to expect!
🔗 Source: https://9to5linux.com/linus-torvalds-announces-first-linux-kernel-7-0-release-candidate
#linux#kernel
📰 Linux Begins Seeing Early Preparations For PCIe 7.0
While we are on the horizon of seeing PCI Express 6.0 devices, there are already early Linux kernel patches beginning to surface for PCI Express 7.0...
🔗 Source: https://www.phoronix.com/news/Linux-Early-PCIe-Gen-7-Prep
#linux#kernel
📰 AI Helped Uncover A "50-80x Improvement" For Linux's IO_uring
Linux block maintainer and IO_uring lead developer Jens Axboe recently was debugging some slowdowns in the AHCI/SCSI code with IO_uring usage. When turning to Claude AI to help in sorting through the issue, patches were devised that can deliver up to a "literally yield a 50-80x improvement on the io_uring side for idle systems." The code is on its way to the Linux kernel...
🔗 Source: https://www.phoronix.com/news/AI-50-80x-IO-uring
#linux#kernel
📰 Linux Still Working To Clean Up The Realtek RTL8723BS 802.11b/g/n WiFi Driver In 2026
Introduced to the Linux 4.12 kernel's staging area back in 2017 was the Realtek RTL8723BS WiFi driver. The Realtek RTL8723BS is an 802.11 b/g/ SDIO WLAN adapter with Bluetooth 4.0 connectivity too. In the nearly decade since this driver was added to the staging area, it's continued to be cleaned up and with the Linux 7.0 merge window there is yet again a lot of work on cleaning up this WiFi driver for the old Realtek hardware...
🔗 Source: https://www.phoronix.com/news/Linux-7.0-Staging
#linux#kernel
📰 Apple M3 With Asahi Linux Continues Making Progress, No ETA Yet For Shipping
Asahi Linux developers have published a status report following the recent Linux 6.19 kernel release to outline recent progress and upcoming items around Apple Silicon support on Linux. This year will also mark five years that Asahi Linux has been around for bringing Linux to the Apple M-Series hardware...
🔗 Source: https://www.phoronix.com/news/Apple-M3-Asahi-Linux-2026
#linux#kernel
📰 Linux Kernel Improvement Can Make Hibernation Several Times Faster With Slow SSDs
A patch series sent out for review this weekend can significantly improve the system hibernation performance under Linux. Particularly for those with slower SSDs, the patches can make Linux hibernate up to several times faster...
🔗 Source: https://www.phoronix.com/news/Linux-Faster-Hibernation-Slow
#linux#kernel
📰 F2FS Delivers "Several Key Performance Optimizations" With Linux 7.0
The Flash Friendly File-System (F2FS) has multiple performance improvements to provide its users with on the in-development Linux 7.0 kernel...
🔗 Source: https://www.phoronix.com/news/Linux-7.0-F2FS
#linux#kernel