vtimes.3
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 93 行
3
93 行
.\" SCCSID: @(#)vtimes.3 8.1 9/11/90.TH vtimes 3.SH Namevtimes \- get information about resource utilization.SH Syntax.nf.B "vtimes(par_vm, ch_vm)".B "struct vtimes *par_vm, *ch_vm;".fi.SH Description.NXR "vtimes subroutine".NXR "process" "getting resource accounting".NXA "vtimes subroutine" "getrusage system call"This facility has been superseded by .MS getrusage 2 ..PPThe.PN vtimesroutine returns accounting information for the current process and forthe terminated child processes of the currentprocess. Either.I par_vmor .I ch_vmor both may be 0, in which case only the information for the pointerswhich are non-zero is returned..PPAfter the call, each buffer contains information as defined by thecontents of the include file /usr/include/sys/vtimes.h:.EX 0struct vtimes { int vm_utime; /* user time (*HZ) */ int vm_stime; /* system time (*HZ) */ /* divide next two by utime+stime to get averages */ unsigned vm_idsrss; /* integral of d+s rss */ unsigned vm_ixrss; /* integral of text rss */ int vm_maxrss; /* maximum rss */ int vm_majflt; /* major page faults */ int vm_minflt; /* minor page faults */ int vm_nswap; /* number of swaps */ int vm_inblk; /* block reads */ int vm_oublk; /* block writes */};.EEThe.I vm_utimeand.I vm_stimefields give the user and systemtime respectively in 60ths of a second (or 50ths if thatis the frequency of wall current in your locality.) The.I vm_idrssand.I vm_ixrssmeasure memory usage. They are computed by integrating the number ofmemory pages in use eachover cpu time. They are reported as though computeddiscretely, adding the current memory usage (in 512 bytepages) each time the clock ticks. If a process used 5 corepages over 1 cpu-second for its data and stack, then.I vm_idsrsswould have the value 5*60, where.I vm_utime+vm_stimewould be the 60. The.I vm_idsrssintegrates data and stack segmentusage, while.I vm_ixrssintegrates text segment usage. The.I vm_maxrssreports the maximum instantaneous sum of thetext+data+stack core-resident page count..PPThe .I vm_majfltfield gives the number of page faults whichresulted in disk activity; the.I vm_minfltfield gives thenumber of page faults incurred in simulation of referencebits;.I vm_nswapis the number of swaps which occurred. Thenumber of file system input/output events are reported in.I vm_inblkand.I vm_oublkThese numbers account only for realI/O. Data supplied by the caching mechanism is charged onlyto the first process to read or write the data..SH See Alsowait3(2), time(3)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?