As we all know, too much context switches can lead to poor performance. Besides, sometimes one same process deployed in two places may behave different. Thus it's necessary to collect the
nvcsw (number of times that the program was context-switched voluntarily, for instance while waiting for an I/O operation to complete) and
nivcsw (number of times the process was context-switched involuntarily, e.g. the time slice expired) two indicators to monitor the performance.
As we all know, too much context switches can lead to poor performance. Besides, sometimes one same process deployed in two places may behave different. Thus it's necessary to collect the
Signed-off-by: Fei Li lifei.shirley@bytedance.com