Some Problems in mysqlslap output information: After adding debug-info to mysqlslap, in addition to the direct test results, some information about the test environment is also output. Www.2cto.com mainly includes: system time: time spent in kernel mode user time: time spent in user mode max resident size: maximum physical memory occupied (resident memory)
Non-physical pagefaults: the number of page-missing interruptions caused by IO read/write by directly recycling dirty pages. involuntary context switch: the number of times the thread switches due to time slice or higher priority thread preemption voluntary context switch: the number of times the thread actively switches out of the processor, probably waiting for IO
This information can be used as a basis for determining the effectiveness of this test. This information is obtained by calling getrusage. This is reflected in the source code of mysqlslap. Www.2cto.com specific reference: http://www.kernel.org/doc/man-pages/online/pages/man2/getrusage.2.html