В 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
📰 AMD Ryzen 9 9950X3D2 Benchmarks: The Best Desktop Performance For Linux Developers, Creators
Today we can finally share performance benchmarks of the long-rumored AMD Ryzen 9 9950X3D2 Dual Edition processor. This new halo product for the Ryzen 9000 series desktop line-up offers captivating performance for developers frequently compiling code, creators, technical computing workloads for students or hobbyists or those not able to afford a Threadripper / EPYC type workstation, or similar heavy computing use.
🔗 Source: https://www.phoronix.com/review/amd-ryzen-9950x3d2-linux
#amd#linux
📰 AMD Ryzen 9 9950X3D2 Benchmarks: The Best Desktop Performance For Linux Developers, Creators
Today we can finally share performance benchmarks of the long-rumored AMD Ryzen 9 9950X3D2 Dual Edition processor. This new halo product for the Ryzen 9000 series desktop line-up offers captivating performance for developers frequently compiling code, creators, technical computing workloads for students or hobbyists or those not able to afford a Threadripper / EPYC type workstation, or similar heavy computing use.
🔗 Source: https://www.phoronix.com/review/amd-ryzen-9950x3d2-linux
#amd#linux
📰 A Small But Useful Debugging Addition For AMD Zen Systems With Linux 7.1
A small but convenient feature is coming with the Linux 7.1 that will be useful in debugging AMD Zen system problems and information reporting/transparency purposes...
🔗 Source: https://www.phoronix.com/news/AMD-AGESA-Version-Linux-7.1
#linux#amd
📰 AMD GPU Driver Sees DC Idle Manager & Multi-SDMA Engine Optimization For Linux 7.1
With Linux 7.0-rc6 having released on Sunday, we are hitting the point of the cut-off of new feature material being allowed into the Direct Rendering Manager's DRM-Next tree of queuing new graphics/display/accelerator feature code ahead of the upcoming Linux 7.1 merge window. As presumably the last AMDGPU/AMDKFD feature pull ahead of Linux 7.1, today's pull request from AMD contains some noteworthy final enhancements...
🔗 Source: https://www.phoronix.com/news/AMDGPU-Linux-7.1-Multi-SDMA
#linux#amd
📰AMD Sends Out Linux Patches For Their Next-Gen AIE4 NPU
Hitting the mailing list today are patches providing initial support for AMD's next-gen NPU "AIE4" platform, complete with SR-IOV support...
🔗 Source: https://www.phoronix.com/news/AMD-AIE4-NPU-AMDXDNA
#linux#amd
📰 AMD-Optimized Rocky Linux Distribution To Focus On AI & HPC Workloads
AMD and CIQ jointly announced today that AMD-optimized Rocky Linux builds are being worked on for this RHEL-derived operating system. The AMD-optimized Rocky Linux will focus on AI and HPC workloads and be nicely integrated with ROCm...
🔗 Source: https://www.phoronix.com/news/AMD-Rocky-Linux-Optimized
#amd#linux
📰 AMD MLIR-AIE Releases New AIECC C++ Compiler To Help Bring New Workloads To Ryzen AI NPUs
AMD Ryzen AI NPUs are now running LLMs on Linux with the recently debuted Lemonade 10.0 server and FastFlowLM 0.9.35 adding Linux support. In addition to those software components, AMD engineers have also been developing MLIR-AIE as a compiler toolchain for AMD AI Engine devices such as Ryzen AI NPUs in leveraging LLVM-based code generation with the Multi-Level Intermediate Representation (MLIR). Out today is MLIR-AIE v1.
🔗 Source: https://www.phoronix.com/news/MLIR-AIE-1.3
#linux#amd
📰 TUXEDO Gemini 17 Gen4 Linux Laptop Now Available with AMD Ryzen 9 9955HX
TUXEDO Gemini 17 Gen4 Linux laptop is now available with AMD Ryzen 9 9955HX, NVIDIA GeForce RTX 5070 Ti, up to 128 GB RAM, and up to 16TB storage.
🔗 Source: https://9to5linux.com/tuxedo-gemini-17-gen4-linux-laptop-now-available-with-amd-ryzen-9-9955hx
#linux#amd
📰 Exclusive Preview Of System76's Completely Redesigned Thelio Desktop
It has been eight years already since System76 announced Thelio as their own built-in-the-USA, custom-engineered cases for desktops and workstations. System76 Thelio is an open hardware design and built exceptionally well out of their facilities in Colorado. System76 Thelio has served them well for their range of desktop systems over the years from ARM64 developer workstations to high-end AMD Linux systems.
🔗 Source: https://www.phoronix.com/review/system76-new-thelio
#linux#amd
📰TUXEDO InfinityBook Max 16 Linux Laptop Now Available with AMD Ryzen AI 300
TUXEDO Computers launches a new variant of the InfinityBook Max 16 Gen10 Linux-powered laptop with AMD Ryzen AI 300 processors.
🔗 Source: https://9to5linux.com/tuxedo-infinitybook-max-16-linux-laptop-now-available-with-amd-ryzen-ai-300
#amd#linux
📰 AMD HSMP Linux Driver Preps For Zen 6 EPYC With Finer Power Controls
The AMD Host System Management Port (HSMP) Linux driver that provides access to various system management features on modern EPYC server processors is preparing for the upcoming EPYC Zen 6 "Venice" processors...
🔗 Source: https://www.phoronix.com/news/AMD-HSMP-Preps-For-Zen-6-EPYC
#amd#linux