]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_configuration_parameters.h
Update transaction API
[frescor/frsh-include.git] / frsh_configuration_parameters.h
index 595cb765ace6fc40a545c2ba23b0caeced48fb31..ab5ea8b8d3c55ab9a10bacaf23db1ad0e29136f7 100644 (file)
@@ -1,5 +1,5 @@
 // -----------------------------------------------------------------------
-//  Copyright (C) 2006 - 2008 FRESCOR consortium partners:
+//  Copyright (C) 2006 - 2009 FRESCOR consortium partners:
 //
 //    Universidad de Cantabria,              SPAIN
 //    University of York,                    UK
@@ -69,6 +69,7 @@
 #define _FRSH_CONFIGURATION_PARAMETERS_H_
 
 #include <unistd.h>
+#include <limits.h>
 #include <frsh_cpp_macros.h>
 
 FRSH_CPP_BEGIN_DECLS
@@ -128,7 +129,7 @@ FRSH_CPP_BEGIN_DECLS
  **/
 
 /** Maximum number of accepted contracts (vres) **/
-#define FRSH_MAX_N_VRES                    100
+#define FRSH_MAX_N_VRES                    25
 
 /** Maximum number of threads that may be scheduled by the framework **/
 #define FRSH_MAX_N_THREADS                    25
@@ -244,7 +245,7 @@ FRSH_CPP_BEGIN_DECLS
  **/
 
 /** Initial period of the service thread (timespec) **/
-#define FRSH_SERVICE_THREAD_PERIOD_USECS 5000000 /* 500 msecs */
+#define FRSH_SERVICE_THREAD_PERIOD_USECS 500000 /* 500 msecs */
 
 /** Initial budget of the service thread (timespec) **/
 #define FRSH_SERVICE_THREAD_BUDGET_USECS 1000 /* 1 msec */
@@ -254,6 +255,9 @@ FRSH_CPP_BEGIN_DECLS
  * FRSH_SCHEDULER_PRIORITY, and is set according to its period and the
  * expected response times for reconfiguration or tunning of the
  * system.
+ *
+ * If set to zero and FRSH_ADMISSSION_TEST_ENABLE is set to true then
+ * the priority will be assigned according to DMA rules.
  **/
 //#define FRSH_SERVICE_THREAD_PRIORITY          (FRSH_LOWEST_THREAD_PRIORITY+1)
 #define FRSH_SERVICE_THREAD_PRIORITY          0
@@ -328,7 +332,7 @@ int frsh_priority_map (unsigned long plevel);
 /**
  * Maximum number of groups operations (neg, reneg, cancel) per group
  **/
-#define FRSH_MAX_GROUP_OPS  3
+#define FRSH_MAX_GROUP_OPS  25
 
 /**
  * Default overheads of shared object protection mechanisms
@@ -354,6 +358,13 @@ int frsh_priority_map (unsigned long plevel);
 /* Default memory pool's size in Kbytes */
 #define FRSH_DYNAMIC_MEMORY_POOL_SIZE 6670
 
+/**
+ * Maximum synchronized workload period number.  After this value any
+ * increments will be set to zero.
+ **/
+#define FRSH_MAX_SYNCHRONIZED_PERIOD_NUMBER LONG_MAX
+
+
 /*@}*/
 
 /*@}*/