From 5d71bc53f1aa0f80ec3cd8e2b363138c1e3401c7 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Mon, 11 Apr 2011 15:34:49 +0200 Subject: [PATCH] [commtech] Varying size of buffer for BatchQueue Create several variation of BatchQueue, each with a different buffer size: batch_queue_1024, batch_queue_512, ..., batch_queue_2. --- communication_techniques/include/batch_queue_1024_comm.h | 7 +++++++ communication_techniques/include/batch_queue_128_comm.h | 7 +++++++ communication_techniques/include/batch_queue_16_comm.h | 7 +++++++ communication_techniques/include/batch_queue_256_comm.h | 7 +++++++ communication_techniques/include/batch_queue_2_comm.h | 7 +++++++ communication_techniques/include/batch_queue_32_comm.h | 7 +++++++ communication_techniques/include/batch_queue_4_comm.h | 7 +++++++ communication_techniques/include/batch_queue_512_comm.h | 7 +++++++ communication_techniques/include/batch_queue_64_comm.h | 7 +++++++ communication_techniques/include/batch_queue_8_comm.h | 7 +++++++ .../{batch_queue_comm.h => batch_queue_common_comm.h} | 4 ++-- .../src/communication/batch_queue_1024.c | 1 + .../src/communication/batch_queue_128.c | 1 + .../src/communication/batch_queue_16.c | 1 + communication_techniques/src/communication/batch_queue_2.c | 1 + .../src/communication/batch_queue_256.c | 1 + .../src/communication/batch_queue_32.c | 1 + communication_techniques/src/communication/batch_queue_4.c | 1 + .../src/communication/batch_queue_512.c | 1 + .../src/communication/batch_queue_64.c | 1 + communication_techniques/src/communication/batch_queue_8.c | 1 + 21 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 communication_techniques/include/batch_queue_1024_comm.h create mode 100644 communication_techniques/include/batch_queue_128_comm.h create mode 100644 communication_techniques/include/batch_queue_16_comm.h create mode 100644 communication_techniques/include/batch_queue_256_comm.h create mode 100644 communication_techniques/include/batch_queue_2_comm.h create mode 100644 communication_techniques/include/batch_queue_32_comm.h create mode 100644 communication_techniques/include/batch_queue_4_comm.h create mode 100644 communication_techniques/include/batch_queue_512_comm.h create mode 100644 communication_techniques/include/batch_queue_64_comm.h create mode 100644 communication_techniques/include/batch_queue_8_comm.h rename communication_techniques/include/{batch_queue_comm.h => batch_queue_common_comm.h} (93%) create mode 120000 communication_techniques/src/communication/batch_queue_1024.c create mode 120000 communication_techniques/src/communication/batch_queue_128.c create mode 120000 communication_techniques/src/communication/batch_queue_16.c create mode 120000 communication_techniques/src/communication/batch_queue_2.c create mode 120000 communication_techniques/src/communication/batch_queue_256.c create mode 120000 communication_techniques/src/communication/batch_queue_32.c create mode 120000 communication_techniques/src/communication/batch_queue_4.c create mode 120000 communication_techniques/src/communication/batch_queue_512.c create mode 120000 communication_techniques/src/communication/batch_queue_64.c create mode 120000 communication_techniques/src/communication/batch_queue_8.c diff --git a/communication_techniques/include/batch_queue_1024_comm.h b/communication_techniques/include/batch_queue_1024_comm.h new file mode 100644 index 0000000..bd3f5c0 --- /dev/null +++ b/communication_techniques/include/batch_queue_1024_comm.h @@ -0,0 +1,7 @@ +#ifndef _SPECIFIC_COMM_H_ +#define _SPECIFIC_COMM_H_ 1 + +#define BUF_SIZE (512 * CACHE_LINE_SIZE) +#include + +#endif diff --git a/communication_techniques/include/batch_queue_128_comm.h b/communication_techniques/include/batch_queue_128_comm.h new file mode 100644 index 0000000..fb8889c --- /dev/null +++ b/communication_techniques/include/batch_queue_128_comm.h @@ -0,0 +1,7 @@ +#ifndef _SPECIFIC_COMM_H_ +#define _SPECIFIC_COMM_H_ 1 + +#define BUF_SIZE (64 * CACHE_LINE_SIZE) +#include + +#endif diff --git a/communication_techniques/include/batch_queue_16_comm.h b/communication_techniques/include/batch_queue_16_comm.h new file mode 100644 index 0000000..ba757e3 --- /dev/null +++ b/communication_techniques/include/batch_queue_16_comm.h @@ -0,0 +1,7 @@ +#ifndef _SPECIFIC_COMM_H_ +#define _SPECIFIC_COMM_H_ 1 + +#define BUF_SIZE (8 * CACHE_LINE_SIZE) +#include + +#endif diff --git a/communication_techniques/include/batch_queue_256_comm.h b/communication_techniques/include/batch_queue_256_comm.h new file mode 100644 index 0000000..5e96d2f --- /dev/null +++ b/communication_techniques/include/batch_queue_256_comm.h @@ -0,0 +1,7 @@ +#ifndef _SPECIFIC_COMM_H_ +#define _SPECIFIC_COMM_H_ 1 + +#define BUF_SIZE (128 * CACHE_LINE_SIZE) +#include + +#endif diff --git a/communication_techniques/include/batch_queue_2_comm.h b/communication_techniques/include/batch_queue_2_comm.h new file mode 100644 index 0000000..df6d83a --- /dev/null +++ b/communication_techniques/include/batch_queue_2_comm.h @@ -0,0 +1,7 @@ +#ifndef _SPECIFIC_COMM_H_ +#define _SPECIFIC_COMM_H_ 1 + +#define BUF_SIZE (1 * CACHE_LINE_SIZE) +#include + +#endif diff --git a/communication_techniques/include/batch_queue_32_comm.h b/communication_techniques/include/batch_queue_32_comm.h new file mode 100644 index 0000000..b79d59c --- /dev/null +++ b/communication_techniques/include/batch_queue_32_comm.h @@ -0,0 +1,7 @@ +#ifndef _SPECIFIC_COMM_H_ +#define _SPECIFIC_COMM_H_ 1 + +#define BUF_SIZE (16 * CACHE_LINE_SIZE) +#include + +#endif diff --git a/communication_techniques/include/batch_queue_4_comm.h b/communication_techniques/include/batch_queue_4_comm.h new file mode 100644 index 0000000..181c15c --- /dev/null +++ b/communication_techniques/include/batch_queue_4_comm.h @@ -0,0 +1,7 @@ +#ifndef _SPECIFIC_COMM_H_ +#define _SPECIFIC_COMM_H_ 1 + +#define BUF_SIZE (2 * CACHE_LINE_SIZE) +#include + +#endif diff --git a/communication_techniques/include/batch_queue_512_comm.h b/communication_techniques/include/batch_queue_512_comm.h new file mode 100644 index 0000000..2b26b2b --- /dev/null +++ b/communication_techniques/include/batch_queue_512_comm.h @@ -0,0 +1,7 @@ +#ifndef _SPECIFIC_COMM_H_ +#define _SPECIFIC_COMM_H_ 1 + +#define BUF_SIZE (256 * CACHE_LINE_SIZE) +#include + +#endif diff --git a/communication_techniques/include/batch_queue_64_comm.h b/communication_techniques/include/batch_queue_64_comm.h new file mode 100644 index 0000000..5ed2a14 --- /dev/null +++ b/communication_techniques/include/batch_queue_64_comm.h @@ -0,0 +1,7 @@ +#ifndef _SPECIFIC_COMM_H_ +#define _SPECIFIC_COMM_H_ 1 + +#define BUF_SIZE (32 * CACHE_LINE_SIZE) +#include + +#endif diff --git a/communication_techniques/include/batch_queue_8_comm.h b/communication_techniques/include/batch_queue_8_comm.h new file mode 100644 index 0000000..90580b6 --- /dev/null +++ b/communication_techniques/include/batch_queue_8_comm.h @@ -0,0 +1,7 @@ +#ifndef _SPECIFIC_COMM_H_ +#define _SPECIFIC_COMM_H_ 1 + +#define BUF_SIZE (4 * CACHE_LINE_SIZE) +#include + +#endif diff --git a/communication_techniques/include/batch_queue_comm.h b/communication_techniques/include/batch_queue_common_comm.h similarity index 93% rename from communication_techniques/include/batch_queue_comm.h rename to communication_techniques/include/batch_queue_common_comm.h index f96249f..8cbe970 100644 --- a/communication_techniques/include/batch_queue_comm.h +++ b/communication_techniques/include/batch_queue_common_comm.h @@ -1,5 +1,5 @@ -#ifndef _SPECIFIC_COMM_H_ -#define _SPECIFIC_COMM_H_ 1 +#ifndef _BATCH_QUEUE_COMMON_COMM_H_ +#define _BATCH_QUEUE_COMMON_COMM_H_ 1 /* Non standard include */ #include diff --git a/communication_techniques/src/communication/batch_queue_1024.c b/communication_techniques/src/communication/batch_queue_1024.c new file mode 120000 index 0000000..88fc1d5 --- /dev/null +++ b/communication_techniques/src/communication/batch_queue_1024.c @@ -0,0 +1 @@ +batch_queue.c \ No newline at end of file diff --git a/communication_techniques/src/communication/batch_queue_128.c b/communication_techniques/src/communication/batch_queue_128.c new file mode 120000 index 0000000..88fc1d5 --- /dev/null +++ b/communication_techniques/src/communication/batch_queue_128.c @@ -0,0 +1 @@ +batch_queue.c \ No newline at end of file diff --git a/communication_techniques/src/communication/batch_queue_16.c b/communication_techniques/src/communication/batch_queue_16.c new file mode 120000 index 0000000..88fc1d5 --- /dev/null +++ b/communication_techniques/src/communication/batch_queue_16.c @@ -0,0 +1 @@ +batch_queue.c \ No newline at end of file diff --git a/communication_techniques/src/communication/batch_queue_2.c b/communication_techniques/src/communication/batch_queue_2.c new file mode 120000 index 0000000..88fc1d5 --- /dev/null +++ b/communication_techniques/src/communication/batch_queue_2.c @@ -0,0 +1 @@ +batch_queue.c \ No newline at end of file diff --git a/communication_techniques/src/communication/batch_queue_256.c b/communication_techniques/src/communication/batch_queue_256.c new file mode 120000 index 0000000..88fc1d5 --- /dev/null +++ b/communication_techniques/src/communication/batch_queue_256.c @@ -0,0 +1 @@ +batch_queue.c \ No newline at end of file diff --git a/communication_techniques/src/communication/batch_queue_32.c b/communication_techniques/src/communication/batch_queue_32.c new file mode 120000 index 0000000..88fc1d5 --- /dev/null +++ b/communication_techniques/src/communication/batch_queue_32.c @@ -0,0 +1 @@ +batch_queue.c \ No newline at end of file diff --git a/communication_techniques/src/communication/batch_queue_4.c b/communication_techniques/src/communication/batch_queue_4.c new file mode 120000 index 0000000..88fc1d5 --- /dev/null +++ b/communication_techniques/src/communication/batch_queue_4.c @@ -0,0 +1 @@ +batch_queue.c \ No newline at end of file diff --git a/communication_techniques/src/communication/batch_queue_512.c b/communication_techniques/src/communication/batch_queue_512.c new file mode 120000 index 0000000..88fc1d5 --- /dev/null +++ b/communication_techniques/src/communication/batch_queue_512.c @@ -0,0 +1 @@ +batch_queue.c \ No newline at end of file diff --git a/communication_techniques/src/communication/batch_queue_64.c b/communication_techniques/src/communication/batch_queue_64.c new file mode 120000 index 0000000..88fc1d5 --- /dev/null +++ b/communication_techniques/src/communication/batch_queue_64.c @@ -0,0 +1 @@ +batch_queue.c \ No newline at end of file diff --git a/communication_techniques/src/communication/batch_queue_8.c b/communication_techniques/src/communication/batch_queue_8.c new file mode 120000 index 0000000..88fc1d5 --- /dev/null +++ b/communication_techniques/src/communication/batch_queue_8.c @@ -0,0 +1 @@ +batch_queue.c \ No newline at end of file