В 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
🌍 The boundary where the Earth's solid land meets the sea—called the coastline—is constantly changing. Waves, tides, and storms reshape these edges every day, making coastlines dynamic and ever-shifting. ✨
#geography⚡#coastlines⚡#change⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
🌍 Satellite data show that global sea levels are now rising about 3.4 millimeters per year, speeding up since the 1990s and threatening low-lying coasts with accelerated erosion. ✨
#coastline⚡#climate⚡#change⚡#oceans⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 Melting permafrost in Arctic regions is releasing ancient greenhouse gases like methane, accelerating climate change and threatening traditional ways of life for local communities. ✨
#permafrost⚡#climate⚡#change⚡#methane⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 Desertification, the spread of deserts into once-fertile land, now threatens over a third of Earth’s land surface, endangering food security for millions worldwide. ✨
#desertification⚡#climate⚡#change⚡#land⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
New Book Explores Optimism in AI Future
Reid Hoffman, co-founder of LinkedIn, releases his book *Superagency: what could go right with AI future*. Unlike dystopian views, Hoffman emphasizes a proactive approach to building a positive future with AI. He discusses the evolution of technology's role in society, the importance of agency in the face of AI, and the need for updates in social contracts. The book reflects on history, addressing both fears and potential benefits AI can bring. Full details available here.
#AI#Tech#ReidHoffman#Future#Blockchain#Metaverse#Innovation#Autonomy#SocialChange#Privacy#Agency#Technology#Data#LLM#Community#Change#Trends
Need of Organization 😂
#camurshid#ca#icap#ca_murshid#castudents#camemes#icaistudents#charteredaccountant#charteredaccountancy#charteredaccountants#icaistudents#camemes#icaistudents#charteredaccountant#charteredaccountancy#charteredaccountants#icaistudents#camemes#icaistudents#charteredaccountant#charteredaccountancy#charteredaccountants#icaistudents#camemes #icaistudents#charteredaccountant #icaistudents #camemes#icaistudents #auditor#auditors#auditorslife#change#organization