Send Linux-ha-cvs mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linux-ha-cvs digest..."


Today's Topics:

   1. Linux-HA CVS: heartbeat by alan from 
      ([email protected])
   2. Linux-HA CVS: heartbeat by alan from 
      ([email protected])
   3. Linux-HA CVS: include by alan from 
      ([email protected])
   4. Linux-HA CVS: heartbeat by alan from 
      ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Thu,  2 Feb 2006 12:46:49 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: heartbeat by alan from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : alan
Host    : 
Project : linux-ha
Module  : heartbeat

Dir     : linux-ha/heartbeat


Modified Files:
        hb_api.c heartbeat.c 


Log Message:
Changed heartbeat's inbound IPC channels so that they're all unbuffered.
Although this decreases efficiency, it does improve realtime behavior.

===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/heartbeat/hb_api.c,v
retrieving revision 1.149
retrieving revision 1.150
diff -u -3 -r1.149 -r1.150
--- hb_api.c    31 Jan 2006 19:59:50 -0000      1.149
+++ hb_api.c    2 Feb 2006 19:46:48 -0000       1.150
@@ -1,4 +1,4 @@
-/* $Id: hb_api.c,v 1.149 2006/01/31 19:59:50 alan Exp $ */
+/* $Id: hb_api.c,v 1.150 2006/02/02 19:46:48 alan Exp $ */
 /*
  * hb_api: Server-side heartbeat API code
  *
@@ -1751,6 +1751,8 @@
                client->iscasual = 1;
        }
 
+       /* Encourage better realtime behavior by heartbeat */
+       client->chan->ops->set_recv_qlen(client->chan, 0);
 
        if ((cuid = ha_msg_value(msg, F_UID)) == NULL
        ||      (cgid = ha_msg_value(msg, F_GID)) == NULL
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/heartbeat/heartbeat.c,v
retrieving revision 1.488
retrieving revision 1.489
diff -u -3 -r1.488 -r1.489
--- heartbeat.c 2 Feb 2006 18:27:49 -0000       1.488
+++ heartbeat.c 2 Feb 2006 19:46:48 -0000       1.489
@@ -2,7 +2,7 @@
  * TODO:
  * 1) Man page update
  */
-/* $Id: heartbeat.c,v 1.488 2006/02/02 18:27:49 alan Exp $ */
+/* $Id: heartbeat.c,v 1.489 2006/02/02 19:46:48 alan Exp $ */
 /*
  * heartbeat: Linux-HA heartbeat code
  *
@@ -686,6 +686,8 @@
                cl_perror("cannot create FIFO ipc channel");
                return HA_FAIL;
        }
+       /* Encourage better real-time behavior */
+       fifochildipc[P_READFD]->ops->set_recv_qlen(fifochildipc[P_READFD], 0); 
        /* Fork FIFO process... */
        if (fifoproc < 0) {
                fifoproc = procinfo->nprocs;
@@ -1406,6 +1408,9 @@
                G_main_setdescription((GSource*)s, "write child");
 
                
+               /* Encourage better real-time behavior */
+               sysmedia[j]->rchan[P_READFD]->ops->set_recv_qlen
+               (       sysmedia[j]->rchan[P_READFD], 0); 
                /* Connect up the read child IPC channel... */
                s = G_main_add_IPC_Channel(PRI_CLUSTERMSG
                ,       sysmedia[j]->rchan[P_WRITEFD], FALSE
@@ -6068,6 +6073,10 @@
 
 /*
  * $Log: heartbeat.c,v $
+ * Revision 1.489  2006/02/02 19:46:48  alan
+ * Changed heartbeat's inbound IPC channels so that they're all unbuffered.
+ * Although this decreases efficiency, it does improve realtime behavior.
+ *
  * Revision 1.488  2006/02/02 18:27:49  alan
  * Fixed up a mistake in adding code to check timeouts.
  * An IPC channel in heartbeat wound up not getting a description,




------------------------------

Message: 2
Date: Thu,  2 Feb 2006 13:00:21 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: heartbeat by alan from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : alan
Host    : 
Project : linux-ha
Module  : heartbeat

Dir     : linux-ha/heartbeat


Modified Files:
        heartbeat.c 


Log Message:
Made a small correction to the last realtime behavior change.

===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/heartbeat/heartbeat.c,v
retrieving revision 1.489
retrieving revision 1.490
diff -u -3 -r1.489 -r1.490
--- heartbeat.c 2 Feb 2006 19:46:48 -0000       1.489
+++ heartbeat.c 2 Feb 2006 20:00:21 -0000       1.490
@@ -2,7 +2,7 @@
  * TODO:
  * 1) Man page update
  */
-/* $Id: heartbeat.c,v 1.489 2006/02/02 19:46:48 alan Exp $ */
+/* $Id: heartbeat.c,v 1.490 2006/02/02 20:00:21 alan Exp $ */
 /*
  * heartbeat: Linux-HA heartbeat code
  *
@@ -1408,13 +1408,13 @@
                G_main_setdescription((GSource*)s, "write child");
 
                
-               /* Encourage better real-time behavior */
-               sysmedia[j]->rchan[P_READFD]->ops->set_recv_qlen
-               (       sysmedia[j]->rchan[P_READFD], 0); 
                /* Connect up the read child IPC channel... */
                s = G_main_add_IPC_Channel(PRI_CLUSTERMSG
                ,       sysmedia[j]->rchan[P_WRITEFD], FALSE
                ,       read_child_dispatch, sysmedia+j, NULL);
+               /* Encourage better real-time behavior */
+               sysmedia[j]->rchan[P_WRITEFD]->ops->set_recv_qlen
+               (       sysmedia[j]->rchan[P_WRITEFD], 0); 
                G_main_setmaxdispatchdelay((GSource*)s, 50);
                G_main_setmaxdispatchtime((GSource*)s, 50);
                G_main_setdescription((GSource*)s, "read child");
@@ -6073,6 +6073,9 @@
 
 /*
  * $Log: heartbeat.c,v $
+ * Revision 1.490  2006/02/02 20:00:21  alan
+ * Made a small correction to the last realtime behavior change.
+ *
  * Revision 1.489  2006/02/02 19:46:48  alan
  * Changed heartbeat's inbound IPC channels so that they're all unbuffered.
  * Although this decreases efficiency, it does improve realtime behavior.




------------------------------

Message: 3
Date: Thu,  2 Feb 2006 13:58:56 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: include by alan from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : alan
Host    : 
Project : linux-ha
Module  : include

Dir     : linux-ha/include/clplumbing


Modified Files:
        Gmain_timeout.h 


Log Message:
Changed the priorities of a few of the realtime events in heartbeat.

===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/include/clplumbing/Gmain_timeout.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- Gmain_timeout.h     30 Jan 2006 18:41:59 -0000      1.5
+++ Gmain_timeout.h     2 Feb 2006 20:58:56 -0000       1.6
@@ -1,4 +1,4 @@
-/* $Id: Gmain_timeout.h,v 1.5 2006/01/30 18:41:59 alan Exp $ */
+/* $Id: Gmain_timeout.h,v 1.6 2006/02/02 20:58:56 alan Exp $ */
 #ifndef _CLPLUMBING_GMAIN_TIMEOUT_H
 #define _CLPLUMBING_GMAIN_TIMEOUT_H
 #include <glib.h>
@@ -42,6 +42,4 @@
 ,      GDestroyNotify  notify);
 
 void Gmain_timeout_remove(guint tag);
-void Gmain_timeout_setmaxdispatchtime(GSource* src, long dispatchms);
-void Gmain_timeout_setmaxdispatchdelay(GSource* src, long delayms);
 #endif




------------------------------

Message: 4
Date: Thu,  2 Feb 2006 13:58:57 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: heartbeat by alan from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : alan
Host    : 
Project : linux-ha
Module  : heartbeat

Dir     : linux-ha/heartbeat


Modified Files:
        heartbeat.c 


Log Message:
Changed the priorities of a few of the realtime events in heartbeat.

===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/heartbeat/heartbeat.c,v
retrieving revision 1.490
retrieving revision 1.491
diff -u -3 -r1.490 -r1.491
--- heartbeat.c 2 Feb 2006 20:00:21 -0000       1.490
+++ heartbeat.c 2 Feb 2006 20:58:56 -0000       1.491
@@ -2,7 +2,7 @@
  * TODO:
  * 1) Man page update
  */
-/* $Id: heartbeat.c,v 1.490 2006/02/02 20:00:21 alan Exp $ */
+/* $Id: heartbeat.c,v 1.491 2006/02/02 20:58:56 alan Exp $ */
 /*
  * heartbeat: Linux-HA heartbeat code
  *
@@ -1400,7 +1400,7 @@
                 */
 
                /* Connect up the write child IPC channel... */
-               s = G_main_add_IPC_Channel(PRI_CLUSTERMSG
+               s = G_main_add_IPC_Channel(PRI_SENDPKT
                ,       sysmedia[j]->wchan[P_WRITEFD], FALSE
                ,       NULL, sysmedia+j, NULL);
                G_main_setmaxdispatchdelay((GSource*)s, 50);
@@ -1409,7 +1409,7 @@
 
                
                /* Connect up the read child IPC channel... */
-               s = G_main_add_IPC_Channel(PRI_CLUSTERMSG
+               s = G_main_add_IPC_Channel(PRI_READPKT
                ,       sysmedia[j]->rchan[P_WRITEFD], FALSE
                ,       read_child_dispatch, sysmedia+j, NULL);
                /* Encourage better real-time behavior */
@@ -1457,7 +1457,7 @@
        }
 
        /* Check for pending signals */
-       id=Gmain_timeout_add_full(PRI_SENDSTATUS, config->heartbeat_ms
+       id=Gmain_timeout_add_full(PRI_CHECKSIGS, config->heartbeat_ms
        ,       Gmain_hb_signal_process_pending, NULL, NULL);
        G_main_setall_id(id, "check for signals", 500, 50);
        
@@ -6073,6 +6073,9 @@
 
 /*
  * $Log: heartbeat.c,v $
+ * Revision 1.491  2006/02/02 20:58:56  alan
+ * Changed the priorities of a few of the realtime events in heartbeat.
+ *
  * Revision 1.490  2006/02/02 20:00:21  alan
  * Made a small correction to the last realtime behavior change.
  *




------------------------------

_______________________________________________
Linux-ha-cvs mailing list
[email protected]
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs


End of Linux-ha-cvs Digest, Vol 27, Issue 13
********************************************

Reply via email to