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.
Reviewed: https:/ /review. opendev. org/710250 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=69462315bc8 416bd02ebd6085f 0cfc141cfd8877
Committed: https:/
Submitter: Zuul
Branch: master
commit 69462315bc8416b d02ebd6085f0cfc 141cfd8877
Author: Gorka Eguileor <email address hidden>
Date: Thu Feb 27 14:04:13 2020 +0100
ChunkedBack upDriver: 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 2ae1cf82b698fb2 7285fbef13a
Change-Id: I942d9d8b397623