Skip to content
Snippets Groups Projects
Commit 2d608bc9 authored by Andrew Perepechko's avatar Andrew Perepechko
Browse files

Branch HEAD

b=16415
i=Andreas Dilger (adilger)
i=Sergey (deen)

Increase number of clients from 32768 to 131072
parent c22c8232
No related branches found
No related tags found
No related merge requests found
...@@ -166,9 +166,18 @@ struct lustre_mount_data { ...@@ -166,9 +166,18 @@ struct lustre_mount_data {
#if LR_CLIENT_START < LR_SERVER_SIZE #if LR_CLIENT_START < LR_SERVER_SIZE
#error "Can't have LR_CLIENT_START < LR_SERVER_SIZE" #error "Can't have LR_CLIENT_START < LR_SERVER_SIZE"
#endif #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. */ /*
* 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.
*/
#if (128 * 1024UL) > (CFS_PAGE_SIZE * 8)
#define LR_MAX_CLIENTS (128 * 1024UL)
#else
#define LR_MAX_CLIENTS (CFS_PAGE_SIZE * 8) #define LR_MAX_CLIENTS (CFS_PAGE_SIZE * 8)
#endif
/* COMPAT_146 */ /* COMPAT_146 */
#define OBD_COMPAT_OST 0x00000002 /* this is an OST (temporary) */ #define OBD_COMPAT_OST 0x00000002 /* this is an OST (temporary) */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment