В 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
China Tightens Control Over AI-Generated Content
China's Cyberspace Administration has introduced a draft regulation that will require digital platforms to clearly label all AI-generated content. This new regime would mandate visible logos and metadata embedded in texts, images, videos, and audio files created by AI. In some cases, audio content must include voice prompts identifying AI-generation, while videos would display notifications at key points.
The proposed rules aim to tighten control over AI-generated material by ensuring accountability. Platforms will also be required to analyze and label any suspicious content that lacks metadata. This move underscores China’s broader vision for stringent regulation of AI technologies and user-generated content, with significant penalties for non-compliance.
#AIRegulation#AICompliance#ChinaTech#AIGovernance
China invents game-changing process that turns desert sand into fertile soil in just 10 months
[Read FullArticle]
@WorldNews#DesertGreening#Agritech#ChinaTech
China is not showing any sign of a slowdown in building up a national 5G network, even when the coronavirus outbreak has shattered the global supply chain.
The total number of 5G base stations will range between 600,000 and 800,000 by the year’s end (c) KrAsia
#china#china🇨🇳#5g#technology#tech#chinatech
Didi Chuxing has launched a new intra-city errand service in Chengdu and Hangzhou with a starting rate of RMB 12 (USD 1.72) for the first four kilometers, RMB 20 for a delivery distance of four to 10 kilometers, and RMB 30 for a distance higher than 10 kilometers (c) KrAsia.
Be ready for lower prices from Meituan and Eleme soon.
#china#didi#delivery#chinatech#chinabusiness
SonarWatch Acquired; Bitpanda Gains EU License
🔗 Multichain DeFi tracker SonarWatch acquired by Jupiter.
🔗 Bitpanda secures German MiCA license from BaFin, enabling operations across 27 EU nations and enhancing growth with 6 million users.
🔗 Coinbase CEO advocates for token listing reform amid surge in new tokens, reaching 1 million weekly.
🔗 Nasdaq futures drop nearly 2% as China's DeepSeek AI casts shadow over US tech stocks.
🔗 DeepSeek app tops free downloads in US App Store.
🔗 Trump administration considered handing over TikTok operations to Oracle.
🔗 AI search developer Perplexity proposes TikTok acquisition with 50% future IPO stake for the US government.
🔗 TikTok users in the US report censorship issues post-unblocking.
🔗 Russian lawmakers suggest potential unblocking of foreign social networks if sold to local investors.
#DeFi#SonarWatch#Bitpanda#MiCA#Coinbase#AI#DeepSeek#TikTok#Oracle#USStocks#Censorship#NASDAQ#TechNews#Investment#ChinaTech#Innovation#Crypto#VC#USGovernment