2 ms·
One of the things I like about FreeBSD is it has better rusage accounting than Linux. For example, FreeBSD and NetBSD actually fill in the following fields when
by jart 6y ago
One of the things I like about FreeBSD is it has better rusage accounting than Linux. For example, FreeBSD and NetBSD actually fill in the following fields when you call wait4() on a process.
int64_t ru_ixrss; /* shared memory size (integral kb CLK_TCK) */
int64_t ru_idrss; /* unshared data size (integral kb CLK_TCK) */
int64_t ru_isrss; /* unshared stack size (integral kb CLK_TCK) */
int64_t ru_inblock; /* block input operations */
int64_t ru_oublock; /* block output operations */
int64_t ru_nsignals; /* signals received */
int64_t ru_msgsnd; /* IPC messages sent */
int64_t ru_msgrcv; /* IPC messages received */
Linux doesn't give you that information. Since FreeBSD does, it's easier to do something like write a reliable network server that monitors worker behavior.