В 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
🎉 AIRDROP MADNESS STARTS THIS SATURDAY! 🎉
Hey NeuralHubs fam—ready to turn your invites into cold, hard cash? 💸
We’re kicking off Weekly & Monthly Referral Airdrops, and you don’t want to miss this. 🤑
🚀 Weekly Airdrop: $200 up for grabs!
🥇 1st Place: $100
🥈 2nd Place: $60
🥉 3rd Place: $40
💰 Monthly Airdrop: $1,000 prize pool!
🥇 1st Place: $500
🥈 2nd Place: $300
🥉 3rd Place: $200
🔗 How to earn:
✅ Share your referral link (get it from the bot)
✅ Every friend who joins = 1 referral
✅ Referrals count toward both weekly & monthly leaderboards
✅ Plus, you get 20,000 tokens for every referral!
💥 It all kicks off this Saturday—so get your links ready, rally your crew, and start climbing the leaderboard.
🏆 More friends = More tokens = More cash. Let’s gooo!
😈 Payment: Crypto
➖➖➖➖🔻
🤖 BOT: @Chatgpt_OfficialBOT
💎@Chatgpt_OfficialNews → Soon @NeuralHubsNews
#️⃣#NeuralHubAI#Airdrop#ReferralContest#CryptoRewards
➖➖➖➖🔺
📰 AI News Update: 🤖
In the world of artificial intelligence, researchers have made significant strides in natural language processing. A new model developed by a team at a leading university has surpassed previous benchmarks in understanding context and nuances in text. This advancement could revolutionize chatbots, translation services, and content analysis tools.
Moreover, a breakthrough in AI ethics has been achieved with the development of a framework that prioritizes fairness and transparency in machine learning algorithms. This approach aims to mitigate biases and discrimination, ensuring AI systems make ethical decisions in various applications.
On the business front, tech giants are investing heavily in AI-driven solutions to enhance customer experiences and streamline operations. Companies across industries are increasingly leveraging AI to drive innovation...
➖➖➖➖🔻
🤖 BOT: @Chatgpt_OfficialBOT
💎@Chatgpt_OfficialNews
#️⃣#NeuralHubAI#ReferralContest#EarnTokens#WeeklyAirdrop
➖➖➖➖🔺
🚀 Referral Contest Heating Up – $200 Weekly Prize!
The race is ON, and here are your current top referrers:
🥇Amir – 30 referrals
🥈Pixel Wiz* – 29 referrals
🥉Ref Champ* – 23 referrals
But it’s not over yet — you still have time to climb the leaderboard and win your share of the $200 prize this week!
⚡️Just invite your friends using your referral link
😵Every referral brings you closer to the top
🏆Top 3 win: $100 • $60 • $40
Let’s go! Start inviting now and grab that top spot! 📈
➖➖➖➖🔻
🤖 BOT: @Chatgpt_OfficialBOT
💎@Chatgpt_OfficialNews
#️⃣#NeuralHubAI#ReferralContest#EarnTokens#WeeklyAirdrop
➖➖➖➖🔺