Presentation is loading. Please wait.

Presentation is loading. Please wait.

Windows Summit 2010 12/31/2018 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may.

Similar presentations


Presentation on theme: "Windows Summit 2010 12/31/2018 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may."— Presentation transcript:

1 Windows Summit 2010 12/31/2018 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

2 Windows Summit 2010 12/31/2018 On/Off Scenarios Performance Analysis and Diagnosis Overview (オン/オフ シナリオ パフォーマンス解析 および診断の概要) Sylvain Goyette Program Manager Microsoft Corporation © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

3 議題 オン/オフ遷移 Windows®パフォーマンス ツール (WPT) の 使用法 ブート解析 シャットダウン解析 スリープ解析
皆様へのお願い リソース

4 目的 オン/オフ シナリオの機能的な動作に ついて理解する
オン/オフ シナリオの機能的な動作に ついて理解する パフォーマンス トレースを生成および 解析するための WPT の使用法について 説明する ブート、シャットダウン、および スリープの遷移に関するパフォーマンスの 問題を特定する

5 オン/オフ遷移 Windows システムは、3 種類のオン/オフ 遷移を実行 遷移にはそれぞれ複数のフェーズがある
ブート スリープ (スタンバイおよび休止状態) シャットダウン 遷移にはそれぞれ複数のフェーズがある ドライバー、サービス、またはアプリケー ションのパフォーマンスへの影響を評価す る前に、各オン/オフ遷移がどのように機能 するかを理解することが必要

6 オン/オフ遷移: ブート ブート遷移には、下記の 4 つのフェーズが存在 BIOSInitialization OSLoader
MainPathBoot PostBoot BIOSInitialization OSLoader MainPathBoot PostBoot 時間 ブート プロセスが 開始 BIOS が Winload.exe に 制御を譲渡 Winload.exe がカーネルに 制御を譲渡 デスクトップが "準備完了" と 報告 システム アイドル

7 オン/オフ遷移: ブートの初期フェーズ BIOSInitialization OSLoader
Windows Summit 2010 12/31/2018 オン/オフ遷移: ブートの初期フェーズ BIOSInitialization プラットフォーム ファームウェアが、ハード ウェア デバイスを識別して初期化し、次に、 Power-On Self Test (POST) を実行 目標時間は 10 秒未満 OSLoader Windows ローダーは、ディスクから最小の データを読み取るのに必要な基本システム ドライバー (BOOT_START) を読み込み ローダーは、Windows カーネルが実行可能に なるようにシステムを初期化 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

8 オン/オフ遷移: ブートの分解 MainPathBoot フェーズ 時間 MainPathBoot の詳細
Windows Summit 2010 12/31/2018 オン/オフ遷移: ブートの分解 MainPathBoot フェーズ BIOSInitialization OSLoader MainPathBoot PostBoot 時間 PreSMSS SMSSInit WinLogonInit ExplorerInit Winload.exe がカーネルに 制御を譲渡 カーネルが Smss.exe に 制御を譲渡 SCM が起動され、Winlogon が 初期化される Explorer.exe が起動 デスクトップの準備が完了して表示 MainPathBoot の詳細 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

9 オン/オフ遷移: MainPathBoot
Windows Summit 2010 12/31/2018 オン/オフ遷移: MainPathBoot PreSMSS 内部データ構造およびコンポーネントを初期化 BOOT_START ドライバーを初期化 追加のシステム デバイスを検出し、それらのドライ バーを読み込み バックグラウンドのプラグ アンド プレイ アクティビ ティの一部は SMSSInit と重複 SMSSInit レジストリを初期化 ビデオ セッションを初期化 (グラフィック アダプター ドライバーを呼び出し) サブシステム プロセスを開始 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

10 オン/オフ遷移: MainPathBoot
Windows Summit 2010 12/31/2018 オン/オフ遷移: MainPathBoot WinLogonInit ユーザー ログオン画面を表示 サービス コントロール マネージャーによって処理され るサービスを開始 グループ ポリシー スクリプトを実行 ExplorerInit デスクトップ ウィンドウ マネージャー (DWM) プロセ スを作成 Run および RunOnce キーによって指定されるアプリ ケーションを起動 CPU を集中的に使用する。ほとんどの場合、遅延は、 バックグラウンド アクティビティによって発生した 競合に起因 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

11 オン/オフ遷移: PostBoot PostBoot
Windows Summit 2010 12/31/2018 オン/オフ遷移: PostBoot PostBoot デスクトップの準備ができた後に生じるすべて のバックグラウンド アクティビティが含まれる ユーザーとデスクトップの対話を可能にする。 ただし、システムはバックグラウンドで引き続 き、サービス、トレイ アイコン、およびアプリ ケーション コードを起動している場合がある Xperf データが、バックグラウンド アクティビ ティが合理的にアイドル レベルに低下したこと を示したとき (累積アイドル時間が 10 秒) に、 このフェーズは完了したと見なされる © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12 最後のアプリ ケーションが 要求の処理を 完了
オン/オフ遷移: スリープ - サスペンド スリープのサスペンド部分には 5 つのフェーズが 存在 SuspendApps SuspendServices QueryDevices SuspendDevices HiberFileWrite (オプション) SuspendApps SuspendServices QueryDevices SuspendDevices HiberfileWrite ユーザーが サスペンドを開始 最後のアプリ ケーションが 要求の処理を 完了 最後の サービスが 要求の処理を 完了 最後の デバイスが 要求の処理を 完了 最後のデバイスが サスペンド状態になる システムが スリープ状態になる

13 オン/オフ遷移: スリープ - サスペンド SuspendApps SuspendServices
Windows Summit 2010 12/31/2018 オン/オフ遷移: スリープ - サスペンド SuspendApps 電力サービスを通じてすべてのウィンドウ アプリケーションにサスペンド通知を送信 これらの通知は順次送信され、アプリケー ションがそれらを処理するための時間は 最大で 2 秒間 SuspendServices 電源通知を受け取ることを選択したサービスに 対してのみ電源通知を送信 これらの通知を順次送信 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

14 オン/オフ遷移: スリープ - サスペンド QueryDevices SuspendDevices
Windows Summit 2010 12/31/2018 オン/オフ遷移: スリープ - サスペンド QueryDevices デバイスが電源状態の変更に対応できるよう、 電源状態に関する IRP_MN_QUERY_POWER 要求を送信 SuspendDevices システムの低電力状態に関する IRP_MN_SET_POWER 要求を送信 デバイス ドライバーは、適切なデバイス コン テキストを保存し、システムがスリープまたは 休止状態に入れるようデバイスを準備すること が必要 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

15 オン/オフ遷移: スリープ - 再開 スリープの再開部分には 3 つのフェーズが存在
BIOSInitialization (または HiberfileRead) ResumeDevices PostResume BIOSInitialization ResumeDevices PostResume プロセッサが 電源オン 遷移を開始 サービスと アプリケーションが再開 システムが アイドル状態になる BIOS が OS に制御を譲渡 カーネル電源マネージャーに よってデバイスが再開

16 オン/オフ遷移: スリープ - 再開 ResumeDevices PostResume
Windows Summit 2010 12/31/2018 オン/オフ遷移: スリープ - 再開 ResumeDevices システムがデスクトップを復元できるようになる前に すべてのデバイス再開操作を完了 CPU リソースの過度な消費またはプロシージャ 呼び出し (DPC) の大幅な遅延は、パフォーマンスに 大きく影響 PostResume 再開遷移の後の時間が対象 目標は、システムをできるだけ迅速にアイドル状態に すること © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

17 オン/オフ遷移: シャットダウン シャットダウン遷移には 3 つのフェーズが存在 UserSessionShutdown
SystemSessionShutdown KernelShutdown UserSessionShutdown SystemSessionShutdown KernelShutdown ユーザーがシステムのシャットダウンを 開始 サービスが シャットダウンされる 残りのシステムが シャットダウンされる ユーザーモード アプリケーションが シャットダウンされる

18 オン/オフ遷移: シャットダウン UserSessionShutdown SystemSessionShutdown
Windows Summit 2010 12/31/2018 オン/オフ遷移: シャットダウン UserSessionShutdown ユーザー セッションで実行されているすべての アプリケーションをシャットダウン - Client/Server Runtime Server Subsystem (Csrss.exe) によって処理 すべてのアプリケーションとハンドシェイクを実行 SystemSessionShutdown プレシャットダウン通知 - プレシャットダウン通知を 受け取るよう登録したすべてのサービスを順番に シャットダウン シャットダウン通知 - シャットダウン通知を受け取るよ う登録したすべてのサービスを並列でシャットダウン © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

19 WPT の使用 Windows パフォーマンス ツール (XPerf) キットに は、パフォーマンス解析ツールが付属
Windows Summit 2010 12/31/2018 WPT の使用 Windows パフォーマンス ツール (XPerf) キットに は、パフォーマンス解析ツールが付属 WPT キットは幅広いユーザーに有益 Windows Server® 2008 および Windows 7 での、 システムとアプリケーションのパフォーマンスの 測定と解析を目的として設計 WPT は次のサイトで入手可能 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

20 Windows Summit 2010 12/31/2018 WPT の使用: ツールの説明 WPT キットは、アーキテクチャごとに 1 つで、 MSI インストーラーとしてリリースされており、 現在はパフォーマンス解析ツール スイートが付属 ツール名 ファイル名 機能 トレース キャプチャ、 処理、およびコマンド ライン解析ツール Xperf.exe トレースをキャプチャし、それらを任意のコンピューターでの使用に備えて後処理して、コマンド ライン (アクションベース) トレース解析をサポート ビジュアル トレース解析ツール Xperfview.exe トレース コンテンツを対話型グラフおよびサマリー テーブルの形式で表示 オン/オフ遷移トレース キャプチャ ツール Xbootmgr.exe オン/オフ状態の遷移を自動化し、それらの遷移中にトレースをキャプチャ © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

21 WPT の使用: 手順 手順 1. ベースライン測定値のトレースの取得
Windows Summit 2010 12/31/2018 WPT の使用: 手順 手順 1. ベースライン測定値のトレースの取得 すべてのデバイス用の最新ドライバーを搭載し、 追加の機能またはアプリケーションは搭載して いない、リテール版の Windows インストールを 使用 手順 2. ベースラインの変更、または カスタム イメージのインストール オン/オフ遷移時間への影響を評価できるように、 デバイス、アプリケーション、および他のシステ ム拡張機能を一度に 1 つずつ追加 手順 3. 変更されたイメージ トレースの取得 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

22 WPT の使用: トレースの作成と解析 トレースの生成および解析方法 検査対象の電源状態の 遷移:
トレースを作成するには、「xbootmgr」に続けて 下記の文字列を入力 トレースを処理するには、 「xperf –i <ファイル名>」に続けて下記の文字列を入力 ブート -trace boot -a boot シャットダウン -trace shutdown -a shutdown サスペンドと再開 -trace standby -a suspend 休止状態と再開 -trace hibernate ブートと シャットダウン サイクル -trace rebootCycle -a boot -a shutdown (2 つの別々のコマンド ライン)

23 WPT の使用: トレース オプション トレース オプションは 2 種類 タイミング トレース 解析トレース
タイミング トレースは、システム上でオン/オフ 遷移パフォーマンスを測定するための優れた 低インパクトの方法を提供 -traceFlags base+cswitch+compact_cswitch 解析トレース かなりのインストルメンテーションが必要。インス トルメンテーションにより、問題の根本的な原因を より効率的に解析可能 -traceFlags latency+dispatcher -stackWalk Profile+CSwitch+ReadyThread

24 WPT の使用: 差異の削減 テスト結果の差異を少なくするには
Windows Summit 2010 12/31/2018 WPT の使用: 差異の削減 テスト結果の差異を少なくするには ‑prepsystem コマンド ライン オプションを Xbootmgr.exe で使用して、プリフェッチャーが完全に 自己最適化できるようにする。 固定ネットワーク接続をすべて削除する。 ワイヤレス アダプターを有効にしておくが、ネット ワークには接続しない。 ユーザー アカウント制御 (UAC) を無効にし、自動ログ イン用のユーザー プロファイルを構成する。 テスト署名によるパフォーマンスへの影響に注意する。 システム アイドルを 15 分間にして、カタログ整合 キャッシュが確実に作成されるようにする。 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

25 ブート遷移: 目標の起動時間 リテール版 Windows 7 の目標とする起動時間 BIOS 初期化時間を除外 そのクラスで最高のタイミング
Windows Summit 2010 12/31/2018 ブート遷移: 目標の起動時間 リテール版 Windows 7 の目標とする起動時間 BIOS 初期化時間を除外 そのクラスで最高のタイミング システムの種類 一般的な仕様 最適化された 起動時間 (秒) 高パフォーマンス デスクトップ デュアルコア 2.8 GHz CPU 10,000 RPM ディスク 3 GB メモリ 10.0 薄型ノート PC、 ソリッド ステート ディスク (SSD) デュアルコア 2 GHz CPU SSD 12.2 薄型ノート PC デュアルコア 2.4 GHz CPU 5,400 RPM ディスク 19.3 ネットブック 1.6 GHz CPU 1 GB メモリ 33.5 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

26 ブート遷移: XML サマリー XML サマリーを生成 XML レポートを検査する際は、下記に留意
xperf -i trace.etl -o summary.xml -a boot XML レポートを検査する際は、下記に留意 時間単位は、XML サマリー レポートの最上部 の timeFormat 行に表示 大半の間隔と操作は、開始時刻、終了時間、 および継続時間の 3 つによって記述

27 ブート遷移: XML サマリー ブート サマリー XML レポート Windows Summit 2010 12/31/2018
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

28 ブート遷移: 方法論 複数のトレースを実行して、たまに起こるイベン トの影響を軽減
Windows Summit 2010 12/31/2018 ブート遷移: 方法論 複数のトレースを実行して、たまに起こるイベン トの影響を軽減 ベースラインと変更されたトレースの両方に対し て、起動時間の全平均と相対的なサブフェーズ時 間を特定 下記の機能低下を特定 PnP アクティビティ サービス サブフェーズ 1 つの特定のフェーズに費やされる時間が増えて いると気付いた場合は、その timing ノードを展開 して、CPU とディスクの統計を表示 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

29 ブート遷移: フェーズごとの使用量 フェーズごとの CPU およびディスク使用量を特定 Windows Summit 2010
12/31/2018 ブート遷移: フェーズごとの使用量 フェーズごとの CPU およびディスク使用量を特定 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

30 ブート遷移: プラグ アンド プレイ ブート時に読み込まれ初期化されるドライバーの パフォーマンスに問題がありそうな場合は、ドラ イバーのプラグ アンド プレイ データを検査可能 PnP ノードを展開 PnP ノードの下に 3 つのフェーズのノードを表示 BootStart SystemStart Remainder

31 ブート遷移: プラグ アンド プレイ プラグ アンド プレイの遅延の特定 Windows Summit 2010 12/31/2018
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

32 ブート遷移: システム ビデオの初期化 システム セッションのビデオの初期化時間を計算
Windows Summit 2010 12/31/2018 ブート遷移: システム ビデオの初期化 システム セッションのビデオの初期化時間を計算 すべての関心のある SMSS イベントをフィルター処理 findstr.exe /C:"Microsoft-Windows-Subsys-SMSS" trace.csv > trace.csv.filtered findstr.exe /i “csrss wininit” trace.csv.filtered Csrss.exe の最初の起動の終了を検索 イベントの種類は最初の列: Microsoft-Windows-Subsys-SMSS/smss:ExecuteImage/Stop タイムスタンプは 2 列目、プロセス名は 6 列目 Wininit.exe の起動の開始を検索 Microsoft-Windows-Subsys-SMSS/smss:ExecuteImage/Start これら 2 つのタイムスタンプの差異を計算 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

33 ブート遷移: ユーザー ビデオの初期化 ユーザー セッションのビデオの初期化時間 を計算
すべての関心のある SMSS イベントをフィル ター処理 findstr.exe /C:"Microsoft-Windows-Subsys-SMSS" trace.csv > trace.csv.filtered findstr.exe /i "csrss winlogon" trace.csv.filtered Csrss.exe の 2 番目の起動の終了を検索 Winlogon.exe の起動の開始を検索 Microsoft-Windows-Subsys-SMSS/smss:ExecuteImage/Start これら 2 つのタイムスタンプの差異を計算

34 ブート遷移: WinLogonInit WinLogonInit パフォーマンスの脆弱性
Windows Summit 2010 12/31/2018 ブート遷移: WinLogonInit WinLogonInit パフォーマンスの脆弱性 WinLogonInit の実行中に多くの操作が並列に発生 多くのシステムにおいて、このサブフェーズは CPU バウンドであり、サイズの大きい I/O 要求 を保持 このフェーズで起動するサービスの優れたシチズ ンシップは、起動時間を最適化するために重要 サービスでは、依存関係を宣言するか読み込み順 序グループを使用して、それらのサービスが特定 の順序で起動するようにすることが可能。 Windows は順番に読み込み順序グループを処理 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

35 ブート遷移: サービス Xperfview.exe のサービス グラフにおける、 サービス開始時間間隔の位置を確認
Windows Summit 2010 12/31/2018 ブート遷移: サービス Xperfview.exe のサービス グラフにおける、 サービス開始時間間隔の位置を確認 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

36 ブート遷移: PostBoot PostBoot パフォーマンスの脆弱性
Windows は、レジストリ内の各種 Run キーと RunOnce キーのエントリ、およびファイル システム内の Startup フォルダーのエントリを検証して起動 パフォーマンスを向上させるうえでのこの フェーズの目標は、デスクトップ表示後に続行するバックグラウンド処理の量を測定して制限すること

37 ブート遷移: CPU 使用率 CPU 使用の問題を特定

38 Windows Summit 2010 12/31/2018 シャットダウン遷移: トレースの解析 WPT の Xperf.exe ツールと Xperfview.exe ツールを使用して、シャットダウン遷移の パフォーマンス データを解析 シャットダウンの XML サマリーを生成す るには、Xperf で -a shutdown アクション を使用 xperf -i trace.etl -o summary.xml -a shutdown © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

39 シャットダウン遷移: XML サマリー シャットダウン XML サマリー レポート Windows Summit 2010
12/31/2018 シャットダウン遷移: XML サマリー シャットダウン XML サマリー レポート © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

40 シャットダウン遷移: アプリケーション UserSession でのアプリケーション遅延の測定:
Windows Summit 2010 12/31/2018 シャットダウン遷移: アプリケーション UserSession でのアプリケーション遅延の測定: タスク 1: Summary.xml ファイル内のアプリケーション シャットダウン時間の監視 タスク 2: Xperfview で、遅いアプリケーションの特定: CPU スケジューリングで、クリティカル パスに沿って遅延を検出 CPU サンプリングで、CPU 使用の問題を検出 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

41 シャットダウン遷移: アプリケーション サマリー テーブルのスケジュール Slow_Shutdown.exe
スレッド 3604 は 5 秒間スリープ状態 (KeDelayExecution 関数の呼び出しによる)

42 シャットダウン遷移: アプリケーション CPU サンプリング CPU の使用量が多い領域を特定 Windows Summit 2010
12/31/2018 シャットダウン遷移: アプリケーション CPU サンプリング CPU の使用量が多い領域を特定 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

43 シャットダウン遷移: アプリケーション サマリー テーブルで、CPU を消費する アプリケーションを特定

44 シャットダウン遷移: サービス SCM 通知に応答しないサービスは、レポートの unresponsiveServices ノードで識別
XPerfView を使用してサービスのシャットダウンを ビジュアル化

45 スリープ遷移: トレースの解析 スタンバイおよび休止状態の解析
Windows Summit 2010 12/31/2018 スリープ遷移: トレースの解析 スタンバイおよび休止状態の解析 サスペンドおよび再開フェーズの XML サマリー を生成するには、Xperf で -a suspend アクショ ンを使用 xperf -i trace.etl -o summary.xml -a suspend © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

46 スリープ遷移: XML サマリー サスペンド XML サマリー レポート Windows Summit 2010 12/31/2018
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

47 スリープ遷移: アプリケーションとサービス
Windows Summit 2010 12/31/2018 スリープ遷移: アプリケーションとサービス SuspendApps ノードを展開して、プロセスごとの詳細なタイミングを表示 SuspendServices ノードを展開して、サービスの詳細なタイミングを表示 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

48 Windows Summit 2010 12/31/2018 スリープ遷移: サービス Suspend (または Query または Resume) Devices ノードを展開して、デバイスの詳細な タイミングを表示 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

49 Windows Summit 2010 12/31/2018 スリープ遷移: PostResume Xperfview での CPU およびディスク使用率 グラフによる CPU サンプリングでは、再開 されたシステムのアクティビティ レベルを 表示 現在は、PostResume メトリックの計算を サポートするツールは存在せず、トレースと ベースラインとを比較することを強く推奨 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

50 まとめ xbootmgr を使用して ETL トレースを生成する 制御された、繰り返し可能なテスト方法を使用する
クリーンな Windows イメージによるベースライン (基準 値) を確立する 変更されたイメージとベースラインとの比較によって機能 低下を検出する xperf を使用して遷移の XML サマリーを生成する xperfview を使用して、下記について掘り下げる CPU スケジューリング ビューで、クリティカル パスに沿った 遅延の検出 CPU サンプリングで、CPU 使用の問題の検出

51 皆様へのお願い WPT を使用して、オン/オフ シナリオにおけるパフォーマ ンスの問題を特定してください。
新しいサービス、アプリケーション、またはデバイス ドライバーの導入によって発生した機能低下を特定して ください。 ブート、シャットダウン、およびスリープのタイミングを 減らすことで、顧客満足度の向上を図ってください。 下記の Windows Summit 2010 プレゼンテーションを参照 してください。 SYS-T175: On/Off Scenarios: Common Issues, Recommendations, and Best Practices (オン/オフ シナリオ: 一般的な問題点、推奨事項、およびベスト プ ラクティス) このセッションの発表について、評価フォームへの記入を お願いいたします。

52 リソース Windows パフォーマンス ツール (WPT) キット
次のサイトから最新版をダウンロード WHDC Web サイトで「Windows オン/オフ遷移 ソリューション ガイド」を参照 OnOffTrans.mspx

53 Windows Summit 2010 12/31/2018 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Download ppt "Windows Summit 2010 12/31/2018 © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may."

Similar presentations


Ads by Google