-
-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mtk rf
consumes too much RAM
#710
Comments
Seems like it's an issue with SMR on an external drive which I'm dumping this onto. I dumped everything but Then I split the userdata offset/length manually into two even parts and tried to dump them separately with If my hypothesis about the write cache is true, it's weird that it's stored in the process memory rather than in the kernel's write cache or in the NTFS-3G process (which the partition on the external HDD has, worth noting). Could you please introduce some write cache limit so Now gonna split the range into even smaller parts. Pretty meh. |
Now wut? I executed in a row:
And got:
Why is the last part smaller? The process has finished and the file is not growing anymore. And now I'm not sure if the first part is complete too, so gonna read it in two smaller parts all over again 🤕 |
Same again, now I have this issue with smaller parts too. Luckily, I have another HDD, a stupid one with no SMR (no even S.M.A.R.T., hehe (pun intended)), and dumped complete |
Sheesh, I was watching how this full |
it's because threading is used. Normally it should write directly to hdd/ssd and then free the memory. Not sure why it doesn't do that for you. |
Stale issue message |
I have a device with 64 GB of flash (Qin F21 Pro), and tried to dump the whole stock firmware. Luckily I noticed that when 56.8% were dumped already, the
python
process consumed ≈10 GB of RAM (RES+SWAP), so I killed it prematurely before it freezes my system completely (OOM killer tends to kill anything but such hogs, including crucial processes like dbus-daemon, so I don't trust it).I would suspect it just keeps a copy of everything dumped in RAM, but the amount is few times less, so it's kinda weird.
The text was updated successfully, but these errors were encountered: