On Mon, 22 Aug 2005, Divacky Roman wrote: >> By running an application that opens (and keeps open) many files, i.e. >> a program that creates many temporary files, keeps them open and then >> closes them all at once before exiting? > > I did: > > gettimeofday(&t1, NULL); > for (; i>0; i--) { > if (open("/dev/null", O_RDONLY) == -1) { > perror(NULL); > break; > } > } > gettimeofday(&t2, NULL); src/tools/tools/syscall_timing provides a number of simple micro-benchmarks of common system calls, including several that allocate file descriptors (such as pipe creation, socket allocation, etc). Run about ten sets each of {before,after}, drop the first entry for each ("warmup"), and then use ministat to compare the results on a couple of key system calls? Robert N M WatsonReceived on Mon Aug 22 2005 - 10:48:30 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:41 UTC