В 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
https://x.com/priceactiongann/status/1833441709151096889
#NIFTY#GIFTNIFTY
🔍 Gift Nifty at 24,780 - This level is critical!
📷 Why This Matters: The current upward trend aligns with the significant cycle of Sensex at 81,170.
(both met exact same Time and Price)
📷Potential Scenarios:
Nifty might test Bounce 24,676 or could see a breakout.
Alternatively, it might ignore this level and head towards a downside trend.
It's in between the zones can range and then follow later!
#sensex#nifty#stocks#BSE#StockMarket
https://x.com/priceactiongann/status/1833441709151096889
https://x.com/priceactiongann/status/1831968467601527029
#nifty#sensex
Sensex 82576 to 81198 done!
This is the First Time posting Sensex
All Time High Almost near price,
Reaches downside and decide here!
Nifty50 Top Price so far from 25300 it dropped
"1440" Price Low to High "Exact Points"!
Bank Nifty Reaches near 51860 Encoded and Dropped from there!
All Cycle is Interconnected, Cycles Rhymes can be seen Obviously once price cycle is reached!
will post calculations later once 144 likes reaches in this post!
#stocks#stockmarket#nifty50#MarketCrash#banknifty#BSE#NSE
https://x.com/priceactiongann/status/1831968467601527029
https://www.youtube.com/watch?v=qjsgh64_1To
https://x.com/priceactiongann/status/1834904231515459918
#nifty#nifty50
New Video!
🔹Trading Insights for NIFTY 50, Sensex, and Bank Nifty
🔹In this video, Explained the NIFTY 50 Jackpot Trade giving you a comprehensive view of where the market might be heading.
📷 Don't forget to LIKE, SHARE, and SUBSCRIBE for more market insights!
#stocks#stockmarket#trading#priceaction#sensex#banknifty#jackpot#nse#bse
https://x.com/priceactiongann/status/1834904231515459918