Commit c1614c8c authored by Dietmar Maurer's avatar Dietmar Maurer

pvestatd: run at lease 10 cycles

Comment from Stefan: I've seen that it takes up to 10 cycles to have a
constant memory size. I think this is due to the fact that perls garbage
collection is not running every after each cycle.
parent 6d00167c
...@@ -384,7 +384,7 @@ for (;;) { # forever ...@@ -384,7 +384,7 @@ for (;;) { # forever
my $mem = PVE::ProcFSTools::read_memory_usage(); my $mem = PVE::ProcFSTools::read_memory_usage();
if (!defined($initial_memory_usage)) { if (!defined($initial_memory_usage) || ($cycle < 10)) {
$initial_memory_usage = $mem->{resident}; $initial_memory_usage = $mem->{resident};
} else { } else {
my $diff = $mem->{resident} - $initial_memory_usage; my $diff = $mem->{resident} - $initial_memory_usage;
......
pve-manager (2.2-26) unstable; urgency=low
* pvestatd: fix server reload (run at least 10 cycles)
-- Proxmox Support Team <support@proxmox.com> Mon, 29 Oct 2012 13:08:20 +0100
pve-manager (2.2-25) unstable; urgency=low pve-manager (2.2-25) unstable; urgency=low
* pvestatd: fix server reload (due to memory leak) * pvestatd: fix server reload (due to memory leak)
......
...@@ -2,7 +2,7 @@ RELEASE=2.2 ...@@ -2,7 +2,7 @@ RELEASE=2.2
VERSION=2.2 VERSION=2.2
PACKAGE=pve-manager PACKAGE=pve-manager
PACKAGERELEASE=25 PACKAGERELEASE=26
BINDIR=${DESTDIR}/usr/bin BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5 PERLLIBDIR=${DESTDIR}/usr/share/perl5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment