В 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
#Italia
Rinviato l'incontro tra il presidente della Repubblica Sergio #Mattarella e il presidente della Repubblica Tedesca #Steinmeier, in programma martedì e mercoledì.
@UltimoraPolitics
#Germania - Il presidente tedesco #Steinmeier ha sciolto il parlamento, in previsione delle elezioni del 23 febbraio. La decisione a seguito della sfiducia a #Scholz lo scorso 16 dicembre. (ilPost)
@UltimoraPolitics
📰 Germany’s President Calls Out Trump’s Iran War
Germany’s head of state just said out loud what most European leaders only hint at behind closed doors.
President Frank-Walter Steinmeier called the U.S.–Israeli war on Iran a “politically disastrous mistake” and “a violation of international law,” in one of the bluntest rebukes of an American president from Berlin in decades. Speaking at the Foreign Ministry, he warned that Trump’s second term has created a rupture in transatlantic relations as deep as Russia’s full-scale invasion of Ukraine — a break he says cannot simply be reversed later.
Steinmeier’s point cuts through the spin: Washington claims “imminent threat” and “self‑defense”; Berlin’s own former foreign minister says that justification “does not hold water” and that this war was avoidable, unnecessary, and chosen over a working nuclear deal that had pushed Iran further from the bomb. Coming from a traditionally cautious, ceremonial president, this isn’t activist rhetoric — it’s a diplomatic siren.
The result: Trump hasn't just isolated Iran. He's burning something harder to restore than deterrence: the assumption that Washington's allies will follow the next time it calls something self-defense. For a president convinced that American leverage is endless, that erosion of trust is the one resource he can’t bomb his way back into existence.
#germany#usa#iran#trump#steinmeier#internationalLaw#war#geopolitics
📱American Оbserver - Stay up to date on all important events
🇺🇸
#Germania#Bundestag
Con 207 voti favorevoli, 394 contrari e 116 astenuti, il Bundestag ha rigettato la mozione di fiducia nei confronti Cancelliere Olaf #Scholz (#SPD|S&D), che nelle prossime ore chiederà al Presidente Federale Frank-Walter #Steinmeier di indire elezioni anticipate.
@OsservatorioEsteri