В 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
🏔️International Mountain Day
🗓Today, we celebrate International Mountain Day — a reminder of the incredible role mountains play in our lives. They provide fresh water, protect unique ecosystems, and inspire millions around the world.
🌱Let’s raise awareness, appreciate nature, and work together to preserve these powerful landscapes for future generations.
#InternationalMountainDay#SustainableFuture#GreenUniversity#YouthForNature#EcoAwareness
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube
🌿 March 3 – World Wildlife Day 🌿
Today we celebrate World Wildlife Day, raising awareness about the importance of protecting wildlife and preserving biodiversity. 🌏 On December 20, 2013, the United Nations officially declared March 3 as World Wildlife Day. This year also marks the 40th anniversary of the 1973 Convention on International Trade in Endangered Species of Wild Fauna and Flora (CITES).
Wildlife has ecological, genetic, social, economic, scientific, cultural, and aesthetic value. That’s why people often seek the peace of wild nature away from noisy cities. 🌲🦉
Our great scholars emphasized respecting nature and maintaining balance:
Muḥammad Muso Khorezmi: “Know that if the eyes of the river weep, sorrow will fall upon it.”
Abu Nasr Farabi: insights on human body, nutrition, and diseases.
Abu Rayhan Beruni: studies on plants and animals, their biological traits and economic importance.
Avicenna (Ibn Sina): advice on health, hygiene, diet, and natural remedies.
❗️ Human impact on wildlife:
1️⃣ Deforestation and habitat loss – ~10 million hectares of forest are lost globally each year.
2️⃣ Extinction of species – over 1 million animal and plant species are at risk.
3️⃣ Air, water, and soil pollution – over 50% of coral reefs degraded; 75% of the Earth’s land affected by climate change and human activity.
4️⃣ Illegal wildlife hunting and trade – threatens more than 2,200 species.
Each of us is responsible for protecting nature, avoiding pollution, and passing it on intact to future generations! 💚🌿
#WorldWildlifeDay#ProtectNature#Biodiversity#WildlifeConservation#EcoAwareness
Green University Hosts Meeting with School Students
⏺As part of the republican stage of the nationwide competition “Do You Know Environmental Laws?”, Green University hosted a meeting with school students from across Uzbekistan.
🗣During the visit, the students met with the Rector of Green University, Dr. Bakhtiyor Pulatov, and other university representatives. The Rector introduced the students to the university’s activities and educational programs, and highlighted the growing importance of environmental protection and climate action.
🟢The meeting served as an important platform for students to exchange ideas and deepen their understanding of environmental responsibility.
#GreenUniversity#YouthForEnvironment#EcoAwareness#Uzbekistan2030 ___________________
Green University maktab o‘quvchilari bilan uchrashuv o‘tkazdi
⏺“Siz ekologiyaga oid qonunlarni bilasizmi?” respublika ko‘rik-tanlovining respublika bosqichi doirasida Green University O‘zbekistonning turli hududlaridan kelgan maktab o‘quvchilari bilan uchrashuv o‘tkazdi.
🗣Tashrif davomida o‘quvchilar Green University rektori, professor Baxtiyor Po‘latov hamda universitet vakillari bilan uchrashdilar. Rektor o‘quvchilarga universitet faoliyati va ta’lim dasturlari haqida ma’lumot berib, bugungi kunda atrof-muhitni muhofaza qilish va iqlim o‘zgarishiga qarshi kurashish masalalarining tobora ortib borayotgan ahamiyati haqida so‘z yuritdi.
🟢Uchrashuv o‘quvchilar uchun fikr almashish, ekologik masalalar bo‘yicha bilimlarini kengaytirish hamda ekologik mas’uliyatni yanada mustahkamlash uchun muhim platforma bo‘lib xizmat qildi.
#GreenUniversity#EkologikTa’lim #YoshlarVaEkologiya#Uzbekistan2030
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube