В 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
🚀 Binance Alpha Opens Mystery Box Airdrop Featuring AOP, REKT, and CLO
Key TakeawaysBinance launches Alpha Mystery Box airdrop.Reward pool includes AOP, REKT, and CLO tokens.Users need ≥240 Alpha points to claim; costs 15 points per claim.Rewards vary by tier and are distributed first-come, first-served.Binance Alpha Mystery Box Airdrop Goes LiveBinance Wallet has opened its Alpha Mystery Box airdrop, with rewards drawn from three projects:Ark of Panda (AOP)Rekt (REKT)Yei Finance (CLO)Eligible users can claim the airdrop via the Alpha event page.Eligibility and Claim RequirementsTo participate:Users must hold at least 240 Alpha pointsEach claim consumes 15 Alpha pointsEach user can claim onceRewards must be confirmed within 24 hours, or eligibility will be forfeited.Reward Structure and DistributionParticipants are randomly assigned to different reward tiers, receiving one of the following:AOP: 715 / 860 / 2860 tokensREKT: 192,307,700 / 230,769,230 / 769,230,770 tokensCLO: 335 / 400 / 1335 tokensAll rewards are distributed on a first-come, first-served basis.
#Binance#AlphaMysteryBox#Airdrop#AOP#REKT#CLO#AlphaPoints#Crypto#Rewards#YeiFinance#ArkOfPanda#CryptoAirdrop#BinanceWallet
📍 List of abbreviations commonly used in cryptocurrency trading:
#ALTCOIN = Alternate cryptocurrency except bitcoin
#SHITCOIN = A coin with no potential value or use
#BEAR | #BEARISH = Negative price movement
#BULL | #BULLISH = Positive price movement
#LONG = Margin buy position
#SHORT = Margin sell position
#BTFD = Buy The Fucking Dip
#DILDO = Long green or red candles 😆
#DYOR = Do Your Own Research
#FA = Fundamental Analysis
#TA = Technical Analysis
#FOMO = Fear Of Missing Out
#JOMO = Joy Of Missing Out
#FUD = Fear Uncertainty & Doubt
#HODL = Hold a position
#MCAP = Market Capitalization
#MOON = Continuous upward movement of price
#OTC = Over The Counter
#PUMP = Upward price movement
#DUMP = To sell off a coin
#REKT = When you have a bad loss
#WHALE = Very wealthy trader/Market mover
#AMA = Ask me anything
#ATH = All Time High
#ATL = All Time Low
#DLT = Distributed ledger technology
#IMO = In My Opinion
#LAMBO = Lambo is symbol that becomes an elusive goal for most investors
#NOOB = A person who is inexperienced
#SAFU = Secure Asset Funds for Users
#SHILL = Holder of altcoin who just wants to promote it for his own benefit
✅@ElfCryptoVIP