В 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
💡The Cadillac Escalade has been updated in the USA
✨ The Escalade features new lighting technology, an emblem with backlight, and in the V-Series and Premium Luxury Platinum trims, it also has ambient lighting around the grille. 24-inch wheels are now available as an option.
♨️ The interior boasts a 55-inch display across almost the entire width of the front panel. Optionally available are extremely comfortable second-row seats with massage, dual wireless chargers, and two 12.6-inch screens.
🚘 All trims, except the base Luxury, come with adaptive Magnetic Ride Control 4.0 suspension and a heads-up display. The signature Super Cruise "autopilot" feature is now included in the base model at no extra charge.
⚙️ Under the hood, the 6.2-liter V8 with 420 hp and the 682-hp supercharged V8 of the same volume are retained. Sales will start at the end of the year.
#CadillacEscalade#LuxurySUV#Upgrade#Auto
🚗✨Electric Range Rover Unveiled!✨🚗
📸 Check out the latest photos of the all-electric Range Rover without camouflage!
🔍Design:
It features only subtle design differences from its petrol counterpart.
📅Pre-orders:
While specifications are still under wraps, the demand is skyrocketing! Over 41,000 people are already on the waiting list!
Are you excited about this new electric beauty? 💚⚡
#ElectricRangeRover#SustainableDriving#LuxurySUV#CarEnthusiasts#Auto
🌟🚗 Introducing the Genesis GV90! 🚗🌟
Get ready for the flagship electric crossover from Genesis, set to debut this October! 🎉✨ Built on the innovative eM platform, an evolution of the E-GMP architecture, the GV90 promises an impressive 113 kWh battery that offers a remarkable range of up to 800 km!🔋🌍
With its luxurious design and advanced features, the GV90 will compete with premium full-size SUVs like the Range Rover. 🏞️👑🚀
#GenesisGV90#ElectricCrossover#LuxurySUV#eMPlatform#Auto🌐🔋✨
🚗✨ Exciting news from BMW! The new extended X3 is here, specially designed for the Chinese market! 🇨🇳
With a wheelbase stretched by 110 mm to an impressive 2975 mm (just like the European BMW X5), the overall length now reaches 4865 mm! 📏
Available in two versions: 25L and 30L, both equipped with an 8-speed automatic transmission and a powerful 2.0L turbo engine. Choose between 190 hp & 310 Nm or 258 hp & 400 Nm! 💪🔥
#BMW#X3#LuxurySUV#China#CarNews#Automotive#Innovation#Auto🚘🌟
▎🚘 Introducing the All-New Audi Q5!
The next generation of the Q5 has arrived, now built on the PPC (Premium Platform Combustion), shared with the recently unveiled Audi A5. The design is completely new, yet resonates with the familiar aesthetic of Audi’s electric models.
🎮Inside the Cabin:
Featuring three stunning displays on the central panel, the media system runs on Android OS. The compact gear selector enhances the sleek design, while physical climate control buttons have been eliminated for a more modern feel.
⚡️Power & Performance:
In Europe, all Audi Q5 engines will come equipped with the MHEV Plus mild-hybrid system, featuring a 24 hp electric motor and a compact battery. The base versions will offer both petrol and diesel engines with a 2.0-liter capacity, delivering 204 hp (340 Nm) and 204 hp (400 Nm), paired with a seven-speed dual-clutch transmission. The powerful 3.0-liter V6 in the Audi SQ5 boasts an impressive 376 hp and 550 Nm of torque.
🗓️Availability:
The new Q5 will hit European markets in Q1 2025, with pre-orders already open, starting from €52,300 to €82,900.
▎🔥 Get ready to experience luxury like never before!
#AudiQ5#NewGeneration#LuxurySUV#Audi#Innovation#MHEV#Auto
🚗✨ Exciting news for luxury SUV enthusiasts! The new Range Rover Sport has been stunningly upgraded by Mansory!
🔧 The front bumper features a sleek splitter with stylish end caps and custom air vent overlays. The body kit includes new side skirts and a diffuser that perfectly complements the bespoke exhaust tips.
🔥 The Range Rover Sport SV boasts an alternative hood, unique inserts around the grille, and exclusive wheels available in 23 or 24 inches!
💰 While the price for these upgrades hasn't been disclosed, the demo model is already up for sale!
#RangeRoverSport#Mansory#LuxurySUV#CarEnthusiast#CustomCars#AutoDesign#LuxuryLifestyle#Auto