В 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
#LSK/USDT analysis :
#LSK is in a downtrend, trading below the 200 EMA and forming lower lows (LLs) and lower highs (LHs). The price is currently within a resistance zone, and it is anticipated to reverse from this level, resuming its bearish momentum to test lower price levels.
TF : 4h
Entry : $0.760
Target : $0.665
SL : $0.808
#LSK/USDT analysis :
#LSK has broken down and retested the resistance zone. The price is expected to bounce back from there and continue its bearish momentum to test the previous swing low.
TF : 4H
Entry : $0.825
Target : $0.745
SL : $0.878
📊#LSK is breakout the descending triangle with a descent volume. It got rejected from the MA 200 and currently, facing the Ichimoku cloud.✅
💬A candle close above the triangle or a break above the MA 200 would be the confirmation of a bullish rally.
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
#LSK/USDT analysis -
#Lisk is experiencing a corrective pullback, creating a quick scalp opportunity on the buy side. Price is following a trendline. It is expected to bounce off from there and test the 200 EMA resistance level.
TF : 15min
Entry : $0.832
Target : $0.856
SL : $0.817
Today. I added to my experimental portfolio a coin - Lisk#LSK paired with #USDT on the Binance cryptocurrency exchange.
For me, this coin looks attractive for a long-term investment.
🛒Motives for buying#LSK
#Lisk ranks 63rd in the CoinMarketCap rating.
Good fundamental analysis is expected by the end of the year, including the halving on September 28.
The coin was not pumped!
The price is close to the resistance zone $1.6555-1.8727,
Support level is the $1.2840-1.0440.
The price projector points to a rise of $3.30.
I expect to grow from 130% to 180%.
🎯 Fibonacci 10$ experiment.