Comment 10 for bug 1865011

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to cinder (stable/rocky)

Reviewed: https://review.opendev.org/711481
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=20b6b7477daae43907f38337aef15a5f47a92283
Submitter: Zuul
Branch: stable/rocky

commit 20b6b7477daae43907f38337aef15a5f47a92283
Author: Gorka Eguileor <email address hidden>
Date: Thu Feb 27 14:04:13 2020 +0100

    ChunkedBackupDriver: Freeing memory on restore

    When restoring many backups, the backup service uses a lot of memory and
    when we do many concurrent restores the backup service ends up getting
    killed becase the system runs out of memory.

    This patch reduces the ref count to the data as soon as possible to let
    Python garbage collect it instead of hogging it for the whole chunk
    restore.

    Related-Bug: #1865011
    Change-Id: I942d9d8b3976232ae1cf82b698fb27285fbef13a
    (cherry picked from commit 69462315bc8416bd02ebd6085f0cfc141cfd8877)
    (cherry picked from commit 94db15dd3b86c7da92ceaa4b8c2d948b2b30c65b)
    (cherry picked from commit f4aa81424fff8718bd432cc5a7aae357fe028023)