[pve-devel] pvestatd memory detection is too low

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Fri Oct 26 14:39:39 CEST 2012


Another idea could be to get memory consumption after two circles and 
restart if memory raises by 10%.

But at all no Daemon should restart automatically leaks must be found 
and removed.

Stefan
Am 26.10.2012 14:35, schrieb Alexandre DERUMIER:
> I agree too,
> an option could be fine . (/etc/default/pvestatd ?)
>
>
> ----- Mail original -----
>
> De: "Michael Rasmussen" <mir at datanom.net>
> À: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag>, pve-devel at pve.proxmox.com
> Envoyé: Vendredi 26 Octobre 2012 13:33:21
> Objet: Re: [pve-devel] pvestatd memory detection is too low
>
> Or maybe make it a configurable option? Not everybody has the same needs.
>
>
> Stefan Priebe - Profihost AG <s.priebe at profihost.ag> wrote:
>
> Hello,
>
> my memory consumption of pvestatd seems to be constant now but it is at
> 47MB. So the limit with 35MB seems to be too small.
>
> I would suggest the following fix.
>
> Stefan
>
> commit 047101ff8d05432b8bd67aba8074bd110a94d5a2
> Author: Stefan Priebe <s.priebe at profihost.ag>
> Date:   Fri Oct 26 13:08:49 2012 +0200
>
> bump memory usage info to 100MB for pvestatd
>
> diff --git a/bin/pvestatd b/bin/pvestatd
> index 5513c85..c3a609a 100755
> --- a/bin/pvestatd
> +++ b/bin/pvestatd
> @@ -382,7 +382,7 @@ for (;;) { # forever
>
> my $mem = PVE::ProcFSTools::read_memory_usage();
>
> -       if ($mem->{resident} > (35*1024*1024)) {
> +       if ($mem->{resident} > (100*1024*1024)) {
> syslog ('info', "restarting server after $cycle cycles to ".
> "reduce memory usage (free
> $mem->{resident} bytes)");
> restart_server ();
>
>
>
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>
> !DSPAM:508a728d279601207974136!
>
>
>
>
>



More information about the pve-devel mailing list