WFM
On 05/23/2011 08:04 AM, Ryan O'Hara wrote:
>
> I'll ACK this on the condition that Steve has no objections.
>
> Ryan
>
> On Wed, May 18, 2011 at 03:29:19PM +0200, Jerome Flesch wrote:
>> ---
>> configure.ac | 9 +++++++++
>> lib/util.h | 8 +++++++-
>> 2 files changed, 16 insertions(+), 1 deletions(-)
>>
>> diff --git a/configure.ac b/configure.ac
>> index d5f7812..6987f37 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -173,6 +173,10 @@ AC_ARG_ENABLE([coverage],
>> [ --enable-coverage : coverage analysis of the codebase. ],
>> [ default="no" ])
>>
>> +AC_ARG_ENABLE([small-memory-footprint],
>> + [ --enable-small-memory-footprint : Use small message queues and small
>> messages sizes. ],
>> + [ default="no" ])
>> +
>> AC_ARG_WITH([initddir],
>> [ --with-initddir=DIR : path to init script directory. ],
>> [ INITDDIR="$withval" ],
>> @@ -303,6 +307,11 @@ else
>> COVERAGE_LDFLAGS=""
>> fi
>>
>> +if test "x${enable_small_memory_footprint}" = xyes ; then
>> + AC_DEFINE_UNQUOTED([HAVE_SMALL_MEMORY_FOOTPRINT], 1, [have
>> small_memory_footprint])
>> + PACKAGE_FEATURES="$PACKAGE_FEATURES small-memory-footprint"
>> +fi
>> +
>> if test "x${enable_fatal_warnings}" = xyes && \
>> cc_supports_flag -Werror ; then
>> AC_MSG_NOTICE([Enabling Fatal Warnings (-Werror)])
>> diff --git a/lib/util.h b/lib/util.h
>> index 816062e..9a59b0b 100644
>> --- a/lib/util.h
>> +++ b/lib/util.h
>> @@ -41,6 +41,7 @@
>> #include <sys/poll.h>
>> #include <sys/socket.h>
>>
>> +#include <config.h>
>>
>> struct saVersionDatabase {
>> int versionCount;
>> @@ -54,9 +55,15 @@ saVersionVerify (
>>
>> SaTimeT clustTimeNow(void);
>>
>> +#ifdef HAVE_SMALL_MEMORY_FOOTPRINT
>> +#define IPC_REQUEST_SIZE 1024*64
>> +#define IPC_RESPONSE_SIZE 1024*64
>> +#define IPC_DISPATCH_SIZE 1024*64
>> +#else
>> #define IPC_REQUEST_SIZE 8192*128
>> #define IPC_RESPONSE_SIZE 8192*128
>> #define IPC_DISPATCH_SIZE 8192*128
>> +#endif
>>
>> static inline SaAisErrorT hdb_error_to_sa (int res) \
>> { \
>> @@ -73,5 +80,4 @@ static inline SaAisErrorT hdb_error_to_sa (int res)
>> \
>> } \
>> }
>>
>> -
>> #endif /* AIS_UTIL_H_DEFINED */
>> --
>> 1.7.4.4
>>
>> _______________________________________________
>> Openais mailing list
>> [email protected]
>> https://lists.linux-foundation.org/mailman/listinfo/openais
> _______________________________________________
> Openais mailing list
> [email protected]
> https://lists.linux-foundation.org/mailman/listinfo/openais
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais