В 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
¡New build available!
#A14#RisingOS
Xiaomi 12T Pro / Redmi K50 Ultra (diting)
Maintainer:@TeamMEX_XDA (Kισżż)
Version:5.2.1-Lyonesse
Download | Changelogs | Screenshots
Device Changelog:
◦ Enable Updater app
◦ Enable Lawnchair and Pixel launcher
◦ fix ims crash (?)
◦ improve system performance
◦ more bugfixes
◦ Enable visual eq on dolby
'#risinginyourarea' '#UDC'
If you like my work and want to support it please consider making a donation this helps with server costs.
Donate PayPal
¡New build available!
#A14#RisingOS
Xiaomi 12T Pro / Redmi K50 Ultra (diting)
Maintainer:@TeamMEX_XDA (Kισżż)
Version:5.1-Lyonesse
Download | Changelogs | Screenshots
Device Changelog:
◦ Sync with last rising 5.1 source
◦ Update Yuki kernel
'#risinginyourarea' '#UDC'
If you like my work and want to support it please consider making a donation this helps with server costs.
Donate PayPal
¡New build available!
#A14#RisingOS
Xiaomi 12T Pro / Redmi K50 Ultra (diting)
Maintainer:@TeamMEX_XDA (Kισżż)
Version:5.0-Lyonesse
Download | Changelogs | Screenshots
Device Changelog:
◦ Fix some sensor issues
◦ Last source from rising
◦ update spoof from settings to pass strong
'#risinginyourarea' '#UDC'
If you like my work and want to support it please consider making a donation this helps with server costs.
Donate PayPal
¡New build available!
#A14#RisingOS
Xiaomi 12T Pro / Redmi K50 Ultra (diting)
Maintainer:@TeamMEX_XDA (Kισżż)
Version:5.0-Lyonesse
Download | Changelogs | Screenshots
Device Changelog:
◦ Enable Updater app
◦ Enable Lawnchair and Pixel launcher
◦ fix ims crash (?)
◦ improve system performance
◦ more bugfixes
◦ Enable visual eq on dolby
'#risinginyourarea' '#UDC'
If you like my work and want to support it please consider making a donation this helps with server costs.
Donate PayPal
Follow@xiaomi_12tpro_updates
Join@xiaomi12tpro_chat
RisingOS - Community | A14 | Nothing Phone (2)
📔 Details:
- Version: 4.2 (Kailash)
- Codename: #Pong
- Released: 02/08/2024
🔽 Download (Recovery) : Vanilla | Gapps
⚙️ Installation: Here
📸 Screenshots: Here | Here
🔄 Source Changelog: Here
💵 Donate: Paypal | UPI: samrth012@okaxis
🆘 Support: Telegram
🔖 Tags : #ROM#AOSP#Community#RisingOS#QPR3#U#NothingPhone2
✍️ Note:
- Rebased trees
- Padding Can be adjusted from Settings
- Use this pif.json in settings for passing play integrity
- Kernel is prepatched with KSU
- Dolby Atmos Included
- Unlimited Google Photos Spoof Available..
- Clean flashing is mandatory (v4.0 users can dirty flash)
‼️ Known Bugs:
- (You tell.. I fix.. 🤝)
🏆 Credits
- Chandu for base device tree & Kernel
- AgbKartik for help
- Hellboy for Dolby
- Fabian for PA Glyph Implementation
- Testing team
😎 Maintainer: @samrth012
🔔 Updates: @NothingPhone2Updates
💬 Chat: @NothingPhone2
RisingOS - Community | A14 | Nothing Phone (2)
📔 Details:
- Version: 4.1 (Kailash)
- Codename: #Pong
- Released: 29/07/2024
🔽 Download (Recovery) : Vanilla | Gapps
⚙️ Installation: Here
📸 Screenshots: Here | Here | Here
🔄 Source Changelog: Here
🆘 Support: Telegram
🔖 Tags : #ROM#AOSP#Community#RisingOS#QPR3#U#NothingPhone2
✍️ Note:
- Padding Can be adjusted from Settings
- BCR Included
- Kernel is prepatched with KSU (Download Manager)
- Dolby Atmos Included
- Unlimited Google Photos Spoof Available..
- Clean flashing is mandatory (v4.0 users can dirty flash)
- NO OTA's
‼️ Known Bugs:
- None (You tell.. I fix.. 🤝)
🏆 Credits
- Chandu for base device tree & Kernel
- OC'D, Miki, Unluck & Ghost for all help
- Hellboy for Dolby
- Fabian for PA Glyph Implementation
- EverRising for Testing
😎 Maintainer: @samrth012
🔔 Updates: @NothingPhone2Updates
💬 Chat: @NothingPhone2
RisingOS - Community | A14 | Nothing Phone (2)
📔 Details:
- Version: 4.0 (Kailash)
- Codename: #Pong
- Released: 23/07/2024
🔽 Download (Recovery) : Vanilla | Gapps
⚙️ Installation: Here
📸 Screenshots: Here
🆘 Support: Telegram
🔖 Tags : #ROM#AOSP#Community#RisingOS#QPR3#U#NothingPhone2
✍️ Note:
- Padding Can be adjusted from Settings
- BCR Included
- Kernel is prepatched with KSU (Download Manager)
- Dolby Atmos Included
- Unlimited Google Photos Spoof Available..
- Clean flashing is mandatory
- Sam is Working on OTA.. Might Get OTA Updates with Next Release..
‼️ Known Bugs:
- None (You tell.. I fix.. 🤝)
🏆 Credits
- Chandu for base device tree & Kernel
- OC'D, Miki, Unluck & Ghost for all help
- Hellboy for Dolby
- Fabian for PA Glyph Implementation
- EverRising for Testing
😎 Maintainers: @samrth012
🔔 Updates: @NothingPhone2Updates
💬 Chat: @NothingPhone2