В 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
#QNT/USDT analysis :
#QNT is currently in a correction phase. Price is expected to decline further and test the previous swing high support level before continuing its bullish momentum. It’s advisable to wait for the price to retest the previously respected zone for a short entry, as the price is anticipated to decline and test lower levels.
TF : 1D
Entry : $126
Target : $81
SL : $156
#QNT/USDT analysis :
#QNT is currently in a downtrend, trading below the 200 EMA. The price is likely to retrace and test the resistance zone before continuing its bearish momentum. The current swing low is expected to be tested.
TF : 1H
Entry : $70.4
Target : $66.5
SL : $72.5
#QNT broken down the trendline on 12H Time frame,we expect another dump after pullback,more correction incoming..👀
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
📊#QNT price break below the $97 major support area. The last hope is the $90 support level; if the price breaks below this, we see a heavy selloff. Price needs to reclaim the $100 level to gain some positive movement. It is better to wait for some time to open new trades.⌛️
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
#QNT/USDT UPDATE:
#QNT is now trading around 106$. #QNT is moving inside a symmetrical triangle on 4hr time frame. So the Possible scenarios are If the price pumps up and breaks out of the triangle, we can see bullish momentum in it. Otherwise If the price dumps and breaks down of the triangle, we can see bearish momentum in it. Stay tuned with us for further updates✔️
#Do You Know Your Crypto Logos? #XEC#QNT#BSV#ENJ#KCS#ZEC
#cryptogemtokenshttps://cryptogemtokens.com/do-you-know-your-crypto-logos-xec-qnt-bsv-enj-kcs-zec/