В 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
#RVN/USDT analysis :
#RVN is in a downtrend, making new lows and trading below the 200 EMA. The price is currently retesting a previously respected support zone. It is expected to decline from this level and continue the downtrend, with previous lows will be tested again.
TF : 4h
Entry : $0.01770
Target : $0.01596
SL : $0.01893
#RVN/USDT analysis :
#RVN has broken out of the previous swing high resistance zone and the 200 EMA. It is currently consolidating above these levels. The price is anticipated to sustain its bullish momentum and potentially reach new highs.
TF : 2H
Entry : $0.01745
Target : $0.01942
SL : $0.01618
#RVN/USDT analysis -
#RVN has broken down and retested the resistance zone. It's now set to keep going down and try new lows. The previous support is expected to be tested.
TF : 2H
Entry : $0.01770
Target : $0.01630
SL : $0.01845
#RVN/USDT analysis -
#RVN is in a downtrend, hitting new lows while trading below the 200 EMA. The price is currently rejecting from the resistance zone and is expected to decline from there, continuing its bearish momentum. Wait for a pullback near the resistance zone for a short entry. Aim for the previous swing low as your target level.
TF : 1H
Entry : $0.0206
Target : $0.0187
SL : $0.0220
#RVN up 4,030% - Absolutely incredible🔥
💰A nice
4️⃣
0️⃣
🔠 return from this single Signal⭐
While others take massive losses trading spot, only making money when prices go up - we win big with futures profiting even when market goes down. That's the difference between smart investing and bad decisions 🏝
If you want the best, this is your chance
🔥BULL MARKET SALE IS LIVE🔥
The market is heating up, and we are at the peak of the year. It looks like more big days are ahead. Let's keep riding this wave, it's going to be absolutely insane!💯
DM me now to start!👇
http://t.me/Kevindexter
#RVN rejected from the Trendline on Weekly time frame,in the case of correction we can buy it again at Weekly Demand zone,send it💫
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️