В 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
🚀 Student Mode – Your AI Study Buddy! 📚🎓
Struggling with studies? AI is now your ultimate learning assistant! 🏆
✨ What can it do?
✅ Homework Help – Get explanations & answers instantly!
✅ Summarize Texts & Notes – Save time while studying!
✅ Answer Any Subject Questions – Math, Science, History & more!
💡 How to activate?
Simply type:
🔹 /mode – Select Student Mode for a smart study buddy!
🔹 Need help? @OpenAI_helpdesk
🔹 Join the discussion: https://t.me/chatgpt_officialchat
🔥 Ace your studies with AI-powered learning!
➖➖➖➖🔻
💎@Chatgpt_OfficialNews – Stay Updated! ⚡️
🧠 BOT: @Chatgpt_OfficialBOT
#️⃣#GPT4.5 #SmartAI#NextGenTech#AIUpgrade#GPTModel
➖➖➖➖🔺
Nearly 100% of cancer identified by new AI, easily outperforming doctors | In what's expected to soon be commonplace, AI is being harnessed to pick up signs of cancer more accurately than the trained human eye.
🔥 The ultimate all-in-one AI mode is here! Try it today!
➖➖➖➖🔻
💎@Chatgpt_OfficialNews – Stay Updated! ⚡️
🧠 BOT: @Chatgpt_OfficialBOT
#️⃣#GPT4.5 #SmartAI#NextGenTech#AIUpgrade#GPTModel
➖➖➖➖🔺
🚀 Standard Mode – The Perfect Balance! 🎯🤖
Need a reliable, well-rounded AI assistant? Standard Mode is here! 🏆
✨ What can it do?
✅ Great for everyday tasks – Chatting, answering questions, and quick research.
✅ Balanced Performance – No overcomplications, just smart AI!
✅ Perfect for casual and professional use – Your all-in-one AI assistant.
💡 How to activate?
Simply type:
🔹 /mode – Select Standard Mode for a smooth AI experience!
🔹 Need help? @OpenAI_helpdesk
🔹 Join the discussion: https://t.me/chatgpt_officialchat
🔥 The ultimate all-in-one AI mode is here! Try it today!
➖➖➖➖🔻
💎@Chatgpt_OfficialNews – Stay Updated! ⚡️
🧠 BOT: @Chatgpt_OfficialBOT
#️⃣#GPT4.5 #SmartAI#NextGenTech#AIUpgrade#GPTModel
➖➖➖➖🔺
🚀 The Next Leap – GPT-4.5 is Here! 🌍🔥
Welcome to the future of AI with GPT-4.5 – smarter, faster, and better than ever! 💡🤖
✨ Why Choose GPT-4.5?
✅ Reduced Hallucinations – More accurate responses!
✅ Enhanced Memory – AI that understands better!
✅ Next-Level Performance – Optimized for complex tasks!
💡 How to activate?
Simply type:
🔹 /model – Choose GPT-4.5 for peak performance!
🔹 Need help? @OpenAI_helpdesk
🔹 Join the discussion: https://t.me/chatgpt_officialchat
🔥 Unlock the power of GPT-4.5 today!
➖➖➖➖🔻
💎@Chatgpt_OfficialNews – Stay Updated! ⚡️
🧠 BOT: @Chatgpt_OfficialBOT
#️⃣#GPT4.5 #SmartAI#NextGenTech#AIUpgrade#GPTModel
➖➖➖➖🔺
🚀 Psychologist Mode – AI That Listens! 🧠💬
Need someone to talk to? Psychologist Mode is here for thoughtful, supportive conversations. 💖
✨ What can it do?
✅ Offers Emotional Support – AI that listens & responds with care.
✅ Stress & Anxiety Advice – Get helpful guidance anytime.
✅ Confidential & Non-Judgmental – Your personal AI therapist.
💡 How to activate?
Simply type:
🔹 /mode – Select Psychologist Mode for mindful AI conversations!
🔹 Need help? @OpenAI_helpdesk
🔹 Join the discussion: https://t.me/chatgpt_officialchat
🔥 Your AI support system is just one command away!
➖➖➖➖🔻
💎@Chatgpt_OfficialNews – Stay Updated! ⚡️
🧠 BOT: @Chatgpt_OfficialBOT
#️⃣#GPT4.5 #SmartAI#NextGenTech#Psychologue#GPTModel
➖➖➖➖🔺