ビジネス WinDbg入門 アクティブなスレッドと非アクティブなスレッド


高速データ処理とハイパースレッディング

Herb Sutter氏のこの論文を紹介する第2回目は次の段落を取り上げます。まずは原文と訳文をご覧ください。

Your free lunch will soon be over. What can you do about it? What are you doing about it?

The major processor manufacturers and architectures, from Intel and AMD to Sparc and PowerPC, have run out of room with most of their traditional approaches to boosting CPU performance. Instead of driving clock speeds and straight-line instruction throughput ever higher, they are instead turning en masse to hyperthreading and multicore architectures. Both of these features are already available on chips today; in particular, multicore is available on current PowerPC and Sparc IV processors, and is coming in 2005 from Intel and AMD. Indeed, the big theme of the 2004 In-Stat/MDR Fall Processor Forum was multicore devices, as many companies showed new or updated multicore processors. Looking back, it’s not much of a stretch to call 2004 the year of multicore.

And that puts us at a fundamental turning point in software development, at least for the next few years and for applications targeting general-purpose desktop computers and low-end servers (which happens to account for the vast bulk of the dollar value of software sold today). In this article, I’ll describe the changing face of hardware, why it suddenly does matter to software, and how specifically the concurrency revolution matters to you and is going to change the way you will likely be writing software in the future.

Arguably, the free lunch has already been over for a year or two, only we’re just now noticing.

この英文は次のような意味を持っています。
タダの昼飯にありつける時代は終わった。この流れを止めることはできない。流れに乗る必要がある。

Intel、AMD、Sparc、そして、PowerPC。主要なプロセッサー開発元とプロセッサアーキテクチャはすでに打つ手がない状態に入った。CPUパフォーマンスは、従来の手法では改善されない。クロックスピードを向上させ、命令を直線的に実行させる手法はもはや通用しなくなった。プロセッサ開発元は、次なるスループットの改善策を採用し始めている。その次なる改善策とは何か。それは、ハイパースレッディングとマルチコアアーキテクチャである。これら2つの改善策はすでに市場に出ているチップに組み入れられている。特に、マルチコアアーキテクチャは現在のPowerPCとSparc IVプロセッサで採用されており、IntelとAMDも2005には対応チップを市場に投入してくる。2004年のIn-Stat/MDR Fall Process Forum最大のテーマは、マルチコアデバイスであった。そのフォーラムでは、多数の企業が新しいバージョンのマルチコアプロセッサを展示していた。今振り返ってみると、2004年はマルチコア元年であったといっても決して誇張ではない。

ソフトウェア業界は転換点に差し掛かっている。私たちは少なくとも次の2、3年の間ソフトウェア開発方法を根本から考え直す時期に来ている。ソフトウェア出荷高の多くを占めている汎用デスクトップコンピュータとローエンドサーバ用のアプリケーションの開発者は発想の転換が求められる。本稿では、ハードウェアの変化とソフトウェアへの影響、同時実行の革新性、そして、今後のソフトウェア開発手法を取り上げる。

いろいろな見方があるにせよ、タダの昼飯にありつける時代は1、2年前にすでに終焉を迎えていた。私たちは今そのことに気づき始めているに過ぎない。

この段落には、ハイパースレッディングという用語が使われています。この用語は、Simultaneous Multi-Threading(SMT)の別名と考えてよいでしょう。今後のソフトウェア開発では、このSMTが重要な意味を持つとSutter氏は主張しています。ところが皆さん、SMTは、新しい技術ではありません。筆者は、この本の出版の関係者であり、書内では、次の2点が強調されています。

・マルチスレッド化は可能なら避けるべきである
・マルチスレッド化した場合には、マルチプロセッサー環境でテストすべきである

Sutter氏は、マルチコアが一般化してきたため、システムパフォーマンス改善の観点から、マルチスレッド化を積極的に推し進めるべきである、と主張しているようです。テラバイト級のデータが知らぬ間にシステム内に蓄積される時代に入りました(関連連載)。この視点に立つと、Sutter氏の論点は間違いではないでしょう。

前へ | 次へ


 WinDbgスクリプティング講座  ホーム


Copyright©豊田孝 2004- 2008
本日は2008-12-04です。