Home
last modified time | relevance | path

Searched refs:num_threads (Results 1 – 23 of 23) sorted by relevance

/xnu-8019.80.24/tools/tests/perf_index/
H A Dtest_file_helper.h8 int test_file_create(char* path, int thread_id, int num_threads, long long length);
9 int test_file_read_setup(char* path, int num_threads, long long length, long long max_file_size);
10 int test_file_read(char* path, int thread_id, int num_threads, long long length, long long max_file…
11 int test_file_read_cleanup(char* path, int num_threads, long long length);
12 int test_file_write_setup(char* path, int num_threads, long long length);
13 int test_file_write(char* path, int thread_id, int num_threads, long long length, long long max_fil…
14 int test_file_write_cleanup(char* path, int num_threads, long long length);
H A Dtest_file_helper.c30 test_file_create(char* path, int thread_id, int num_threads, long long length) in test_file_create() argument
55 test_file_read_setup(char* path, int num_threads, long long length, long long max_file_size) in test_file_read_setup() argument
67 left = MIN(length, max_file_size / num_threads); in test_file_read_setup()
87 test_file_read(char* path, int thread_id, int num_threads, long long length, long long max_file_siz… in test_file_read() argument
101 filesize = MIN(length, max_file_size / num_threads); in test_file_read()
127 test_file_read_cleanup(char* path, int num_threads, long long length) in test_file_read_cleanup() argument
140 test_file_write_setup(char* path, int num_threads, long long length) in test_file_write_setup() argument
146 fds = (int*)malloc(sizeof(int) * num_threads); in test_file_write_setup()
150 for (i = 0; i < num_threads; i++) { in test_file_write_setup()
166 test_file_write(char* path, int thread_id, int num_threads, long long length, long long max_file_si… in test_file_write() argument
[all …]
H A Dperf_index.c17 int num_threads; member
46 parsed_args->num_threads = atoi(argv[2]); in parse_args()
139 long long work_size = args.length / args.num_threads; in thread_setup()
140 int work_remainder = args.length % args.num_threads; in thread_setup()
148 if (ready_thread_count == args.num_threads) { in thread_setup()
153 test.execute(my_index, args.num_threads, work_size, args.test_argc, args.test_argv); in thread_setup()
192 retval = test.setup(args.num_threads, args.length, 0, NULL); in main()
199 threads = (pthread_t*)malloc(sizeof(pthread_t) * args.num_threads); in main()
200 for (thread_index = 0; thread_index < args.num_threads; thread_index++) { in main()
206 if (ready_thread_count != args.num_threads) { in main()
[all …]
H A Dperfindex-memory.c63 long long region_len = memsize / num_threads / 2;
64 long long region_start = memsize / num_threads * thread_id / 2;
67 if (thread_id < memsize / 2 % num_threads) {
71 region_start += memsize / 2 % num_threads;
H A Dperf_index.h4 #define DECL_SETUP int setup(int num_threads, long long length, int test_argc, const void** test_ar…
5 #define DECL_TEST int execute(int thread_id, int num_threads, long long length, int test_argc, cons…
6 #define DECL_CLEANUP int cleanup(int num_threads, long long length)
H A Dperfindex-file_write.c19 return test_file_write_setup(tempdir, num_threads, length);
23 return test_file_write(tempdir, thread_id, num_threads, length, 0L);
29 retval = test_file_write_cleanup(tempdir, num_threads, length);
H A Dperfindex-file_read.c18 return test_file_read_setup(tempdir, num_threads, length, 0L);
22 return test_file_read(tempdir, thread_id, num_threads, length, 0L);
28 retval = test_file_read_cleanup(tempdir, num_threads, length);
H A Dtest_controller.py19 def main(num_clients, test_type, num_threads, job_size, args): argument
27 msg = "\0".join(["%s\0%d\0%d" % (test_type, num_threads, job_size)] + args) + "\0\0"
59 num_threads = int(sys.argv[3]) variable
65 print(main(num_clients, test_type, num_threads, job_size, args))
H A Dperfindex-ram_file_write.c19 return test_file_write_setup(ramdisk_path, num_threads, length);
23 return test_file_write(ramdisk_path, thread_id, num_threads, length, 0L);
29 retval = test_file_write_cleanup(ramdisk_path, num_threads, length);
H A Dperfindex-ram_file_read.c19 return test_file_read_setup(ramdisk_path, num_threads, length, 0L);
23 return test_file_read(ramdisk_path, thread_id, num_threads, length, 0L);
29 retval = test_file_read_cleanup(ramdisk_path, num_threads, length);
H A Dtest_fault_helper.c43 test_fault_helper(int thread_id, int num_threads, long long length, testtype_t testtype) in test_fault_helper() argument
50 long long region_len = num_pages / num_threads; in test_fault_helper()
54 if (thread_id < num_pages % num_threads) { in test_fault_helper()
58 region_start += num_pages % num_threads; in test_fault_helper()
H A Dperfindex-fault.c9 return test_fault_helper(thread_id, num_threads, length, TESTFAULT);
H A Dperfindex-zfod.c9 return test_fault_helper(thread_id, num_threads, length, TESTZFOD);
H A Dtest_fault_helper.h10 int test_fault_helper(int thread_id, int num_threads, long long length, testtype_t testtype);
H A Dperfindex-file_create.c23 return test_file_create(tempdir, thread_id, num_threads, length);
H A Dperfindex-ram_file_create.c23 return test_file_create(ramdisk_path, thread_id, num_threads, length);
H A Dperfindex-compile.c36 retval = asprintf(&cmd, "make -C \"%s\" MAKEJOBS=-j%d", src_dst, num_threads);
/xnu-8019.80.24/tests/
H A Dperf_vmfault.c60 static int num_threads; variable
158 for (i = 0; i < num_threads; i++) { in map_mem_regions_multiple()
161 region_len = num_pages / (size_t)num_threads; in map_mem_regions_multiple()
162 if ((size_t)i < num_pages % (size_t)num_threads) { in map_mem_regions_multiple()
192 …er_thread = (memregion_config *)malloc(sizeof(*memregion_config_per_thread) * (size_t)num_threads); in map_mem_regions()
213 for (i = 0; i < num_threads; i++) { in setup_per_thread_regions()
214 region_len = num_pages / (size_t)num_threads; in setup_per_thread_regions()
217 if ((size_t)i < num_pages % (size_t)num_threads) { in setup_per_thread_regions()
221 region_start += num_pages % (size_t)num_threads; in setup_per_thread_regions()
239 for (i = 0; i < num_threads; i++) { in unmap_mem_regions()
[all …]
H A Dmanual_wq_cooperative.c23 req_cooperative_wq_threads(qos_class_t qos, size_t num_threads) in req_cooperative_wq_threads() argument
27 for (size_t i = 0; i < num_threads; i++) { in req_cooperative_wq_threads()
37 req_wq_threads(qos_class_t qos, size_t num_threads, bool overcommit) in req_wq_threads() argument
41 for (size_t i = 0; i < num_threads; i++) { in req_wq_threads()
/xnu-8019.80.24/tools/tests/affinity/
H A Dtags.c86 mach_msg_type_number_t num_threads; in main() local
122 ret = task_threads(port, &thread_array, &num_threads); in main()
127 for (i = 0; i < num_threads; i++) { in main()
134 for (i = 0; i < num_threads; i++) { in main()
/xnu-8019.80.24/tests/vm/
H A Dfault_throughput.c522 spawn_worker_threads(test_globals_t *globals, unsigned int num_threads, unsigned int first_cpu) in spawn_worker_threads() argument
526 globals->tg_num_threads = num_threads; in spawn_worker_threads()
527 pthread_t* threads = malloc(sizeof(pthread_t) * num_threads); in spawn_worker_threads()
528 faulting_thread_args = malloc(sizeof(faulting_thread_args_t) * num_threads); in spawn_worker_threads()
533 for (unsigned int i = 0; i < num_threads; i++) { in spawn_worker_threads()
/xnu-8019.80.24/tools/lldbmacros/core/
H A Doperating_system.py771num_threads = self._target.FindGlobalVariables('threads_count',1).GetValueAtIndex(0).GetValueAsUns…
773 if num_threads <=0 :
/xnu-8019.80.24/bsd/kern/
H A Dkern_sysctl.c2169 SYSCTL_INT(_kern, OID_AUTO, num_threads,