В 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
#Impeachment: con 221 favorevoli e 212 contrari, la Camera dei Rappresentanti formalizza l'inchiesta di impeachment nei confronti di Joe Biden.
Questo darà alle Commissioni della Camera un maggior potere ispettivo nei confronti della Casa Bianca e saranno in grado di ottenere testimonianze e prove.
📢 EXCLUSIVE: House Dems secretly meet with GOP to kill Biden impeachment. Republicans consider Biden's record of cooperation. Fact sheets shared to quash inquiry. Dems defend Biden's firing of Ukrainian prosecutor. FBI probe alleges bribery scheme. Biden received funds from brother. GOP demands White House docs. Biden communicated with son via email alias. Impeachment inquiry framework to be formalized. Corruption investigation continues. Stay tuned for updates! 🕵️♀️🔍#Politics#Corruption#Impeachment
https://www.foxnews.com/politics/house-oversight-democrat-quietly-meeting-gop-lawmakers-effort-quash-impeachment-inquiry-sources
Subscribe to @BadVolfNews
⚖️🇺🇸HOUSE DEMOCRATS LAUNCH IMPEACHMENT AGAINST DEFENSE SECRETARY HEGSETH
🔹 Six articles filed by Rep. Yassamin Ansari over unauthorized Iran military strikes without Congress approval 📋
🔹 Accusations include targeting civilians, destroying girls school in Minab, Iran during operations 🎯
🔹 Illegal double-tap strikes on Caribbean drug boats — hitting first responders after initial attack 🚢
🔹 Signalgate scandal: sharing classified Yemen strike details via Signal app to unauthorized personnel 📱
White House dismisses as political theater, but war crimes allegations stack up! 🔥
#USNews#impeachment#Hegseth
@america
On January 26, 1998, President Bill Clinton held a news conference and denied having sexual relations with Monica Lewinsky, a 22-year-old White House aide. Later that year, he was impeached for lying about the affair but was acquitted by the Senate and finished his term.
🇺🇲🧐
[Read more]
@googlefactss
#Clinton#Lewinsky#Impeachment#USHistory#FactCheck#ItWasntMe
Argentina's Opposition Eyes Impeachment Over LIBRA
Argentina's opposition is considering impeachment for President Milei after conflicting support for the LIBRA token. This follows a controversial launch that saw rapid investment and then a significant drop in value, leading to accusations of mismanagement and deception. The situation raises questions about political influence in cryptocurrency projects.
Read more: Reuters
#Argentina#LIBRA#Crypto#Impeachment#Milei#Investment#MarketManipulation#EconomicCrisis#Blockchain#DeFi#RugPull#Politics#Cryptocurrency#TokenLaunch#InsiderTrading#Securities#AI#VC
Argentina Investigates LIBRA Token Misconduct
Argentina's President Javier Milei calls for an investigation into LIBRA token's rug pull, requesting the Anti-Corruption Office's involvement to assess potential misconduct by government members. Findings will be forwarded to the court. Opposition considers impeachment due to the incident. Links: Statement, Watch, Details.
#LIBRA#Crypto#Argentina#investigation#rugpull#president#JavierMilei#impeachment#KIPProtocol#AntiCorruption#fundflow#temporalanalysis#MELANIA#ENRON#Solana#ETF#Bitcoin#adoption#blockchain#corruption#misconduct