В 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
#typescript#docker#docker_compose#linux#rdp#virtualization#windows
WinBoat lets you run any Windows app on Linux with a smooth, native-like experience by running a full Windows system inside a Docker container using virtualization. It has an elegant interface and automates installation, so you just pick your settings and it handles the rest. You can run individual Windows apps seamlessly alongside Linux apps or access the full Windows desktop when needed. Your Linux files are easily shared with Windows, making file management simple. This helps you use Windows-only software on Linux without complicated setups, though it requires some system resources and setup steps like enabling virtualization and installing Docker. WinBoat is still in beta, so occasional bugs may occur.
https://github.com/TibixDev/winboat
📰 Debian Is Figuring Out How Age Verification Laws Will Impact It
With age verification/attestation laws down to the OS level enacted by California and being decided upon by other US states, it's been a hot topic of discussion in the open-source world. For the Debian project that is strictly volunteer/community-driven unlike various commercial Linux platforms, they are figuring out how such laws will impact them...
🔗 Source: https://www.phoronix.com/news/Debian-Undecided-Age-Laws
#linux#opensource#debian
📰 Parrot OS 7.2 Ships with Linux Kernel 6.19 and Copy Fail Fix
Parrot OS 7.2 is now available with Linux kernel 6.19, updated security tools, Debian package sync, and Copy Fail mitigation.
🔗 Source: https://linuxiac.com/parrot-os-7-2-ships-with-linux-kernel-6-19-and-copy-fail-fix/
#debian#kernel#linux
📰 GParted Live 1.8.1-3 Released with Linux Kernel 6.19.10 and GParted 1.8.1
GParted Live 1.8.1-3 Debian-based live system for performing disk partitioning tasks using the GParted partition editor is now available for download with Linux kernel 6.19.
🔗 Source: https://9to5linux.com/gparted-live-1-8-1-3-released-with-linux-kernel-6-19-10-and-gparted-1-8-1
#linux#kernel#debian
📰 GParted Live 1.8.1 Released With Linux Kernel 6.19
GParted Live 1.8.1, a bootable Linux system for disk partitioning, is out with Linux kernel 6.19, Debian Sid updates, and the stable GParted 1.8.1 release.
🔗 Source: https://linuxiac.com/gparted-live-1-8-1-released-with-linux-kernel-6-19/
#kernel#linux#debian
📰 SparkyLinux 2026.03 Tiamat Released Based on Debian Testing Forky
SparkyLinux 2026.03 has been released, featuring updated Debian Testing packages, Linux kernel 6.19, and refreshed rolling ISO images.
🔗 Source: https://linuxiac.com/sparkylinux-2026-03-tiamat-released-based-on-debian-testing-forky/
#kernel#debian#linux
📰 SparkyLinux 8.2 Released with Support for Linux Kernel 6.19, Updated Packages
SparkyLinux 8.2 distribution is now available for download with support for Linux kernel 6.19, based on Debian 13 "Trixie". Here's what's new!
🔗 Source: https://9to5linux.com/sparkylinux-8-2-released-with-support-for-linux-kernel-6-19-updated-packages
#linux#debian#kernel
📰 Google Now Using AutoFDO To Enhance Android's Linux Kernel Performance
Google's Android LLVM toolchain team shared publicly this week that they have begun making use of AutoFDO for automatic feedback directed optimizations of their Linux kernel build used by Android...
🔗 Source: https://www.phoronix.com/news/Android-Using-Linux-AutoFDO
#kernel#android#linux