Re: per-worker-thread counter question

2011-07-02 Thread Neil McKee
/28/2011 04:57 AM, Neil McKee wrote: Hi, Here's an easy question for someone who knows their way around... I want to maintain a new global counter, but for performance reasons I am reluctant to use a mutex or atomic_increment to update it. I would rather maintain a separate counter

Re: Module External Configuration

2011-06-20 Thread Neil McKee
In the mod-sflow implementation I have one thread responsible for reading in new configuration as it changes and writing it to a shared-memory area where the worker-processes/threads can pick it up whenever it changes. I don't know if that is the best way or not, but it's one data point for

Re: mod_sflow

2011-01-10 Thread Neil McKee
back. 4. make sure any critical-section logging is with APLOG_DEBUG. http://code.google.com/p/mod-sflow/source/browse/trunk/mod_sflow.c?r=17 Neil On Jan 9, 2011, at 11:03 PM, Neil McKee wrote: Great feedback, thanks. I have several questions, if you don't mind... 1. What is the most

Re: mod_sflow

2011-01-10 Thread Neil McKee
On Jan 10, 2011, at 2:03 PM, Ben Noordhuis wrote: On Mon, Jan 10, 2011 at 22:22, Neil McKee neil.mc...@inmon.com wrote: I pushed changes to: 1. use PIPE_BUF from limits.h (if available). 2. use apr_file_pipe_timeout_set(pipe, 0) on both ends -- just to make absolutely certain

Re: mod_sflow

2011-01-09 Thread Neil McKee
is required. Do I need to bother with that, or are those platforms obsolete anyway? I apologize if any of these are FAQs / RTFMs. I'm new to APR. Neil On Jan 9, 2011, at 12:17 PM, Ben Noordhuis wrote: On Sat, Jan 8, 2011 at 00:06, Neil McKee neil.mc...@inmon.com wrote: This module is designed