В 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
🚗 Exciting news from Toyota!
🚀 The GR86 sports car has been enhanced for even better handling, and a new special edition has been released! All GR86 models now feature recalibrated shocks, updated stability systems, and improved steering assistance. Manual transmission models get a more responsive throttle control, while automatic models benefit from optimized transmission logic.
Introducing the special RZ Ridge Green edition!
💚 This exclusive version boasts a unique green body color with bronze wheels and a premium interior finish of leather and Alcantara. Equipped with Brembo brakes and Sachs shocks as standard. Only 200 of these sports cars will be produced, so the right to purchase will be determined by a lottery🔥
#Toyota#GR86#RidgeGreen#SpecialEdition#LimitedRelease#Sportscar#Auto😍
🚀 AI TRENDS | OpenAI to Limit Release of Advanced Cybersecurity Model
OpenAI is reportedly developing an advanced cybersecurity model, which it plans to release only to a select group of companies, according to a source familiar with the matter. This approach mirrors Anthropic's limited release of its Mythos model. According to Jin10, the capabilities of artificial intelligence have reached a critical point, particularly in terms of autonomy and hacking potential. Model developers are increasingly concerned about the potential misuse of their tools, leading to reluctance in making them widely available. On Tuesday, Anthropic announced that due to concerns over its advanced hacking capabilities, it would restrict access to its new Mythos preview model to a select group of technology and cybersecurity companies. Anthropic is the first AI company to adopt this approach with a new model. The source indicated that OpenAI is now planning to implement a similar strategy.
#AItrends#OpenAI#cybersecurity#advancedmodel#limitedrelease#Anthropic#Mythos#AIautonomy#hackingpotential#technology#AItools#modelrelease