Forum: Cfengine Help
Subject: Re: latest cf-monitord memor usage
Author: matter
Link to topic: https://cfengine.com/forum/read.php?3,18826,18943#msg-18943
I am absolutely sure the maxdata will work, I have been down that road. A good
way to tell it is actually compiled into the code is with the svmon command.
For example:
Get the PID of the cfengine process
% ps -ef | grep cf-execd | grep -v grep
root 29450 1 0 Oct 26 - 0:07 /var/cfengine/bin/cf-execd
Check out the memory usage of that PID
% svmon -P 29450
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
29450 cf-execd 10042 5477 1349 11530 N Y N
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
0 0 work kernel segment s 5998 5471 1314 7310
c819 d work shared library text s 2554 0 35 3580
660c 1 clnt code,/dev/cfenginelv:8206 s 850 0 - -
1ea7 3 work working storage s 526 0 0 526
dcdf f work shared library data s 65 0 0 65
4aec 2 work process private s 36 2 0 36
bb31 - work s 13 4 0 13
d35c 5 work working storage s 0 0 0 0
da3d 4 work working storage s 0 0 0 0
428e 7 work working storage s 0 0 0 0
41ee a work working storage s 0 0 0 0
c159 8 work working storage s 0 0 0 0
56ef 6 work working storage s 0 0 0 0
e41 9 work working storage s 0 0 0 0
You see all those "work working storage" lines? That means the maxdata is doing
it. Otherwise you would only see a single segment, not multiples. svmon is
pretty cool, show many useful memory usage facts. On this client, cf-execd is
not using 16MB as page size (16MB=N), so it would be using the default 4k page
size. So Inuse of 10,042 pages @ 4k per page = 40168k or about 40m.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine