-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
MemoryError when installing bundle #38
Comments
I fixed this by uninstalling unneeded packages (about 200-300MB deleted). Then I recreated the |
On Mon, 2015-11-09 at 05:57 -0800, Spaghetti-Cat wrote:
Is this RPi2 or RPi 1 ?
Did you verify the debs manually? As in are they really corrupt.
This is an interesting error. For apt-offline, I ensured that not It could very well be hit if it reads a file, which is big in size.
No. Swap cannot be compared to Real Mem. Not all processes can be
Yes. That is fine. Translations are something we don't support
I see your reply where you mentioned that the issue is now solved with I will close the bug now. But please re-open if you discover anything Ritesh Raj Sarraf |
Thanks for your quick reply.
RPi 2. I just wrote a fresh, stock Raspbian Jessie image. Then what I tried to do, but got the error, was upgrade from Jessie to Stretch/testing.
I didn't think about that. If I get the error again I will try this.
I didn't know some processes couldn't be swapped. I remember from
Possibly the "Mem - free" was lower, but point is that "-/+ buffers/cache" had plenty of free space. |
Looks like a zipfile bug that gets triggered in the way one does write(read()). Investigate and find best practice |
So, I've locally hit an OOM under UML.
and
1 GiB is enough and I don't like the fact that apt-offline is asking for more. Can some optimization be done ? |
Oh! Boy. This one is going to be a hard one to optimize.
This is on my host machine with 8 GiB or RAM and 20 GiB of SWAP. Here's cachestat
So there's not much to be done in apt-offline, if python may be leaking memory. |
My suspicion that tempfiles were eating precious memory is wrong. Because tempfiles are being unavailable for deletion because they are dynamically created/removed as and when accesses from the ZipFile handle.
|
Using v1.6.1:
sudo apt-offline set --install-packages vim tmux samba zsh redmine redmine-mysql apache2 --update --upgrade apt-offline.sig
Once I downloaded all the packages into the
bundle.zip
, I install it. It gets quite far but always breaks on the same point:I monitored the memory usage: I still have 900MB of RAM and 2GB unused swap right before the break. Also none of the mounted filesystems run out of space.
bundle.zip
doesn't seem to be that big: only 391MB. When I didapt-offline get --bundle
the only errors were with downloading "Translation" files, but I always ignore that and it doesn't pose any problems.PS: Many thanks for creating this very useful program.
The text was updated successfully, but these errors were encountered: