В 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
🌍Urho Kekkonen National Park, Finland
📏
📏
📏
📏
📏
📏
📏
📏
⭐ Urho Kekkonen National Park offers breathtaking wilderness, with pristine forests, peaceful lakes, and an untouched natural landscape.
📏
📏
📏
📏
📏
📏
📏
📏
#Finland🇫🇮@voyage
🎅Santa Claus Village👋
📏
📏
📏
📏
📏
📏
📏
📏
🟠According to tradition, Santa Claus was born in Lapland. His village is considered his official home, making it one of Finland’s most visited tourist attractions.
📏
📏
📏
📏
📏
📏
📏
📏
#Finland🇫🇮@voyage
📍Finland🇫🇮
Finland is known as the "land of a thousand lakes," celebrated for its rich natural beauty, untouched lake landscapes, and pristine forests. 🌲🏞️
The homeland of the Moomin trolls and Santa Claus, the land of a thousand lakes, the land of the midnight sun – this is how Finland is commonly described. 🎅🌅
The Finns themselves call their country Suomi, which means "land of the swamps." 🌿
#Finland
@voyage
Aalto University Summer Program 2026 in Finland 🇫🇮 (Fully Funded) 🇪🇺
Visit: https://opportunitiescorners.com/aalto-university-international-summer-program/
Open to all Nationals. No Application Fee.
The Program Covers Airfare, Stipend, Accommodation, Food.
Deadline: 31st Jan 2026
#Finland#OpportunitiesCorners