.\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" From: @(#) sysctl. 8 8.1 (Berkeley) 6/6/93 .\" %FreeBSD: src/sbin/sysctl/sysctl. 8, v 1.47 2002/07/06 19:35:04 charnier Exp % .\" .\" $FreeBSD: doc/ja_JP.eucJP/man/man8/sysctl. 8, v 1.24 2002/11/18 06:17:45 horikawa Exp $ .\" .Dd March 10, 2002 .Dt SYSCTL 8 .Os .Sh ¸íĪ .Nm sysctl .Nd Ä¿³Î »óÅÂÀÇ ÃëµæÀ̳ª ¼³Á¤ .Sh ¼­½Ä .Nm .Op Fl bdeNnox .Ar name Ns Op = Ns Ar value .Ar ... .Nm .Op Fl beNnox .Fl a .Sh ÇØ¼³ .Nm (Àº)´Â Ä¿³Î »óŸ¦ ²¨³», ÀûÀýÇÑ ±ÇÇÑÀÌ ÀÖÀ¸¸é ÇÁ·Î¼¼½º°¡ Ä¿³Î »óŸ¦ ¼³Á¤ÇÏ´Â °ÍÀ» Çã¶ôÇÕ´Ï´Ù. ²¨³»Áö°í ÃæºÐÇØ ¼³Á¤ µÇ°Å³ª ÇÑ »óÅ´Â, .Pq Management Information Base .Pq Dq MIB Çü½ÄÀ» »ç¿ëÇØ ±â¼úµË´Ï´Ù. ÀÌ Çü½Ä¿¡¼­´Â, ¿ä¼Ò´Â ´å ``. ''·Î Á¢¼ÓµË´Ï´Ù. .Pp ÀÌÇÏÀÇ ¿É¼ÇÀ» »ç¿ë °¡´ÉÇÕ´Ï´Ù: .Bl -tag -width indent .It Fl A .Fl o a (¿Í)°ú µî°¡ÀÔ´Ï´Ù (ȣȯ¼º¿ë). .It Fl a ÇöÀç ÀÌ¿ë °¡´ÉÇÑ, µ¥ÀÌÅÍ Çü½ÄÀ» ¸ð¸£´Â °É(ÀÌÇÏ, Çü½Ä ºÒ¸íÀÇ º¯¼ö¶ó°í ĪÇÑ´Ù) (ÀÌ)°¡ ¾Æ´Ñ °ªÀ» ¿­°ÅÇÕ´Ï´Ù. 1 °³ ÀÌ»óÀÇ º¯¼ö¸íÀÌ ¸í·ÉÇàÀ¸·Î ÁöÁ¤µÇ¾úÀ» °æ¿ì, º»¿É¼ÇÀº ¹«½ÃµË´Ï´Ù. .It Fl b º¯¼öÀÇ °ªÀ» °¡°øÇÏÁö ¾Ê°í , ¹ÙÀ̳ʸ® Çü½Ä¿¡¼­ Ç¥½ÃÇÕ´Ï´Ù. º¯¼ö¸íÀ̳ª, ¸¶Áö¸· °³Çà ij¸¯ÅÍ´Â Ãâ·ÂµÇÁö ¾Ê½À´Ï´Ù. À̰ÍÀº, ´ÜÀÏÀÇ º¯¼ö¿¡ ´ëÇØ¼­ Á¶ÀÛÇÒ ¶§¿¡ Æí¸®ÇϰÚÁö¿ä. .It Fl d º¯¼öÀÇ °ª´ë½Å¿¡ ÇØ¼³À» Ç¥½ÃÇÕ´Ï´Ù. .It Fl e º¯¼öÀÇ À̸§°ú °ªÀ», .Ql = ±×¸®°í ´Ü¶ôÁþ½À´Ï´Ù. .Nm À¯Æ¿¸®Æ¼¿¡ Çǵå¹é °¡´ÉÇÑ Ãâ·ÂÀ» »ý¼ºÇϱâ À§Çؼ­ À¯¿ëÇÕ´Ï´Ù. .Fl N ¶Ç´Â .Fl n ÇÏÁö¸¸ ÁöÁ¤µÇ´Â °æ¿ì, ¶Ç´Â º¯¼ö°¡ ¼³Á¤µÇ´Â °æ¿ì, º»¿É¼ÇÀº ¹«½ÃµË´Ï´Ù. .It Fl N °ªÀÇ Ãâ·ÂÀº ¾ïÁ¦µÇ¾î, º¯¼ö¸í¸¸À» Ç¥½ÃÇÕ´Ï´Ù. ÇÁ·Î±×·¥ °¡´ÉÇÑ º¸¿Ï ±â´ÉÀ» °¡Áö´Â ½©·Î, À¯¿ëÇÕ´Ï´Ù. .Nm zsh ±×¸®°í º¯¼ö¸íÀ» º¸¿ÏÇÏ·Á¸é , ´ÙÀ½ÀÇ Äڵ带 »ç¿ëÇÕ´Ï´Ù: .Bd -literal -offset indent listsysctls () { set -A reply $(sysctl -AN ${1%. *}) } compctl -K listsysctls sysctl .Ed .It Fl n º¯¼ö¸íÀÇ Ãâ·ÂÀº ¾ïÁ¦µÇ¾î, °ª¸¸ÀÌ Ç¥½ÃµË´Ï´Ù. À̰ÍÀº ¼Ð º¯¼ö¸¦ ¼³Á¤Çϴµ¥ µµ¿òÀÌ µË´Ï´Ù. ¿¹¸¦ µé¾î, ÆäÀÌÁö »çÀÌÁ º¯¼ö .Va psize ¿¡ º¸Á¸ÇÏ·Á¸é , ÀÌÇÏ¿Í °°ÀÌ ÇÕ´Ï´Ù: .Pp .Dl "set psize=`sysctl -n hw.pagesize`" .It Fl o Çü½Ä ºÒ¸íÇÑ °ªÀ» Ç¥½ÃÇÕ´Ï´Ù (Åë»óÀº ¾ïÁ¦µË´Ï´Ù). ¼­½Ä°ú ±æÀ̰¡ Ç¥½ÃµÇ¾î °ªÀÇ ÃÖÃÊÀÇ 16 ¹ÙÀÌÆ®°¡ 16 Áø¼ö·Î ´ýÇÁ µË´Ï´Ù. .It Fl X .Fl x a (¿Í)°ú µî°¡ÀÔ´Ï´Ù (ȣȯ¼º¿ë). .It Fl x .Fl o (¿Í)°ú °°½À´Ï´Ù¸¸, Çü½Ä ºÒ¸íÀÇ º¯¼öÀÇ ÃÖÃÊÀÇ ¼ö¹ÙÀÌÆ®´ë½Å¿¡ ¸ðµç ³»¿ëÀÌ 16 Áø¼ö·Î ´ýÇÁ µË´Ï´Ù. .El .Pp .Nm ±×¸®°í ¾òÀ» ¼ö ÀÖ´Â Á¤º¸´Â, Á¤¼ö, ij¸¯ÅÍ ¶óÀÎ, µð¹ÙÀ̽º .Pq Vt dev_t , Çü½Ä ºÒ¸íÀÇ º¯¼öÀÔ´Ï´Ù. .Nm À¯Æ¿¸®Æ¼´Â ¸î°³ÀÇ Çü½Ä ºÒ¸íÀÇ º¯¼öÀÇ Çü½ÄÀ» ¾Ë°í ÀÖ´Â °Í¸¸À¸·Î, ±× ÀÌ¿ÜÀÇ °Í¿¡ ´ëÇØ 16 Áø´ýÇÁ¿¡ ÀÇÁöÇÕ´Ï´Ù. Çü½Ä ºÒ¸íÀÇ º¯¼öÀÇ Á¤º¸´Â, .Nm ps , .Nm systat , .Nm netstat µîÀÌ Æ¯º°ÇÑ ¸ñÀûÀÇ ÇÁ·Î±×·¥¿¡ ÀÇÇØ ÃëµæµÇ¾úÀ» °æ¿ì¿¡, º¸´Ù È¿°úÀûÀÔ´Ï´Ù. .Pp ij¸¯ÅÍ ¶óÀΰú Á¤¼öÀÇ Á¤º¸¸¦ °£´ÜÇÏ°Ô Á¤¸®ÇØ ÀÌÇÏ¿¡ ³ªÅ¸³À´Ï´Ù. ÀÌ·¯ÇÑ º¯¼öÀÇ »ó¼¼ÇÑ ¼³¸íÀº, .Xr sysctl 3 (À»)¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. .Pp º¯°æ °¡´ÉÀÇ ¿­Àº, ÀûÀýÇÑ ±ÇÇÑÀ» °¡Áö´Â ÇÁ·Î¼¼½º°¡ ±× °ªÀ» º¯°æ ÇÒ ¼ö ÀÖ´ÂÁö ¾î¶²Áö¸¦ ³ªÅ¸³»°í ÀÖ½À´Ï´Ù. ij¸¯ÅÍ ¶óÀÎ, Á¤¼ö, µð¹ÙÀ̽ºÄ¡¸¦ .Nm ±×¸®°í ¼³Á¤ °¡´ÉÇÕ´Ï´Ù. µð¹ÙÀ̽ºÄ¡ .Ar value (Àº)´Â, ij¸¯ÅÍ µð¹ÙÀ̽º ½ºÆä¼È ÆÄÀϸíÀ¸·Î ÁöÁ¤ °¡´ÉÇÕ´Ï´Ù. Ư¼öÇÑ °ª .Cm off (¿Í)°ú .Cm none ÇÏ .Dq µð¹ÙÀ̽º ¾øÀ½ (À»)¸¦ ÀǹÌÇÕ´Ï´Ù. .Bl -column security.bsd.unprivileged_read_msgbuf integerxxx .It Sy "¸íĪÇü º¯°æ °¡´É .It "kern.ostype ij¸¯ÅÍ ¶óÀÎ no .It "kern.osrelease ij¸¯ÅÍ ¶óÀÎ no .It "kern.osrevision Á¤¼ö no .It "kern.version ij¸¯ÅÍ ¶óÀÎ no .It "kern.maxvnodes Á¤¼ö yes .It "kern.maxproc Á¤¼ö no .It "kern.maxprocperuid Á¤¼ö yes .It "kern.maxfiles Á¤¼ö yes .It "kern.maxfilesperproc Á¤¼ö yes .It "kern.argmax Á¤¼ö no .It "kern.securelevel Á¤¼ö ´Ã¸± »Ó .It "kern.hostname ij¸¯ÅÍ ¶óÀÎ yes .It "kern.hostid Á¤¼ö yes .It "kern.clockrate struct no .It "kern.posix1version Á¤¼ö no .It "kern.ngroups Á¤¼ö no .It "kern.job_control Á¤¼ö no .It "kern.saved_ids Á¤¼ö no .It "kern.boottime struct no .It "kern.domainname ij¸¯ÅÍ ¶óÀÎ yes .It "kern.filedelay Á¤¼ö yes .It "kern.dirdelay Á¤¼ö yes .It "kern.metadelay Á¤¼ö yes .It "kern.osreldate ij¸¯ÅÍ ¶óÀÎ no .It "kern.bootfile ij¸¯ÅÍ ¶óÀÎ yes .It "kern.corefile ij¸¯ÅÍ ¶óÀÎ yes .It "kern.dumpdev dev_t yes .It "kern.logsigexit Á¤¼ö yes .It "security.bsd.suser_enabled Á¤¼ö yes .It "security.bsd.see_other_uids Á¤¼ö yes .It "security.bsd.unprivileged_proc_debug Á¤¼ö yes .It "security.bsd.unprivileged_read_msgbuf Á¤¼ö yes .It "vm.loadavg struct no .It "hw.machine ij¸¯ÅÍ ¶óÀÎ no .It "hw.model ij¸¯ÅÍ ¶óÀÎ no .It "hw.ncpu Á¤¼ö no .It "hw.byteorder Á¤¼ö no .It "hw.physmem Á¤¼ö no .It "hw.usermem Á¤¼ö no .It "hw.pagesize Á¤¼ö no .It "hw.floatingpoint Á¤¼ö no .It "hw.machine_arch ij¸¯ÅÍ ¶óÀÎ no .It "machdep.console_device dev_t no .It "machdep.adjkerntz Á¤¼ö yes .It "machdep.disable_rtc_set Á¤¼ö yes .It "machdep.guessed_bootdev ij¸¯ÅÍ ¶óÀÎ no .It "user.cs_path ij¸¯ÅÍ ¶óÀÎ no .It "user.bc_base_max Á¤¼ö no .It "user.bc_dim_max Á¤¼ö no .It "user.bc_scale_max Á¤¼ö no .It "user.bc_string_max Á¤¼ö no .It "user.coll_weights_max Á¤¼ö no .It "user.expr_nest_max Á¤¼ö no .It "user.line_max Á¤¼ö no .It "user.re_dup_max Á¤¼ö no .It "user.posix2_version Á¤¼ö no .It "user.posix2_c_bind Á¤¼ö no .It "user.posix2_c_dev Á¤¼ö no .It "user.posix2_char_term Á¤¼ö no .It "user.posix2_fort_dev Á¤¼ö no .It "user.posix2_fort_run Á¤¼ö no .It "user.posix2_localedef Á¤¼ö no .It "user.posix2_sw_dev Á¤¼ö no .It "user.posix2_upe Á¤¼ö no .It "user.stream_max Á¤¼ö no .It "user.tzname_max Á¤¼ö no .El .Sh »ç¿ë¿¹ ¿¹¸¦ µé¾î, ½Ã½ºÅÛÁß¿¡¼­ ¿ë¼­µÇ°í ÀÖ´Â ÃÖ´ëÀÇ ÇÁ·Î¼¼½º¼ö¸¦ ¾Ë°í ½Í´Ù ¶§´Â, ÀÌÇÏ¿Í °°ÀÌ ÇÕ´Ï´Ù: .Pp .Dl "sysctl kern.maxproc" .Pp ½Ã½ºÅÛÁß¿¡¼­ ¿ë¼­µÇ°í ÀÖ´Â ÃÖ´ëÀÇ ÇÁ·Î¼¼½º¼ö¸¦ 1000 À¸·Î ¼³Á¤ÇÑ´Ù ¿¡´Â, ÀÌÇÏ¿Í °°ÀÌ ÇÕ´Ï´Ù: .Pp .Dl "sysctl kern.maxprocperuid=1000" .Pp Å©·¡½¬ ´ýÇÁ¿¡ »ç¿ëÇÏ´Â µð¹ÙÀ̽º´Â ´ÙÀ½°ú °°ÀÌ ÁöÁ¤ °¡´ÉÇÕ´Ï´Ù: .Pp .Dl "sysctl kern.dumpdev=/dev/somedev" .Pp À̰ÍÀº ´ÙÀ½°ú µî°¡ÀÔ´Ï´Ù .Pp .Dl "dumpon /dev/somedev" .Pp ½Ã½ºÅÛÀÇ Å¬·°·¹ÀÌÆ®¿¡ °üÇÑ Á¤º¸¸¦ ¾òÀ¸·Á¸é , ÀÌÇÏÀÇ °°°Ô ÇÕ´Ï´Ù: .Pp .Dl "sysctl kern.clockrate" .Pp ½Ã½ºÅÛ ºÎÇÏ (·Îµå¡¤¾Ö¹ö¸®Áö)ÀÇ È÷½ºÅ丮¿¡ °üÇÑ Á¤º¸¸¦ ¾òÀ¸·Á¸é , ÀÌÇÏ¿Í °°ÀÌ ÇÕ´Ï´Ù: .Pp .Dl "sysctl vm.loadavg" .Pp ¿©±â¿¡ ¿Ã¸° °Í ÀÌ¿ÜÀÇ º¯¼öµµ Á¸ÀçÇÕ´Ï´Ù. ±×°Íµé¿¡ °üÇѺ¸´Ù ±íÀº Àǹ̸¦ ¾È´Ù ¹«¾ùº¸´Ù ÀÚÁÖ(Àß), ÇÑÆí, ¾Æ¸¶ À¯ÀÏÇÑ ¹æ¹ýÀº, ±×°ÍµéÀ» Á¤ÀÇÇϰí ÀÖ´Â ¿ø½Ã Äڵ带 º¸´Â ÀÏÀÎ °ÍÀº ÇøÀǰ¡ ¾ø´Â »ç½ÇÀÌÁö¿ä. .Sh °ü·Ã ÆÄÀÏ .Bl -tag -width ".Aq Pa netinet/icmp_var.h" -compact .It Aq Pa sys/sysctl.h Åé ·¹º§ÀÇ ½Äº°ÀÚ, Á¦ 2 ·¹º§ÀÇ Ä¿³Î/Çϵå¿þ¾î ½Äº°ÀÚ, ±×¸®°í À¯Àú ·¹º§ ½Äº°ÀÚÀÇ Á¤ÀÇ .It Aq Pa sys/socket.h Á¦ 2 ·¹º§ÀÇ ³×Æ®¿öÅ© ½Äº°ÀÚÀÇ Á¤ÀÇ .It Aq Pa sys/gmon.h Á¦ 3 ·¹º§ÀÇ ÇÁ·ÎÆÄÀÏ ½Äº°ÀÚÀÇ Á¤ÀÇ .It Aq Pa vm/vm_param.h Á¦ 2 ·¹º§ÀÇ °¡»ó ¸Þ¸ð¸® ½Äº°ÀÚÀÇ Á¤ÀÇ .It Aq Pa netinet/in.h Á¦ 3 ·¹º§ÀÇ ÀÎÅÍ³Ý ½Äº°ÀÚ¿Í Á¦ 4 ·¹º§ÀÇ IP ½Äº°ÀÚÀÇ Á¤ÀÇ .It Aq Pa netinet/icmp_var.h Á¦ 4 ·¹º§ÀÇ ICMP ½Äº°ÀÚÀÇ Á¤ÀÇ .It Aq Pa netinet/udp_var.h Á¦ 4 ·¹º§ÀÇ UDP ½Äº°ÀÚÀÇ Á¤ÀÇ .El .Sh ȣȯ¼º .Fl w ¿É¼ÇÀº Ãßõ µÇÁö ¾Ê°í, ÀÔ´Ù¹°¾î ¹«½ÃµË´Ï´Ù. .Sh °ü·Ã Ç׸ñ .Xr sysctl 3 , .Xr sysctl.conf 5 .Sh ¹ö±× ÇöÀç »óÅ·μ­´Â .Nm À¯Æ¿¸®Æ¼´Â, sysctl Æ®¸®ÀÇ ÃßÀû, ¹×, Çü½Ä°ú À̸§ÀÇ Á¤º¸¸¦ ¾òÀ» ¶§¿¡, ¹®¼­È­µÇ¾î ÀÖÁö ¾ÊÀº Ä¿³ÎÀÇ sysctl ±â´É¿¡ÀÇ ÀÎÅÍÆäÀ̽º¸¦ »ç¿ëÇϰí ÀÖ½À´Ï´Ù. ÀÌ ¹æ¹ý¿¡ °üÇÑ ¿Ã¹Ù¸¥ ÀÎÅÍÆäÀ̽º´Â, ÇöÀç °ËÅäÁßÀÔ´Ï´Ù. .Sh ¿ª»ç .Nm À¯Æ¿¸®Æ¼´Â .Bx 4.4 ±×¸®°í óÀ½ µîÀåÇß½À´Ï´Ù. .Pp .Fx 2.2 ÀÇ .Nm (Àº)´Â ÇöÀúÇÏ°Ô °³·®µÇ°í ÀÖ½À´Ï´Ù.