Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-3649

Out of memory when creating Mender Artifact with large input file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Days in progress:
      0

      Description

      File used as input:

      -rw-r--r--   1 mirzak mirzak  30G  8 jun 11.16 file.dat
      

      This file only contained around 11GB of actual data (sparse)

      $ ls -ls file.dat 
      10931208 -rw-r--r-- 1 mirzak mirzak 32212254720  8 jun 11.16 file.dat
      

      I got this error on my machine, which has around 8GB of available memory in /tmp (tmpfs)

      $ mender-artifact write rootfs-image -n test -t raspberrypi3 -f file.dat 
      writer: error writing data files: Payload: can not write tar temp data header: &{file.dat 0 0001-01-01 00:00:00 +0000 UTC [97 56 100 98 57 50 101 50 97 50 97 54 97 97 50 97 48 102 53 49 57 48 48 56 98 98 51 52 97 52 53 101 56 102 51 52 97 97 102 55 101 97 52 101 52 52 100 100 54 52 99 98 100 50 98 55 50 52 48 98 49 50 102 51]}: writer: can not tar header: write /tmp/data491757137: no space left on device
      

      Using:

      $ mender-artifact -version
      mender-artifact version 3.3.0
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mirzak Mirza Krak
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel