В 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
📘Understanding #Web3 AI with #AINFT
From #ChatGPT to #Claude, we break down how top #AI models work — and how AINFT unifies them on one platform.🤖
No hype. Just clarity.
🗓 12 Feb · 8AM (UTC)
📍 Venue: HTX English Telegram Group
✈️Telegram | ✖️X
✅Announcements
🚀 AINFT Platform Surpasses 700,000 Users, Advances in Web3 AI
The AINFT platform has officially exceeded 700,000 users, according to official data. According to Odaily, the growing user base and the continuous enhancement of AI model capabilities are propelling it to become a leading AI platform in the Web3 sector. AINFT currently offers users AI models ready for production and fully supports the execution of on-chain automated workflows, facilitating a rapid transition from creative ideas to on-chain implementation. Leveraging its expanding community and open technical architecture, AINFT aims to lower the barriers to using Web3 AI, enabling more efficient deployment of innovative applications.
#AINFT#700000Users#Web3#AIPlatform#AI#Blockchain#OnChain#AutomatedWorkflows#Web3AI#Innovation#Technology#Community
🚀 AINFT Transitions to B.AI Brand Focused on Agent Finance
The official Twitter account of AINFT will transition to B.AI starting today. According to ChainCatcher, the B.AI brand aims to advance Agent Finance, which involves AI Agents autonomously managing funds, executing trades, and optimizing returns, thereby granting artificial intelligence true financial autonomy and accelerating the realization of Artificial General Intelligence (AGI). To ensure a smooth transition for the community, the brand will implement phased upgrades to avoid the impact of a one-time switch. During this process, AINFT will continue to operate as a core sub-brand within the B.AI ecosystem. All content, technological iterations, and community activities related to AINFT will be migrated to the new platform @AINFTcom.
#B_AI#Agent_Finance#AI_Agents#Artificial_Intelligence#AGI#Technology_Transition#AINFT#Financial_Autonomy#Blockchain#Crypto