В 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
❗️❗️#Tehran
Şimali-şərq ərazisində, 9 Farvardin (29 mart) səhər saat 09:00 radələrində baş verən hücumlara aid vətəndaşlardan alınmış görüntülər sosial şəbəkələrdə paylaşılıb.
Bizi teleqramda izləyin:
https://t.me/tebriz_turan
❗️❗️#Tehran
Paytaxt şəhərində, Babayi avtomagistralı və Niru-ye Zamini bulvarı (Ləvizan ərazisi) yaxınlığında partlayışdan sonra tüstü qalxdığı bildirilir.
Sosial şəbəkələrdə yayılan vətəndaş videosunda hadisənin bu gün səhər saat 09:00 radələrində baş verdiyi qeyd olunur.
Bizi teleqramda izləyin:
https://t.me/tebriz_turan
❗️❗️#Tehran
İranın paytaxtı şəhərində, Hərəvı meydanı yaxınlığında yerləşən binaya hücum edildiyi bildirilir.
Qətərin telekanalı xəbər verir ki, hücum onların Tehran ofisinin yerləşdiyi binaya edilib. Məlumata görə, raket pilotsuz uçuş aparatından buraxılıb və canlı yayım zamanı binaya düşüb.
Hadisə nəticəsində telekanal əməkdaşlarının xəsarət almadığı bildirilsə də, yaxınlıqdakı binalarda azı 10 nəfərin yaralandığı qeyd olunur.
Hadisə ilə bağlı görüntülərin sosial şəbəkələrdə yayıldığı bildirilir.
Bizi teleqramda izləyin:
https://t.me/tebriz_turan
Tasnim News Agency: An Israeli entity attack targeted the Ministry of Defense headquarters in #Tehran, causing minor damage to one of the administrative buildings.
Deaths from #Iran protests reach more than 500, rights group says
Unrest in Iran has killed more than 500 people, a rights group said on Sunday, as #Tehran threatened to target U.S. military bases if President Donald Trump carries out his renewed threats to intervene on behalf of protesters.
With the Islamic Republic's clerical establishment facing the biggest demonstrations since 2022, Trump has repeatedly threatened to get involved if force is used on protesters.
According to its latest figures - from activists inside and outside Iran - U.S.-based rights group HRANA said it had verified the deaths of 490 protesters and 48 security personnel, with more than 10,600 people arrested in two weeks of unrest.
Iran has not given an official toll and Reuters was unable to independently verify the tallies.
Trump was to meet with senior advisers on Tuesday to discuss options for Iran, a U.S.....
https://www.reuters.com/business/media-telecom/confronting-protests-iran-vows-strike-back-if-us-attacks-2026-01-11/
#Israel launches “pre-emptive” strike on #Iran as explosions reported in #Tehran
Israel said it launched a “pre-emptive” military strike on Iran early Saturday, with Iranian state media reporting explosions in parts of Tehran.
Israeli Defence Minister Israel Katz said the operation targeted Iran and announced a nationwide state of emergency in Israel, citing the risk of retaliatory attacks.
“Following a situational assessment, it was determined that as of today (Saturday), at 08:00, immediate changes will be made to the Home Front Command Guidelines As part of the changes, it was decided to shift all areas of the country from Full Activity to Essential Activity. The guidelines include: a prohibition on educational activities, gatherings, and workplaces, except for essential sectors,” IDF said in a statement posted on X (formerly Twitter).
https://www.facebook.com/share/p/17brMhNLB3/?mibextid=wwXIfr