Re: [PATCH] Set the size of the blackbox to the size on flatiron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reviewed-by: Steven Dake <sdake@xxxxxxxxxx>

On 10/21/2011 04:54 PM, Angus Salkeld wrote:
> Signed-off-by: Angus Salkeld <asalkeld@xxxxxxxxxx>
> ---
>  TODO          |    5 ++---
>  exec/logsys.c |    7 ++++++-
>  2 files changed, 8 insertions(+), 4 deletions(-)
> 
> diff --git a/TODO b/TODO
> index cef45dc..6b6a928 100644
> --- a/TODO
> +++ b/TODO
> @@ -18,9 +18,8 @@
>  7. remove hardcoded values in totempg.c check_q_level
>  8. check max message size restrictions
>  9. investigate if https://github.com/asalkeld/libqb/issues/1 is still an issue.
> -10. investigate proper sizing for new blackbox (exec/logsys.c:311)
> -11. allow a cluster name to autogenerate a mcastaddr
> -12. ring status change via corosync-notifyd
> +10. allow a cluster name to autogenerate a mcastaddr
> +11. ring status change via corosync-notifyd
>  
>  --------------------------------------
>   Current priority list for Needle 2.1
> diff --git a/exec/logsys.c b/exec/logsys.c
> index 4fd9cd4..d92a2e3 100644
> --- a/exec/logsys.c
> +++ b/exec/logsys.c
> @@ -75,6 +75,11 @@ static struct syslog_names prioritynames[] =
>  };
>  
>  #define MAX_FILES_PER_SUBSYS 16
> +#ifdef HAVE_SMALL_MEMORY_FOOTPRINT
> +#define IPC_LOGSYS_SIZE			8192*64
> +#else
> +#define IPC_LOGSYS_SIZE			8192*1024
> +#endif
>  
>  /*
>   * need unlogical order to preserve 64bit alignment
> @@ -285,7 +290,7 @@ int _logsys_system_setup(
>  
>  	qb_log_filter_ctl(QB_LOG_BLACKBOX, QB_LOG_FILTER_ADD,
>  			  QB_LOG_FILTER_FILE, "*", LOG_TRACE);
> -	qb_log_ctl(QB_LOG_BLACKBOX, QB_LOG_CONF_SIZE, 4096);
> +	qb_log_ctl(QB_LOG_BLACKBOX, QB_LOG_CONF_SIZE, IPC_LOGSYS_SIZE);
>  	qb_log_ctl(QB_LOG_BLACKBOX, QB_LOG_CONF_THREADED, QB_FALSE);
>  	qb_log_ctl(QB_LOG_BLACKBOX, QB_LOG_CONF_ENABLED, QB_TRUE);
>  

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux