From e97ae09faf80e0281f5122bdd72de3ee78d5a104 Mon Sep 17 00:00:00 2001 From: anserper Date: Wed, 23 Jul 2008 19:32:19 +0000 Subject: [PATCH] Branch b1_8_gate b=16415 i=Andreas Dilger (adilger) i=Sergey (deen) Increased clients number from 32768 to 131072 --- lustre/include/lustre_disk.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lustre/include/lustre_disk.h b/lustre/include/lustre_disk.h index f33235f..2c1086e 100644 --- a/lustre/include/lustre_disk.h +++ b/lustre/include/lustre_disk.h @@ -182,10 +182,14 @@ struct lustre_mount_data { #if LR_CLIENT_START < LR_SERVER_SIZE #error "Can't have LR_CLIENT_START < LR_SERVER_SIZE" #endif -/* This limit is arbitrary (32k clients on x86), but it is convenient to use - * 2^n * CFS_PAGE_SIZE * 8 for the number of bits that fit an order-n allocation. */ -#define LR_MAX_CLIENTS (CFS_PAGE_SIZE * 8) +/* + * This limit is arbitrary (131072 clients on x86), but it is convenient to use + * 2^n * CFS_PAGE_SIZE * 8 for the number of bits that fit an order-n allocation. + * If we need more than 131072 clients (order-2 allocation on x86) then this + * should become an array of single-page pointers that are allocated on demand. + */ +#define LR_MAX_CLIENTS max(128 * 1024UL, CFS_PAGE_SIZE * 8) /* COMPAT_146 */ #define OBD_COMPAT_OST 0x00000002 /* this is an OST (temporary) */ -- 1.8.3.1