GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
VTIMES(3) FreeBSD Library Functions Manual VTIMES(3)

vtimes
¸®¼Ò½º ÀÌ¿ë¿¡ ´ëÇÑ Á¤º¸¸¦ Ãëµæ

#include <sys/vtimes.h> vtimes(struct vtimes *par_vm, struct vtimes *ch_vm)

ÀÌ ÀÎÅÍÆäÀ̽º´Â, getrusage(2)¿¡ ÀÇÇØ ¿Å°Ü³õÀ» ¼ö ÀÖ¾ú½À´Ï´Ù. ÀÌ ÇÔ¼ö´Â, ȣȯ¼º ÇÁ·Î±×·¥ ¶óÀ̺귯¸®, libcompat ·ÎºÎÅÍ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
vtimes() ÇÔ¼ö´Â, ÇöÀçÀÇ ÇÁ·Î¼¼½º ¹× ÇöÀçÀÇ ÇÁ·Î¼¼½ºÀÇ Á¾·áÇß´Ù child processÀÇ ¾îÄ«¿îÆ® Á¤º¸¸¦ µ¹·ÁÁÝ´Ï´Ù. par_vm ¶Ç´Â ch_vm ÀÇ ¾î´À ÂÊÀÎÁö ÇÑÆí, ¶Ç´Â ÀÌ°Íµé ¾çÂÊ ¸ðµÎ´Â 0 ¿¡¼­µµ »ó°üÇÏÁö ¾Ê½À´Ï´Ù. ÀÌ °æ¿ì¿¡´Â, ºñÁ¦·ÎÀÎ Æ÷ÀÎÅÍ¿¡ ´ëÇÑ Á¤º¸¸¸ÀÌ µ¹·ÁÁÖ¾îÁý´Ï´Ù.
ÀÌ ÇÔ¼ö¸¦ È£ÃâÇÑ ÈÄ´Â, °¢ ¹öÆÛ¿¡´Â ÀÎŬ·çµå ÆÄÀÏ /usr/include/sys/vtimes.h ÀÇ ³»¿ë¿¡ ÀÇÇØ Á¤ÀÇµÈ ´ÙÀ½°ú °°Àº Á¤º¸°¡ µé¾î°©´Ï´Ù.
struct 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 */ 
};
vm_utime ¹× vm_stime ÀÇ Çʵå´Â, 60 ºÐÀÇ 1 ÃÊ (·ÎÄÃÀÇ ±³·ùÀÇ ÁÖÆļö°¡ 50 Hz ÀÇ °æ¿ì´Â 50 ºÐÀÇ 1 ÃÊ)ÀÇ ´ÜÀ§·Î °¢°¢ À¯Àú ½Ã°£°ú ½Ã½ºÅÛ ½Ã°£À» ³ªÅ¸³À´Ï´Ù. vm_idrss ¹× vm_ixrss (Àº)´Â, ¸Þ¸ð¸®ÀÇ »ç¿ëµµ¸¦ ÃøÁ¤ÇÕ´Ï´Ù. °¢°¢, CPU ½Ã°£¿¡ ´ëÇÑ »ç¿ë ¸Þ¸ð¸®ÆäÀÌÁöÀÇ ¼ö¸¦ ÀûºÐ ÇØ °è»êÇÕ´Ï´Ù. À̰͵éÀº, Ŭ¶ôÀÌ 1 ȸ »õ±æ ¶§¿¡ ÇöÀçÀÇ ¸Þ¸ð¸® »ç¿ë(512 ¹ÙÀÌÆ® ÆäÀÌÁöÀÇ ´ÜÀ§·Î)À» °¡»êÇØ, ÀÌ»êÀûÀ¸·Î °è»êÇß´ÂÁö¿Í °°ÀÌ ³ªÅ¸³³´Ï´Ù. ÀÖ´Ù ÇÁ·Î¼¼½º°¡ µ¥ÀÌÅÍ ¹× ½ºÅÿ¡ ´ëÇØ 1 cpu ÃÊ¿¡ 5 ÄÚ¾î ÆäÀÌÁö¸¦ »ç¿ëÇßÀ» °æ¿ì´Â, vm_idsrss (Àº)´Â 5*60 ÀÇ °ªÀ» °¡Á®, ¿©±â¼­ vm_utime+vm_stime (Àº)´Â 60 ÀÌ µË´Ï´Ù. Àμö Vm_idsrss (Àº)´Â µ¥ÀÌÅÍ¿Í ½ºÅÃÀÇ ¼¼±×¸ÕÆ®(segment) »ç¿ëµµ¸¦ Àû»êÇØ, vm_ixrss (Àº)´Â ÅؽºÆ® ¼¼±×¸ÕÆ®(segment)ÀÇ »ç¿ëµµ¸¦ Àû»êÇÕ´Ï´Ù. Vm_maxrss ÇÔ¼ö´Â, ÅؽºÆ®+µ¥ÀÌÅÍ+½ºÅÃÀÇ ÄÚ¾î ÁÖÀçÀÇ ÆäÀÌÁö Ä«¿îÆ®ÀÇ ÃÖ´ë ¼ø°£ ÃÑÈ­¸¦ °¡¸®Åµ´Ï´Ù.
vm_majflt Çʵå´Â, µð½ºÅ© µ¿ÀÛ¿¡ °áÇÕµÈ ÆäÀÌÁö ÆúÆ®ÀÇ ¼ö¸¦ °¡¸®Åµ´Ï´Ù. vm_minflt Çʵå´Â, ÂüÁ¶ ºñÆ®ÀÇ ½Ã¹Ä·¹À̼ÇÀ¸·Î ÀÏÀ¸ÄÑÁ³´Ù ÆäÀÌÁö ÆúÆ®ÀÇ ¼ö¸¦ ³ªÅ¸³À´Ï´Ù. vm_nswap (Àº)´Â, ÀϾ ½º¿ÒÀÇ ¼öÀÔ´Ï´Ù. ÆÄÀÏ ½Ã½ºÅÛÀÇ ÀÔ·Â/Ãâ·Â À̺¥Æ®ÀÇ È¸¼ö´Â, vm_inblk ¹× vm_oublk ¿¡ ÀÇÇØ ³ªÅ¸³³´Ï´Ù. ÀÌ·¯ÇÑ ¼ýÀÚ´Â, ½ÇÁ¦ÀÇ I/O ¸¸À» ¼Á´Ï´Ù. ij½Ì ±â±¸¿¡ ÀÇÇØ °ø±ÞµÈ µ¥ÀÌÅÍ´Â, ±× µ¥ÀÌÅ͸¦ ÀÐ°í ¾²±âÇÏ´Â ÃÖÃÊÀÇ ÇÁ·Î¼¼½º ¿¡ ´ëÇؼ­¸¸ °è»êµË´Ï´Ù.

getrusage(2), wait3(2), time(3)

vlimit() ÇÔ¼ö´Â, 4.2BSD ¿¡ ³ªÅ¸³µ½À´Ï´Ù.

ÀÌ ÇÔ¼ö´Â, ¾ÆÁ÷µµ Àç½ÇÀåµÇ°í ÀÖÁö ¾Ê½À´Ï´Ù.
June 4, 1993 BSD 4

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.