[pve-devel] pvestatd memory detection is too low
Michael Rasmussen
mir at datanom.net
Fri Oct 26 13:33:21 CEST 2012
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!
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20121026/9c1335ea/attachment.htm>
More information about the pve-devel
mailing list