← Back to team overview

touch-packages team mailing list archive

[Bug 1307413] Re: apport-unpack requires too much main memory to run

 

After taking a long look at the code, it appears that
ProblemReport.load() method brings everything from the report in memory.
While this is acceptable for normal crashes, it becomes particularly
difficult for kernel crash dumps that are often multi Gb.

Since Raring, kernel crash dumps are no longer stored in the apport
report so this is not an issue. But for all kernel crashes happening on
Precise, this _is_ a problem.

My proposal is to add a ProblemReport.extract() method that will read
the report and write the binary content to disk.

A first pass is done by loading the report with binary=False. This will
NOT load the binary elements of the report.  Those will be identified
while writing the other elements of the report and then used in
conjunction with ProblemReport.extract to write only those binary
content directly to a file.

I will propose a merge for that shortly

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1307413

Title:
  apport-unpack requires too much main memory to run

Status in apport package in Ubuntu:
  In Progress

Bug description:
  when running apport-unpack on large apport reports (linux-image kernel
  dumps is a good example), it requires an enormous amount of main
  memory to run.

  An example is a 1.3Gb apport report that runs for more than 24 hours
  with more than 4Gb of RSS.

  The command should requires less memory to extract those big reports.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1307413/+subscriptions