* [Ocfs2-devel] [PATCH 1/1] Change default value for o2net and heartbeat.
@ 2008-01-08 18:55 Tao Ma
2008-01-09 9:43 ` Sunil Mushran
2008-01-09 11:09 ` Mark Fasheh
0 siblings, 2 replies; 4+ messages in thread
From: Tao Ma @ 2008-01-08 18:55 UTC (permalink / raw)
To: ocfs2-devel
The default value for o2net and heartbeat have been changed
in the newest o2cb configure(ocfs2-tools).
So change it also in kernel.
Signed-off-by: Tao Ma <tao.ma@oracle.com>
---
fs/ocfs2/cluster/heartbeat.h | 2 +-
fs/ocfs2/cluster/tcp.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/ocfs2/cluster/heartbeat.h b/fs/ocfs2/cluster/heartbeat.h
index 35397dd..e511339 100644
--- a/fs/ocfs2/cluster/heartbeat.h
+++ b/fs/ocfs2/cluster/heartbeat.h
@@ -35,7 +35,7 @@
#define O2HB_LIVE_THRESHOLD 2
/* number of equal samples to be seen as dead */
extern unsigned int o2hb_dead_threshold;
-#define O2HB_DEFAULT_DEAD_THRESHOLD 7
+#define O2HB_DEFAULT_DEAD_THRESHOLD 31
/* Otherwise MAX_WRITE_TIMEOUT will be zero... */
#define O2HB_MIN_DEAD_THRESHOLD 2
#define O2HB_MAX_WRITE_TIMEOUT_MS (O2HB_REGION_TIMEOUT_MS * (o2hb_dead_threshold - 1))
diff --git a/fs/ocfs2/cluster/tcp.h b/fs/ocfs2/cluster/tcp.h
index da880fc..f36f66a 100644
--- a/fs/ocfs2/cluster/tcp.h
+++ b/fs/ocfs2/cluster/tcp.h
@@ -60,8 +60,8 @@ typedef void (o2net_post_msg_handler_func)(int status, void *data,
/* same as hb delay, we're waiting for another node to recognize our hb */
#define O2NET_RECONNECT_DELAY_MS_DEFAULT 2000
-#define O2NET_KEEPALIVE_DELAY_MS_DEFAULT 5000
-#define O2NET_IDLE_TIMEOUT_MS_DEFAULT 10000
+#define O2NET_KEEPALIVE_DELAY_MS_DEFAULT 2000
+#define O2NET_IDLE_TIMEOUT_MS_DEFAULT 30000
/* TODO: figure this out.... */
--
1.5.3.GIT
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Ocfs2-devel] [PATCH 1/1] Change default value for o2net and heartbeat.
2008-01-08 18:55 [Ocfs2-devel] [PATCH 1/1] Change default value for o2net and heartbeat Tao Ma
@ 2008-01-09 9:43 ` Sunil Mushran
2008-01-09 11:09 ` Mark Fasheh
1 sibling, 0 replies; 4+ messages in thread
From: Sunil Mushran @ 2008-01-09 9:43 UTC (permalink / raw)
To: ocfs2-devel
Thanks. We need this for 2.6.25.
Tao Ma wrote:
> The default value for o2net and heartbeat have been changed
> in the newest o2cb configure(ocfs2-tools).
> So change it also in kernel.
>
> Signed-off-by: Tao Ma <tao.ma@oracle.com>
> ---
> fs/ocfs2/cluster/heartbeat.h | 2 +-
> fs/ocfs2/cluster/tcp.h | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/fs/ocfs2/cluster/heartbeat.h b/fs/ocfs2/cluster/heartbeat.h
> index 35397dd..e511339 100644
> --- a/fs/ocfs2/cluster/heartbeat.h
> +++ b/fs/ocfs2/cluster/heartbeat.h
> @@ -35,7 +35,7 @@
> #define O2HB_LIVE_THRESHOLD 2
> /* number of equal samples to be seen as dead */
> extern unsigned int o2hb_dead_threshold;
> -#define O2HB_DEFAULT_DEAD_THRESHOLD 7
> +#define O2HB_DEFAULT_DEAD_THRESHOLD 31
> /* Otherwise MAX_WRITE_TIMEOUT will be zero... */
> #define O2HB_MIN_DEAD_THRESHOLD 2
> #define O2HB_MAX_WRITE_TIMEOUT_MS (O2HB_REGION_TIMEOUT_MS * (o2hb_dead_threshold - 1))
> diff --git a/fs/ocfs2/cluster/tcp.h b/fs/ocfs2/cluster/tcp.h
> index da880fc..f36f66a 100644
> --- a/fs/ocfs2/cluster/tcp.h
> +++ b/fs/ocfs2/cluster/tcp.h
> @@ -60,8 +60,8 @@ typedef void (o2net_post_msg_handler_func)(int status, void *data,
> /* same as hb delay, we're waiting for another node to recognize our hb */
> #define O2NET_RECONNECT_DELAY_MS_DEFAULT 2000
>
> -#define O2NET_KEEPALIVE_DELAY_MS_DEFAULT 5000
> -#define O2NET_IDLE_TIMEOUT_MS_DEFAULT 10000
> +#define O2NET_KEEPALIVE_DELAY_MS_DEFAULT 2000
> +#define O2NET_IDLE_TIMEOUT_MS_DEFAULT 30000
>
>
> /* TODO: figure this out.... */
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Ocfs2-devel] [PATCH 1/1] Change default value for o2net and heartbeat.
2008-01-08 18:55 [Ocfs2-devel] [PATCH 1/1] Change default value for o2net and heartbeat Tao Ma
2008-01-09 9:43 ` Sunil Mushran
@ 2008-01-09 11:09 ` Mark Fasheh
2008-01-09 16:50 ` tao.ma
1 sibling, 1 reply; 4+ messages in thread
From: Mark Fasheh @ 2008-01-09 11:09 UTC (permalink / raw)
To: ocfs2-devel
On Wed, Jan 09, 2008 at 10:54:32AM +0800, tao.ma wrote:
> The default value for o2net and heartbeat have been changed
> in the newest o2cb configure(ocfs2-tools).
> So change it also in kernel.
Thanks Tao, but this is already in Ocfs2.git:
http://git.kernel.org/?p=linux/kernel/git/mfasheh/ocfs2.git;a=commitdiff;h=a4372b59334d2e7d0ef89eafb8af8d0eedfcf984
--Mark
--
Mark Fasheh
Principal Software Developer, Oracle
mark.fasheh@oracle.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-01-09 16:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-08 18:55 [Ocfs2-devel] [PATCH 1/1] Change default value for o2net and heartbeat Tao Ma
2008-01-09 9:43 ` Sunil Mushran
2008-01-09 11:09 ` Mark Fasheh
2008-01-09 16:50 ` tao.ma
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.