В 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
Change in West Bengal Govt also means projects stuck now can be implemented
🔸Varanasi - Kolkata Expressway
🔸Gorakhpur - Siliguri Expressway
🔸Extension of Eastern Dedicated Freight Corridor from Bihar to Bengal
🔸Varanasi - Siliguri High Speed Rail Corridor will also see timely execution
#Infra
India's toll plazas gets a serious upgrade.
The Multi-Lane Free Flow (MLFF) system is now live and aim is to eventually transition to no boom barriers, no queues, no stopping with FASTag deducted automatically.
108 toll plazas across major national highways, with full rollout targeting all four-lane+ corridors by 2029. The end goal is to eliminate human intervention, no revenue leakage, no fuel wasted idling at barriers.
#Infra
Mumbai-Ahmedabad Bullet Train Project: Assembly of India's largest-ever Tunnel Boring Machine (TBM), with a diameter of 13.56 meters, progressing at Shaft 2 in Vikhroli, Mumbai. Drilling is expected to begin in July 2026. #Infra
PM Modi to inaugurate the 594 km long Ganga Expressway on April 29
India's longest expressway, linking Meerut-Prayagraj via 12 districts, cutting travel time by ~50% and boosting connectivity & trade
#Infra
Not just sea bridges, coastal roads, tunnels, and metros. In housing too, Mumbai is being rebuilt from the ground up.
Dharavi: 641 acres, ₹95,700 crore.
Motilal Nagar in Goregaon: 143 acres, up to ₹1,00,000 crore.
BDD Chawls in Worli: 87 acres with Tata, Capacit'e and CITIC group.
Bhendi Bazaar
Kamathipura
5 landmark redevelopment projects with Adani, Tata, and marquee developers. Combined investment crossing ₹2,00,000 crore.
The city that powers India's economy is finally getting the urban infrastructure its ambition always deserved #Infra
Zoji La Tunnel Nears a Major Breakthrough
India’s strategic Zoji La tunnel connecting Kashmir to Ladakh is on the brink of a breakthrough, with the final blast expected by end of May 2026. Only 300 meters remain of the 13.1 km tunnel, with work progressing from both Sonamarg and Minamarg ends. #Infra
Infrastructure spending in India has grown six-fold to more than ₹12 lakh crore a year since 2014, compared with less than ₹2 lakh crore before 2014, Prime Minister Narendra Modi said on Tuesday. #Infra
Bogibeel Bridge (4.94 km) built on the mighty Brahmaputra river cuts Dibrugarh–Itanagar road distance by 150 km and rail by 705 km. Project cost revised to ₹4,857 crore from ₹3,230 crore; inaugurated in 2018 after 2002 start. Double-line rail + 3-lane road link boosts connectivity across Assam–Arunachal. #Infra