Red Hat Directory Server 7.1 for HP-UX11i v2 Integrity System Performance Tuning and Sizing Guideline
Red Hat Directory Server 7.1 Performance Tuning and Sizing Guidelines
}
fclose(NameList);
/* DirMark only supports up to 50 clients. Modify the for loop if you need */
/* less than 50 search scripts */
for (int i=0; i<50; i++) {
rand_gen(OperationPerThread, TotalEntryInDatabase,rand_array);
rand_choose(i, cn, TestScriptDir, TestScriptName,rand_array);
}
}
void rand_choose(int index_num,char **cn,char *TestScriptDir,char *TestScriptName, long int rand_array)
{
FILE *search_script;
FILE *rand_file;
int i=0;
char search_script_name[400];
char line[200];
char *counter[]={"0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
"10", "11", "12", "13", "14", "15", "16", "17", "18", "19",
"20", "21", "22", "23", "24", "25", "26", "27", "28", "29",
"30", "31", "32", "33", "34", "35", "36", "37", "38", "39",
"40", "41", "42", "43", "44", "45", "46", "47", "48", "49"};
strcpy(search_script_name,TestScriptDir);
strcat(search_script_name,"/");
strcat(search_script_name, TestScriptName);
strcat(search_script_name, ".client0.script");
strcat(search_script_name, counter[index_num]);
search_script = fopen(search_script_name,"w");
while(rand_array[i] != NULL) {
fprintf(search_script,"ldap_search\n");
fprintf(search_script,"bind_as\n");
fprintf(search_script,"anonymous\n");
fprintf(search_script,"password ignored\n");
fprintf(search_script,"o=Airius.com\n");
fprintf(search_script,"LDAP_SCOPE_SUBTREE\n");
fprintf(search_script,"(cn=%s)\n",cn[rand_array[i]]);
fprintf(search_script,"NULL\n");
fprintf(search_script,"0\n\n");
i++;
}
fclose(search_script);
}
void rand_gen(int OperationPerThread, int TotalEntryInDatabase, long int *rand_array)
{
for (int i = 0; i < OperationPerThread; i++) {
rand_array[i] = drand48() * TotalEntryInDatabase;
}
}
Appendix C: Test Environment for 5M and 10M data points
The test environment for the two new data points at 5M and 10M entries are almost the same as that of previous
ones, except the differences documented at the following:
Operating System
HP-UX 11i v2 September 2006 release was used and PHCO_35997 pthread library cumulative patch was installed.
Test Machines
The performance data are collected on the following machines:
Client:
Page 18