В 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
#SAND/USDT analysis :
#SAND is currently in a downtrend, consistently making new lows on the daily time frame. The price is facing rejection from the resistance zone and the 200 EMA, and it is expected to test the support zone and the previous swing low. Look for a pullback to identify a potential short entry.
TF : 1D
Entry : $0.2852
Target : $0.2275
SL : $0.3253
#SAND/USDT analysis :
#SAND is currently in an uptrend, forming Higher Highs (HHs) and Higher Lows (HLs) above the 200ema. The price has broken the trendline after bouncing from a support zone. It is expected to maintain its bullish momentum and target previous highs.
TF : 30min
Entry : $0.2958
Target : $0.3076
SL : $0.2888
#SAND Market Analysis
SAND/USDT remains bearish with price hovering near the lower Bollinger Band and RSI sitting close to oversold at 33. MACD confirms downside momentum, reinforcing the weak structure below key resistances around 0.077. Bull case: hold above 0.0717 to target a retest of 0.0755 and possibly 0.0771 resistance. Bear case: lose 0.0717 and risk acceleration toward lower supports. Watch 0.0717 closely for the next directional cue.
---
➖➖➖➖➖➖➖
Bitcoin Bullets® Trading
#SAND Market Analysis
SAND/USDT is in a bearish trend with RSI deep in oversold territory and MACD confirming downside momentum. Price trades near the lower Bollinger Band, signaling potential for a short-term bounce but overall pressure remains. Bull case: hold above 0.0755 to target a retest of 0.0780 resistance. Bear case: break below 0.0755 risks continuation lower, exposing further downside below 0.071. Key level to watch: 0.0755 support.
---
➖➖➖➖➖➖➖
Bitcoin Bullets® Trading
#SAND Market Analysis
SAND/USDT shows a weak bullish structure with price hovering near the lower Bollinger Band and RSI sitting below 50, signaling limited upside momentum. MACD remains bearish, indicating sellers still have influence despite the mild uptrend. Bull case: hold above 0.0765 to target resistance at 0.0797 for a potential bounce. Bear case: lose 0.0755 and risk deeper pullback towards the next support zone. Key level to watch: 0.0765.
---
➖➖➖➖➖➖➖
Bitcoin Bullets® Trading