В 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
#ARPA/USDT analysis :
#ARPA is currently moving upward within a bullish channel, consistently forming higher highs (HHs) and higher lows (HLs). The price has recently rebounded from the support of the channel and is expected to test the resistance level of the channel soon.
TF : 4H
Entry : $0.05590
Target : $0.06165
SL : $0.05187
#ARPA/USDT Analysis-
ARPA has formed bullish symmetrical triangle pattern. Once it will break the high then it has high potential to go up till the target zone.
T.F.- 4-H
ENTRY- as soon as it gives breakout
SL- 0.04610
TARGET- 0.05500
Note: If the stop-loss is triggered before entry, disregard the trade as the price action may develop differently.
#ARPA/USDT analysis -
#ARPA is making new lows, the price is currently consolidating near the resistance zone. Wait for a pullback towards the resistance zone and wait for the price to be rejected from the zone for a short entry. The previous low is expected to be tested.
TF : 2h
Entry : $0.0486
Target : $0.0442
SL : $0.0506
#ARPA/USDT ANALYSIS
ARPA is currently consolidating within a descending triangle, with a rebound occurring from the horizontal demand zone at the base of the pattern.
The Ichimoku Cloud serves as a resistance overhead, situated above the triangle. A decisive move, either a breakout or breakdown, is needed before considering any trades.