Skip to content

Commit 83a4144

Browse files
committed
revisit some defaults and constants
1 parent c53d2e8 commit 83a4144

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

common/src/unifyfs_const.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@
5151
#define UNIFYFS_CLIENT_STREAM_BUFSIZE MIB
5252
#define UNIFYFS_CLIENT_WRITE_INDEX_SIZE (20 * MIB)
5353
#define UNIFYFS_CLIENT_MAX_READ_COUNT 1000 /* max # active read requests */
54-
#define UNIFYFS_CLIENT_READ_TIMEOUT_SECONDS 60
54+
#define UNIFYFS_CLIENT_READ_TIMEOUT_SECONDS 30
5555
#define UNIFYFS_CLIENT_MAX_ACTIVE_REQUESTS 256 /* max concurrent client reqs */
5656

5757
// Log-based I/O Default Values
58-
#define UNIFYFS_LOGIO_CHUNK_SIZE (4 * MIB)
58+
#define UNIFYFS_LOGIO_CHUNK_SIZE MIB
5959
#define UNIFYFS_LOGIO_SHMEM_SIZE (256 * MIB)
60-
#define UNIFYFS_LOGIO_SPILL_SIZE (4 * GIB)
60+
#define UNIFYFS_LOGIO_SPILL_SIZE (2 * GIB)
6161

6262
// Margo Default Values
6363
#define UNIFYFS_MARGO_POOL_SZ 4
@@ -67,13 +67,13 @@
6767
#define UNIFYFS_MARGO_SERVICE_TIMEOUT_MSEC 15000 /* 15 sec */
6868

6969
// Metadata Default Values
70-
#define UNIFYFS_METADATA_CACHE_SECONDS 5 /* cached metadata valid for 5 sec */
70+
#define UNIFYFS_METADATA_CACHE_SECONDS 10 /* metadata cache valid for 10 sec */
7171

7272
// Server
7373
#define UNIFYFS_SERVER_MAX_BULK_TX_SIZE (4 * MIB) /* to-server transmit size */
7474
#define UNIFYFS_SERVER_MAX_DATA_TX_SIZE (8 * MIB) /* to-client transmit size */
7575
#define UNIFYFS_SERVER_MAX_NUM_APPS 64 /* max # apps/mountpoints supported */
76-
#define UNIFYFS_SERVER_MAX_APP_CLIENTS 256 /* max # clients per application */
76+
#define UNIFYFS_SERVER_MAX_APP_CLIENTS 256 /* max # clients per app */
7777
#define UNIFYFS_SERVER_MAX_READS 2048 /* max # server read reqs per reqmgr */
7878

7979
// Utilities

examples/src/testutil.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ const char* io_pattern_str(int pattern)
112112
}
113113

114114
#define DEFAULT_IO_CHUNK_SIZE (MIB) // 1 MiB
115-
#define DEFAULT_IO_BLOCK_SIZE (16 * DEFAULT_IO_CHUNK_SIZE) // 16 MiB
116-
#define DEFAULT_IO_NUM_BLOCKS (32) // 32 blocks x 16 MiB = 512 MiB
115+
#define DEFAULT_IO_BLOCK_SIZE (64 * DEFAULT_IO_CHUNK_SIZE) // 64 MiB
116+
#define DEFAULT_IO_NUM_BLOCKS (4) // 4 blocks x 64 MiB = 256 MiB
117117

118118
typedef struct {
119119
/* program behavior options */

0 commit comments

Comments
 (0)