およびニュースあなたの最もよい資料源約 ハードウェア, BIOS そして インターネット

ヴィスタの記事 上50 ヴィスタのビデオ 柔らかいヴィスタ ヴィスタの助け

ヴィスタでプロセスの優先順位を、自動的に名指しで置きなさい


先日私はと遊んでいた イメージファイル実行選択 そしてSysinternals」 プロセスモニター、ヴィスタで。 私は興味深い問い合わせが起こるのを見た。 一例としてnotepad.exeを使用して、私は「PerfOptions」との呼ばれたキーについては私がメモ帳を動かしたときに問い合わせを見た[HKEY_LOCAL_MACHINE \ソフトウェア\マイクロソフト\ Windows NT \ CurrentVersion \イメージファイル実行選択\ notepad.exe]。 結果は一流の見つけられなくて、従って私はそれを調整することにした。 「PerfOptions」と示されたキーを加えた後私はメモ帳を再度動かした。 プロセスモニターでは、私は4つの価値については問い合わせを見た:

プロセスpriorities*との最近の調査のために、CpuPriorityClassは私をすぐにつかんだ。 見ること SetPriorityClass 機能、1は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の原稿(、それである1つに私の最初相当な試み笑わせてはいけない):

$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.

Related articles

1 comment

Read the comments left by other users below, or:

Get your own gravatar by visiting gravatar.com Henry Widmore
#1. January 31st, 2008, at 8:40 AM.

does this work for other os like XP or server 2003?

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> .