В 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!
#DerpFest | #Official#diting
Device:Xiaomi 12T Pro | Redmi K50 Ultra
Sha256SUM:fcc1f00c1b95a94db388c5acadbb
Build Date:2024-02-22
Downloads:
Link |Mirror
Changelog:
- Reimplement Custom headers feature from Bootleggers
- Allow to skip confirmation in biometric auth dialog
- Tint app name in notifications with app icon color
- Extend showing Ambient instead of fully waking to single tap gesture
- Fix wakeup and long-press actions of assistant key
- Gesture nav: Remove timeout setting and minor improvements
- Few layout fixes for advanced reboot options
- Add faster qs tile animation speeds
- Fix premature short-circuit on end spring anim
- Fix crash on notification icon contrast calculation
- Upgrade blobs to HyperOS CN miui_DITING_OS1.0.24.1.8.DEV_8704513c97_14.0
- adjust vibration
- upgrade kernel and modules to OS1.0.2.0.ULFCNXM Thnks to @Mohammadnt96
Notes
• Gapps are included
• Remebering, Don't report bugs without logs.
• CTS pass by default
By @TeamMEX_XDA
Donate PayPal
¡New build available!
#DerpFest | #Official#diting
Device:Xiaomi 12T Pro | Redmi K50 Ultra
Sha256SUM:1ec96f10def7980fae0eb6ed2af22900e4c5138dc70a612e7c5d89fcbb0a2a48
Build Date:2024-02-03
Downloads:
Link |
Changelog:
- Fixed miui camera issues (Still cant be open photos from the app use google photos)
- Implement UDFPS animations (inside theme picker -> lockscreen)
- Adjust udfps size
- fix issue where rebooting to twrp or similar the device panics to fastboot
- Fixed eSIM issues (now eSIM should work without more problems)
- Implement parallel space
- sync more stuff from derp
- Change vibration effects thnks to
@Mohammadnt96
Notes
• Gapps are included
• Remebering, Don't report bugs without logs.
• CTS pass by default
By @TeamMEX_XDA
Donate PayPal
¡New build available!
#DerpFest | #Official#diting
Device:Xiaomi 12T Pro | Redmi K50 Ultra
MD5SUM:97bed4a62116ae1abcf4211b3ac9a5a2
Build Date:2023-12-20
Downloads:
Link |
Changelog:
- Merge QPR1 (aka December security patch)
- Remove OOS style clear all button toggle due to QPR1 conflicts
- Switch to Yaap's impl for battery icon customizations
- Switch to AOSP themepicker to fix wallpaper apply button and other small issues
- Add DerpFest Updater (based on Lineage updater)
- Fix for Faceunlock needing a reboot to work after registering a face model
- Add optional bouncer user switcher toggle
- Add option to display data disabled indicator icon
- DerpSpace: Add a secure section to quick settings
- DerpLauncher:Import Lawnicons
- Update Gramophone prebuilt
- Switch to ARMv9 and Cortex-A510 optimizations
- Sepolicy enforcing
Notes
• Gapps are included
• FOD Not working on gtx8_spi touch screen
• Remebering, Don't report bugs without logs.
• CTS pass by default
By @TeamMEX_XDA
Donate PayPal
¡New build available!
#DerpFest | #Official#diting
Device:Xiaomi 12T Pro | Redmi K50 Ultra
MD5SUM:5b8c26aeef4d9f418db9c4cbdfe48833
Build Date:2023-11-25
Downloads:
Link |
Changelog:
- Fixed performance degradations
- Fixed dolby atmos issues
- Update props from stock
- Reset FOD blobs to DITING_V14.0.10.0.TLFCNXM
- Dont allow to run foreground process con CPU7
Notes
• Gapps are included
• FOD Not working on gtx8_spi touch screen
• Remebering, Don't report bugs without logs.
By @TeamMEX_XDA
Donate PayPal
¡New build available!
#DerpFest | #Official#diting
Device:Xiaomi 12T Pro | K50 Ultra
MD5SUM:166b3c96ba79207e8e2295621661c3aa
Build Date:2023-11-22
Downloads:
Link |
Changelog:
- FOD issue should be fixed now
- fixed battery styles
- now fod is called again biometrics and not pixel imprint
- fixed some crashed on derpspace (general is still empty)
- Sync with last derp source
Notes
• Gapps are included
• Fod not working on gtx8_spi devices
• Remebering, Don't report bugs without logs.
Know bugs:
- Screen record
- Fod on gtx8_spi
- sepolicy permissive (not a bug but u know some call it as bug)
By @TeamMEX_XDA
Donate PayPal