В 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
🚀Are you ready to elevate into a crypto trading game?🤖
SLEX will bring an array of bots designed to supercharge your trading strategies and maximize your profits. Let us introduce to you the different types of SLEX trading bots:
1️⃣ Grid Bot: This intelligent bot follows a buy-low, sell-high approach by strategically placing orders at predefined price intervals 🌊📈📉
2️⃣ Arbitrage Bot: Say hello to the Arbitrage Bot, which hunts for pricing inefficiencies and swiftly executes trades to exploit them 💸💱
3️⃣ DCA Bot: The DCA Bot allows you to gradually build your crypto position over time by spreading out your orders at regular intervals📉🔄📈
4️⃣ AI Bot: Experience the future of trading with our AI Bot, which executes trades, identifies patterns, and develops robust trading strategies 🤖📊
👉Open the window to the future with the prospects of SLEX trading bots: SLEX.io/registration
#SLEX#TradingBots#CryptoTrading#AutomatedTrading
Email | Telegram | Reddit | Facebook | Instagram | Medium | Linkedin | Twitter
🚀 Hello, SLEXians!
🤖As you already know SLEX platform will launch an Automatic Trading Feature along with AI-Powered Trading Bots!
💻Trading around the clock, analyzing market trends, executing trades, and even learning from market shifts – that's what our Automatic Trading Feature ensures.
🤔But we're curious... What's your trading style? Are you ready to use Trading Bots and AI? Or do you prefer a hands-on approach to navigating the crypto world? 🌊
Jump into the comments and let us know! 🗣️ We're excited to hear how you plan to use (or not use) these advanced features on the SLEX platform! 💬👥
#SLEX#CryptoTrading#AutomatedTrading#AI#TradingBots
Email | Telegram | Reddit | Facebook | Instagram | Medium | Linkedin | Twitter
🚀 Crypto Sector Performance: MVB Leads Gains, Moltbook & OpenClaw Theme Declines
The cryptocurrency market witnessed varied sector performances recently, with MVB emerging as the top rising sector, recording a 38.54% increase. According to NS3.AI, the Moltbook & OpenClaw Theme sector experienced the most significant decline, falling by 18.56%. Additionally, Trading Bots saw a notable rise of 30.41%, while Solana Token-2022 decreased by 8.27%. These fluctuations highlight the dynamic nature of the crypto market, with sectors experiencing both gains and losses.
#Crypto#CryptocurrencyMarket#MVB#Moltbook#OpenClaw#TradingBots#Solana#OPN