On Mon, 13 Aug 2007 13:15:42 +0200, Cami Sardinha wrote: >Short answer: No. Policyd pre-allocates all required memory and it does >not increase. >Long answer: Yes, you can modify the amount of policy threads that will >be accepted by modifying policyd.h > >.... >/* Miscellaneous constants */ >#define LISTENQ 1023 /* 2nd argument to listen() */ >#define MAXLINE 1023 /* max text line length */ >#define BUFFSIZE 8191 /* buffer size for reads and writes */ >#define BUFSIZE 4095 >#ifndef MAXFDS > #define MAXFDS 1023 /* max file descriptors */ >#endif >.... > >Change at your own peril, if it breaks, you get to keep both pieces. ;) >
;) Cool - thanks for the pointer. In fact MAXFDS is set to 4096 in the Makefile. I've altered it to 1024 and policyd now only uses 12456kB. 1024 should be more than enough slots for my use but we'll see... Any particular reason it was increased to 4096 in the Makefile? Did someone find 1023 wasn't enough or was it to be 'on the safe side'? Thanks, Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ policyd-users mailing list policyd-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/policyd-users