В 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
🇩🇪🇸🇾 Il cancelliere Friedrich #Merz ha incontrato il presidente siriano Ahmed #AlSharaa, dichiarando che #Germania e #Siria collaboreranno per il rimpatrio di centinaia di migliaia di rifugiati siriani, i quali "avranno un ruolo importante nella ricostruzione del loro Paese". L’incontro ha suscitato critiche da parte di alcune comunità siriane che temono un’accelerazione dei rimpatri post-guerra a scapito delle minoranze.
@UltimoraPolitics24
📰 Syria’s New Iron Pact: Kurds Fold Into Assad’s Army
Syria’s new government and the Kurdish-led SDF have cut a deal: the SDF will fold into the national army, giving up its autonomy in exchange for staying in the country’s power structure.
The agreement, announced Friday after intense clashes between the two sides, creates a new Syrian military division made up of three SDF‑trained brigades, plus a separate brigade for Kurdish fighters in Kobani, according to SDF and government sources. Kurdish‑led civil institutions in the northeast will now be integrated into the central government.
In practice, this means the end of the de facto Kurdish state that, at its height, controlled about a quarter of Syrian territory and its oil and gas fields. Government forces will now move into the Kurdish-held cities of Hasaka and Qamishli, where they had long been barred from entering.
The deal is the result of pressure, not goodwill. After months of stalled talks, Syria’s new President Ahmed al‑Sharaa launched a military offensive into Kurdish territory, capturing a large part of the northeast, at a time when the U.S. had already withdrawn its political and military support for the SDF, analysts say.
Without Washington in their corner, SDF chief Mazloum Abdi agreed to let his forces be absorbed into the new Syrian army, in a deal Washington now hails as a “profound and historic milestone” toward national reconciliation and stability.
The U.S. has long seen the SDF as its main ally in Syria against ISIS; now, it is actively facilitating the group’s integration into the central state, not as an independent power, but as a component of the new regime.
The SDF traded its guns and governance for a place at the table, but the exact boundaries of Kurdish rights and representation remain vague. The real question is whether this is a ceasefire, or just the first stage of full assimilation.
As the banners change and the lines redraw, the calculation is brutal and clear: Better to rule from within the regime than die alone against it.
#Syria#Kurds#SDF#AlSharaa#MiddleEast
📱American Оbserver - Stay up to date on all important events
🇺🇸