maxim-saplin / CrossPlatformDiskTest

Windows, macOS and Android storage (HDD, SSD, RAM) speed testing/performance benchmarking app
https://maxim-saplin.github.io/cpdt_results/
MIT License
531 stars 35 forks source link

Test file not get deleted after test completion. #6

Closed Dark-Cod3r closed 4 years ago

Dark-Cod3r commented 4 years ago

Hi. I am not sure if its expected behavior or not but everytime we run a test, at the end of the test it wont delete test file hence filling out space. Check the below screenshot, i ran test 4 times with 1 GB file size... Hope you will look into this issue. Thank You Screenshot_2020-02-05-12-19-11-505_com google android diskusage

maxim-saplin commented 4 years ago

Could you please share few details.

  1. Android version
  2. App version
  3. Installed from GPlay?
  4. Phone model
  5. Did the tests succeed? Didn't the app crash?

Test file can be left undeleted if the app crashes, thoug consequent test run will rewrite the test file and delete it. Also the file is all the time eith the same name and it doesn't make sense that 4 test runs can produce 4 test files.

Could you please check App Info for CPDT and see what Storage shows?

Screenshot_20200205-105636_Settings Screenshot_20200205-105639_Settings

Dark-Cod3r commented 4 years ago

Hi. Kindly check these below screenshots for android version and app info. Yes, all 4 times test completed successfully.. and i downloaded app from Gplay. Screenshot_2020-02-05-13-08-32-753_com android settings Screenshot_2020-02-05-13-08-05-347_com miui securitycenter Screenshot_2020-02-05-13-08-01-948_com miui securitycenter

Dark-Cod3r commented 4 years ago

Here. Check this.. i ran a test again and it completed successfully , but again as it says file deleted but it didnt (size increase from 4 to 5GB). Screenshot_2020-02-05-13-13-59-006_com Saplin CPDT Screenshot_2020-02-05-13-14-13-811_com miui securitycenter

maxim-saplin commented 4 years ago

Thanks!

I assume you picked option [2] /storage/emulated/0. It'd be great if you checked apps folder via File Explorer (stock app should be fine) at "Internal Storage -> Android -> Data -> com.Saplin.CPDT" and see if there're any files.

Besides, any chance you have a custom ROM with no "Android System WebView" app installed?

Also, could you please remove the app and try the one from APK? https://github.com/maxim-saplin/CrossPlatformDiskTest/releases/download/2.3.1/com.Saplin.CPDT.apk

Dark-Cod3r commented 4 years ago

Hi. That folder location is empty. Also one more thing i notice is even after uninstalling app, data is still present (cause free space is still same). Means it consuming storage space but not freeing it up even after uninstalling. Yes, ROM has webview (using chrome for webview render). I did try your given apk, same issue. Screenshot_2020-02-05-13-31-07-186_com android settings Screenshot_2020-02-05-13-32-10-758_com mixplorer Screenshot_2020-02-05-13-43-21-951_com miui securitycenter

Dark-Cod3r commented 4 years ago

Here.. notice system data and apps data space changes. Data is still present somewhere in it but its not showing up (probably hidden or something)... Screenshot_2020-02-05-13-49-13-209_com google android diskusage Screenshot_2020-02-05-13-50-22-194_com google android diskusage

Screenshot_2020-02-05-13-47-04-581_com google android diskusage Screenshot_2020-02-05-13-50-15-736_com google android diskusage

maxim-saplin commented 4 years ago

MIUI had a nice disk cleanup util in Settings or Security app. Under Deep Cleaning there was a section listing large files - can you check it?

Dark-Cod3r commented 4 years ago

yeah, i did tried that cleanup but it didnt detect that file. so i rebooted my phone and all storage space back to normal. (now 20+GB free space).. so then i tried another thing, i ran another test, after successful completion i checked and and its occupying 1GB(even though app says file deleted successfully) , so i rebooted and all storage space back to normal.
So to completely remove all test data file of this app i need to reboot to fix that (this only specific to CPDT app). other apps (like A1 SD bench dont have this issue). So probably it has something to do with the way CPDT delete test file.. also i am on f2fs file system (not sure if this has something to do with it)...

maxim-saplin commented 4 years ago

From your description I can imply that file-system metadata somehow doesn't get updated, when the file is created the free space is decreased while when it is deleted the free space isn't clocked back, After the reboot free space gets re-conciliated. There might be some workaround that CPDT might apply to force metadata updates. Though given no actual space is lost and the file is deleted I wouldn't consider the case worth of further investigation. I doubt there're many people facing same issue (and using custom ROM with file system tweaks) and the workround is unlikely to be easy and not affecting the majority of users (if e.g. I somehow force file metadata updates on each write that can affect the measured figures significantly).

Anyways, thanks for the issue and assistance!

Dark-Cod3r commented 4 years ago

Right, Got it. Thanks for your assistance too.. 👍