В 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
#MDT/USDT analysis :
#MDT is currently in a downtrend making new lows. The bearish momentum is expected to continue, potentially leading to further declines. For a short entry, consider waiting for a test of the resistance level before initiating a short position.
TF : 2H
Entry : $0.02883
Target : $0.02495
SL : $0.03150
#MDT/USDT analysis :
#MDT is currently in a downtrend, consistently forming lower lows (LLs) and lower highs (LHs) below the 200 EMA. The price is anticipated to continue its bearish momentum and test lower levels. It is recommended to wait for a pullback for a short entry opportunity.
TF : 4H
Entry : $0.05060
Target : $0.04127
SL : $0.05536
#MDT/USDT analysis :
#MDT is currently in an uptrend, characterized by the formation of higher highs (HHs) and higher lows (HLs). The price has retraced to test the 200 EMA, successfully forming a higher low before bouncing back. Wait for a breakout of the trendline, as the price is anticipated to test the previous swing high.
TF : 4H
Entry : $0.06650
Target : $0.08500
SL : $0.05715
#MDT/USDT analysis :
#MDT is in an uptrend, forming higher highs (HHs) and higher lows (HLs) above the 200 EMA. The price has recently tested the support zone and has bounced back from that level. It is anticipated that the bullish momentum will continue, leading to a potential test of previous highs.
TF : 2h
Entry : $0.05624
Target : $0.06177
SL : $0.05297
#MDT/USDT analysis :
#MDT is currently retracing back to the 200 EMA while forming higher highs (HHs) and higher lows (HLs) in its structure. The price is bouncing back from the support zone and is expected to test the previous swing high.
TF : 1D
Entry : $0.04253
Target : $0.05229
SL : $0.03668
#MDT/USDT analysis :
Based on the current market analysis, #MDT is currently experiencing a downtrend, trading below the 200 EMA. Following a correction phase, the price has been rejected from the 200 EMA. The anticipated next move is for the downtrend to persist with an impulsive movement, potentially testing previous lows.
TF : 4H
Entry : $0.0364
Target : $0.0290
SL : $0.0405
#MDT reached the ceiling of the trading range on 12H Time frame,we expect another bullish movement incoming..🚀
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️