ºñ½ºÅ¸¿¡¼ °úÁ¤ÀÇ ¿ì¼±¼øÀ§¸¦, ÀÚµ¿À¸·Î À̸§À¸·Î ¼³Á¤ÇϽʽÿÀ
ÀÏÀü¿¡ ³ª´ÂÀ¸·Î µ¹¾Æ´Ù´Ï¸ç ³î°í ÀÖ¾ú´Ù À̹ÌÁö ÆÄÀÏ ½ÇÇà ¼±ÅÃ±Ç ±×¸®°í Sysinternals' °¡°ø °¨½ÃÀÚ, ºñ½ºÅ¸¿¡¼. ³ª´Â Àç¹ÌÀÖ´Â Áú¹®ÀÌ ÀϾ °ÍÀ» º¸¾Ò´Ù. ÇÑ ¿¹·Î notepad.exe¸¦ »ç¿ëÇÏ¿©, ³ª´Â "PerfOptionsÀ̶ó°í"¿¡¼ ĪÇÑ ¿¼è¸¦ À§ÇØ ³ª°¡ ³ëÆ®ÆÐµå¸¦ ´Þ¸± ¶§ Áú¹®À» º¸¾Ò´Ù [HKEY_LOCAL_MACHINE \ ¼ÒÇÁÆ®¿þ¾î \ ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® \ Windows NT \ CurrentVersion \ À̹ÌÁö ÆÄÀÏ ½ÇÇà ¼±ÅÃ±Ç \ notepad.exe]. °á°ú´Â À¯¸íÇÑ Ã£¾Æ³»Áö ¾Ê¾Æ À̾ú´Ù, ±×·¡¼ ³ª´Â Àú°ÍÀ» Á¶Á¤ÇÏ´Â °ÍÀ» °áÁ¤Çß´Ù. "PerfOptionsÀ̶ó°í" Áö¸íµÈ ¿¼è¸¦ Ãß°¡ÇÑ ÈÄ¿¡, ³ª´Â ³ëÆ®ÆÐµå¸¦ ´Ù½Ã ´Þ·È´Ù. °¡°ø °¨½ÃÀÚ¿¡¼´Â, ³ª´Â 4°³ °¡Ä¡¸¦ À§ÇØ Áú¹®À» º¸¾Ò´Ù:
- IoPriority
- PagePriority
- CpuPriorityClass
- WorkingSetLimitInKB
°¡°ø priorities*¸¦ °¡Áø Ãֱ٠ŽÇè ¶§¹®¿¡, CpuPriorityClass´Â Àú¸¦ Áï½Ã ¿òÄÑÀâ¾Ò´Ù. º¸±â SetPriorityClass ±â´É, »ç¶÷Àº dwPriorityClass ¸Å°³º¯¼ö¸¦ À§ÇØ ´Ù¸¥ °¡Ä¡¸¦ º¼ ¼ö ÀÖ´Ù. ³ª´Â PerfOptions¿¡ ÀÖ´Â REG_DWORD¿¡ ÀÇÇÏ¿© Áö¸íµÈ CpuPriorityClass¸¦ âÁ¶Çϰí, ³ëÆ®ÆÐµå°¡ "HIGH_PRIORITY_CLASS"·Î ¹ß»çÇÒ Èñ¸Á¿¡ ÀÖ´Â 0¡¿80¿¡ °¡Ä¡¸¦ ³õ¾Ò´Ù. ´ë½Å, ±×°ÍÀº NORMAL_PRIORITY_CLASS (8)ÀÇ ¿ì¼±±Ç¿¡ ¹ß»çÇß´Ù - Á¶Á¤Àº ¾î¶² Ãæ°Ýµµ ¸¸µéÁö ¾Ê¾Ò¾ú´Ù. ±× ÈÄ¿¡, ³ª´Â 8¿¡ °¡Ä¡¸¦ ³õ°í ³ëÆ®ÆÐµå¸¦ ¹ß»çÇß´Ù. ³ëÆ®ÆÐµå´Â 8ÀÇ ¿ì¼±±Ç¿¡ ¹ß»çÇß´Ù. ³ª´Â 4¿¡ °¡Ä¡¸¦ ¹Ù²Ù°í, Àú°Í¿¡´Â ¾Æ¹« Ãæ°Ýµµ ¾ø¾ú´Ù. ³ª´Â 0¿¡ °¡Ä¡¸¦ - Ãæ°Ý ¹Ù²Ù¾ú´Ù. ³ª´Â 10¸¦ - Ãæ°Ý ½ÃµµÇß´Ù. ³ª´Â ³ª°¡ ´ë·« ¾Ë°í ÀÖ´ø °¡°ø ¿ì¼±±ÇÀÇ ¾Æ¹« ´Ù¸¥ ¸íºÎÀÛ¼º³ª¿¡ ¾î¶² µ¿Á¡µçÁö ¾ÈÀ¸·Î º¼ ¼ö ¾ø¾ú´Ù, ±×·¡¼ ³ª´Â, µÚ¿¡ ¿À´Â °á°ú¿Í ´õºÒ¾î 0¿¡¼ Ãâ¹ß, ½ÃÇà Âø¿À¸¦ ½ÃµµÇÏ´Â °ÍÀ» °áÁ¤Çß´Ù:
| CpuPriorityClass °¡Ä¡ | ³ëÆ®ÆÐµåÀÇ ¿ì¼±±Ç | ¿ì¼±±Ç Á¾·ù |
| 1 | 4 | ÇѰ¡ |
| 3 | 13 | ³ôÀº |
| 5 | 6 | BelowNormal |
| 6 | 10 | AboveNormal |
| ´Ù¸¥°Í ^ | 8 | Á¤»ó |
^= ³ª´Â ÇöÀç a¸¦ ´Þ¸®°í ÀÖ´Ù PowerShell ¸ðµç °¡´ÉÇÑ °¡Ä¡¸¦ ÅëÇØ ¹Ýº¹Çϱâ À§ÇÏ¿© ´ëº»À» ¾²½Ê½Ã¿À (2^32¿¡ °üÇÏ¿©¼¸¸¡¦ ÀÖ´Ù) Æø·ÎµÇ½Ê½Ã¿À ¸¸ÀÏ Á¸ÀçÇϸé, ÀÌ·¸°Ô REALTIME_PRIORITY_CLASS¸¦ À§ÇÑ CpuPriorityClass °¡Ä¡ÀÇ ¾Õ¿¡ µ¿¾ÈÀÏÁöµµ ¸ð¸¥´Ù. ¶ÇÇÑ Æø·ÎµÇ´Â ¿ì¼±±Ç Á¾·ù¸¦ ÁöÁ¤ÇÏ´Â ÀÌ¿ëµÉ ¼ö ÀÖ´Â ´Ù¸¥ °¡Ä¡°¡ ÀÖÀ»Áöµµ ¸ð¸¥´Ù. ³ª´Â ³ª°¡ »õ·Î¿î ¹«¾ùÀ̵çÀ»¡¦ Æø·ÎÇÏ´Â °æ¿ì¿¡ »õ·Î¿î ÈÁ¦¸¦ »õ·Ó°Ô Çϰųª ¹èÄ¡ÇÒ °ÍÀÌ´Ù
PowerShell ¿øº» (, ±×°ÍÀÌ´Ù °° ³ªÀÇ Ã¹¹øÂ° ³»¿ëÀÌ Ç³ºÎÇÑ ½Ãµµ ½Ç¼ÒÇÏÁö ¸»¶ó):
$cpc=0set-itemproperty "hklm: softwaremicrosoftwindows ntcurrentversionimage ÆÄÀÏ ½ÇÇà optionsnotepad.exeperfoptions" cpupriorityclass $cpcdo { $pp = [diagnostics.process]:: ½ÃÀÛ (" notepad.exe", "") $ppc = $pp.PriorityClass $pp. Á×À̱â () ¸¸¾à¿¡ ($ppc - ne "Á¤»ó") { ¾² ÁÖÀÎ $cpc $ppc } $cpc++ "hklm¸¦ ³õÀ¸½Ê½Ã¿À itemproperty: µ¿¾È¿¡ softwaremicrosoftwindows ntcurrentversionimage ÆÄÀÏ ½ÇÇà optionsnotepad.exeperfoptions" cpupriorityclass $cpc} ($cpc - lt 4294967295)
Èñ¸ÁÀÌ ÀÖ, PerfOptions - IoPriority, PagePriority ¹× WorkingSetLimitInKB¿¡ ÀÖ´Â ´Ù¸¥ °¡Ä¡·Î ÆÄ ³ª´Â ¾î¶²À» ÇÏ´Â ½Ã°£À» ã¾Æ³¾ °ÍÀÌ´Ù. ±×µéÀÌ ÇÏ°í ¾î¶² °ü°è°¡ ÀÖ´ÂÁöµµ ¸ð¸£´Â ó·³ IoPriority¿Í PagePriority ¼Ò¸® ±â¾ï prioritization ±×¸®°í IO prioritization ºñ½ºÅ¸¿¡¼. WorkingSetLimitInKB sounds self-explanatory, but how it¡¯s applied or how it¡¯s used, and other circumstances, are quite vague.
*= SetThreadPriority, Vista, and Autostart Locations, Setting the Priority of a Service Process via Script
Popularity: 2%
Written by «/\/\¨ª|ö¡¾ò\/»®©. Read more great feeds at is source WEBSITE
1 comment.
Read more articles on otherSoftware and Process Monitor and priority and sysinternals and PowerShell and vista.
- [+] Digg: Feature this article
- [+] Del.icio.us: Bookmark this article
- [+] Furl: Bookmark this article















#1. January 31st, 2008, at 8:40 AM.
does this work for other os like XP or server 2003?