Welcome to the Pacman bug collection. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproduceable test case whenever possible.
Tasklist

FS#8155 - pacman crashes in 64MB environment

Attached to Project: Pacman
Opened by Tobias Powalowski (tpowa) - Friday, 28 September 2007, 12:40 GMT-4
Last edited by Dan McGee (toofishes) - Wednesday, 05 December 2007, 08:55 GMT-4
Task Type Bug Report
Category General
Status Assigned
Assigned To Aaron Griffin (phrakture)
Dan McGee (toofishes)
Operating System All
Severity Medium
Priority Normal
Reported Version 3.0.6
Due in Version 3.2
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

While trying to install with 64MB RAM.
pacman installation of packages is just stopping in the middle of installation and exits.
dmesg bumps up a huge amount of memory stuff.

Adding additional swap to RAM doesn't help either.
I don't know if pacman just has bad memory usage at this point.
Installing packages one after the other is working so something in memory usage seems to trigger this.
Perhaps you ahve an idea why it doesn't work.
I used pacman-3.0.6.
This task depends upon

Comment by Aaron Griffin (phrakture) - Friday, 28 September 2007, 12:47 GMT-4
Could you provide us with:

a) the actual output you're talking about (dmesg)
b) the --debug output
c) a way to replicate this bug

Thanks
Comment by Tobias Powalowski (tpowa) - Friday, 28 September 2007, 13:10 GMT-4
boot with mem=64M and try to install all core packages to a root directory
Comment by Aaron Griffin (phrakture) - Friday, 28 September 2007, 13:14 GMT-4
Thanks, adding it to my list of things to look into this weekend.
Comment by Tobias Powalowski (tpowa) - Friday, 28 September 2007, 13:19 GMT-4
additional info isntall environmnt size is 20MB + 8 mb ramdisk + 1.7 mb kernel.
so 30 megs for pacman running available.
Comment by Dan McGee (toofishes) - Wednesday, 03 October 2007, 23:47 GMT-4
When I was testing this scenario with pacman 3.1, I never saw it using more than 23 or so MB of memory. There could have been some changes since the 3.0.X split that account for this, but I'm not sure. I haven't tested it in a restricted memory environment however.
Comment by Tobias Powalowski (tpowa) - Thursday, 04 October 2007, 01:43 GMT-4
i think it depends on how many packages are installed at once.
Comment by Gerhard Brauer (GerBra) - Sunday, 07 October 2007, 10:24 GMT-4
For your info, I've done at the moment a test installation on a VM with only 48MB RAM. Install with the new ISO and lowmem initrd works like a charm.
Also never have a pacman problem, neither during installation nor when installing for ex. xorg-server and it's dependencies.
During this operation the system never use swap space. Maybe only a problem if one have low memory (X running, etc) during pacman usage.
Comment by Tobias Powalowski (tpowa) - Sunday, 07 October 2007, 15:43 GMT-4
how many packages did you install?
Comment by Gerhard Brauer (GerBra) - Sunday, 07 October 2007, 17:11 GMT-4
Sorry, at the moment i could not say it exactly, but
- during installation base+support (0 byte swap)
- xorg-server, xterm (and deps) (0 byte swap)
- xfce4-group (and deps) (about 25MB Swap, xorg+icewm running)
Maybe about 15-20 packages per run.
If it make a sense i could try tomorrow for ex. a complete install of kde.
Comment by Tobias Powalowski (tpowa) - Monday, 08 October 2007, 01:05 GMT-4
i tested only with all packages selected at once.
Comment by Gerhard Brauer (GerBra) - Monday, 08 October 2007, 07:51 GMT-4
I've tested now with:
pacman -Sv kde gnome (would work dep check etc., i don't do the real install)

Then something one would never do in real life:
pacman -Sl extra | cut -d " " -f1 | xargs pacman -Sv
and
pacman -Sl extra | cut -d " " -f1 | xargs pacman -Sdfv
So pacman check for dependencies conflicts and inter-conflicts for about ~2300 packages.
Cause there ARE conflicts, above never got installed.
But i think these are the actions were pacman needs most resources and oom-killer would come.
I've never hat more swap than ~25MB, pacman itself uses about 10-15MB VIRT.
Comment by Tobias Powalowski (tpowa) - Monday, 08 October 2007, 09:28 GMT-4
the oom kill doesnt happen during intitialisation it comes while installing packages, suddenly
Comment by Aaron Griffin (phrakture) - Monday, 08 October 2007, 13:12 GMT-4
tpowa: if you want our tests to be the same, can you provide us with the EXACT list of packages? I was under the assumption the installer simply did a "pacman -S base" because that makes more sense to me - if it does not, can you provide us with a list?
Comment by Tobias Powalowski (tpowa) - Tuesday, 09 October 2007, 01:10 GMT-4
it installs everything from packages.txt, because i selected all packages.
it also happens with quickinst so it's nothing setup specific.
quickinst only installs base
Comment by Aaron Griffin (phrakture) - Tuesday, 09 October 2007, 11:37 GMT-4
tpowa, can you try with pacman.static? I'm curious if this is loaded libraries causing the excess memory overhead.
Comment by Tobias Powalowski (tpowa) - Saturday, 20 October 2007, 11:18 GMT-4
pacman.static also fails, i used no swap.
Comment by Dan McGee (toofishes) - Friday, 18 January 2008, 21:44 GMT-4
This should be fixed by our master (3.2 development) branch, as we just made a lot of changes related to backend memory allocation (static to dynamic) as well reducing duplication of entire pmpkg_t structs in memory (90% of these dups were unnecessary).

tpowa- if i give you a pacman.static from our development tree, could you test it out? It should have no problem even installing all of [core] (base, base-devel, etc. all at once).
Comment by Dan McGee (toofishes) - Wednesday, 23 January 2008, 23:23 GMT-4
I think we can safely say this should be fixed in 3.2. I blogged about it, actually, as massif changed a bit and I wanted to rediscuss it.

http://toofishes.net/blog/valgrind-330-and-new-massif/
Comment by Aaron Griffin (phrakture) - Thursday, 24 January 2008, 11:49 GMT-4
Woot, go Dan!
Comment by Tobias Powalowski (tpowa) - Thursday, 24 January 2008, 13:10 GMT-4
sounds pretty good, dan when will it be ready or is it backported to 3.1 branch?
new isos should come finally with 2.6.24 kernel and with this fix it would be so great.

greetings
tpowa
Comment by Dan McGee (toofishes) - Thursday, 24 January 2008, 14:22 GMT-4
Definitely NOT backportable. This is a huge change that needs a lot more testing to ensure we don't have any memory allocation issues.

Speaking of new ISOs, did you ever see the archiso scripts that Simo and I got working quite nicely?
http://archlinux.org/pipermail/arch-dev-public/2007-October/002616.html
http://projects.archlinux.org/git/?p=archiso.git;a=summary

Loading...