В 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
#RATS is dropping in a bearish channel on 4H time frame,we are waiting for breakup from the supply zone and ceiling of the bearish channel..✨
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
#RATS has falling wedge pattern on 4H Time frame,we expect it will have a good pump from the support zone in near future 💎
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
#RATS has a falling wedge pattern on 4H Time frame,in the case of breakup we will see huge pump again 💎
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
#RATS bounced back from the Trendline on 2H Time frame,we expect it will pump from here until the next level 🚀
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️
✨ Unlock simplicity in #BRC20 transfer!
🚀Now, easily transfer your #BRC20 assets in just ONE step!
🔄 Inscribe and transfer seamlessly for a more efficient and convenient experience.
👉https://tokenpocket.pro
Ready to experience seamless #BRC20 transactions?
Follow the tutorial:
👉https://help.tokenpocket.pro/en/wallet-faq-en/btc-wallet/brc20
#Sats#ordi#RATS#Inscriptions
【Details】https://twitter.com/TokenPocket_TP/status/1737707370523005390
【Powered By】Crypto Box
🟧 TokenPocket Now Fully supports BRC-20! #BRC20
✅#BRC20 tokens deposit, withdrawal, and token price display.
✅ Transfer your #BRC20 in one single transaction (Inscribe and Transfer in one step)
🆕We just released the iOS new version 🔺2.1.9🔺(TP Wallet) and Android new version 🔺1.9.5🔺. Upgrade your TP Wallet/TokenPocket and discover the #BRC20#Inscriptions world with us!
👉https://www.tokenpocket.pro/
#Sats#ordi#RATS#Inscriptions
【Details】https://twitter.com/TokenPocket_TP/status/1736949473048420555
【Powered By】Crypto Box