2010年1月の記事SystemTapでMySQLのDisk I/Oを分析するの続きです。以前作成したSystemTapスクリプトは、実はMySQL 5.5のDisk I/Oを分析することができませんでした。というのも、MySQL 5.5からInnoDBが非同期I/Oを行うようになったのですが、以前のスクリプト... 続きを読む
プロセスがブロックする要因の一つにファイルI/Oがあります。これを同期I/Oと言いますが、POSIXではAIO(非同期 I/O、Asynchronous I/O)も定義しており、I/O中でもプロセスがブロックせず他の処理を進められるようになります。 本記事ではバッファキャッシュか... 続きを読む
One thing I noticed ever since getting a multi-core system was that the reference FLAC encoder is not multi-threaded. This isn't a huge problem for most people as you can simply encode multiple files at the same time but I usually rip my audi... 続きを読む
KLab では一般の方々に参加頂いて開催している勉強会以外にも社内だけで行っている勉強会が幾つかあります。 このページでは、これらの中から公開可能な社内勉強会の内容、資料を紹介していきたいと思います。 社内勉強会(2008/02/04) antとテキストエディタで... 続きを読む
After getting covered with benchmark and stumbling over time-outs reported by http_load it was time to look a bit deeper into the problem. http://www.lighttpd.net/2007/3/5/thread-starvation talks about how you can reduce the probability of ti... 続きを読む
The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition Copyright © 2001-2004 The IEEE and The Open Group, All Rights reserved. DESCRIPTION The <aio.h> header shall define the aiocb structure which shall include at least the ... 続きを読む
Lazy Asynchronous I/O For Event-Driven Servers Khaled Elmeleegy, Anupam Chanda, and Alan L. Cox Department of Computer Science Rice University, Houston, Texas 77005, USA {kdiaa,anupamc,alc}@cs.rice.edu - Willy Zwaenepoel School of Computer an... 続きを読む
The kernel's support for asynchronous I/O is incomplete, and it always has been. While certain types of operations (direct filesystem I/O, for example) work well in an asynchronous mode, many others do not. Often implementing asynchronous ope... 続きを読む
kernel 2.6.24 あたりで入るかもしれない Syslets と threadlets について。気になるので Linux Platform Weather Forecast http://www.linux-foundation.org/en/Linux_Platform_Weather_Forecast より抜粋して和訳してみた。 “Syslets”はカーネル内で小さな... 続きを読む
Diff of /trunk/libevent/kqueue.c Parent Directory | Revision Log | Patch revision 148, Thu Apr 14 23:28:06 2005 UTC revision 165, Wed May 11 03:34:42 2005 UTC 続きを読む
FreeBSD 日本語マニュアル検索 (jman/japropos/jwhatis) 日本語 man コマンド類 (ja-man-1.1j_5) と日本語 man ドキュメント (ja-man-doc-5.4 (5.4-RELEASE 用) など) をインストールすると、以下のような manコマンド閲覧、キーワード検索が コンソールからで... 続きを読む
The Single UNIX ® Specification, Version 2 Copyright © 1997 The Open Group NAME signal.h - signals SYNOPSIS #include <signal.h> DESCRIPTION The <signal.h> header defines the following symbolic constants, each of which expands to a distinct co... 続きを読む
Solaris Express Reference Manual Collection >> man pages section 3: Library Interfaces and Headers >> Library Interfaces and Headers >> poll.h(3HEAD) – definitions for the poll() function poll.h(3HEAD) NAME | Synopsis | Description | Attribu... 続きを読む
FreeBSD 日本語マニュアル検索 (jman/japropos/jwhatis) 日本語 man コマンド類 (ja-man-1.1j_5) と日本語 man ドキュメント (ja-man-doc-5.4 (5.4-RELEASE 用) など) をインストールすると、以下のような manコマンド閲覧、キーワード検索が コンソールからで... 続きを読む
Kip Macy Wed, 06 Mar 2002 07:12:17 -0800 FreeBSD does not support queued signals (part of RT Posix) which is required for this. -Kip ========================================================================= For RAIDANT status see: http://cran... 続きを読む
3月版 Greg K-H、デバイスドライバ無料開発宣言!? 上川純一 日本ヒューレット・パッカード株式会社 コンサルティング・インテグレーション統括本部 2007/3/27 linux-kernelメーリングリスト(以下LKML)かいわいで起きるイベントを毎月お伝えする、Linux Ker... 続きを読む
Level: IntermediateM. Tim Jones (mtj@mtjones.com), Consultant Engineer, Emulex 29 Aug 2006The most common input/output (I/O) model used in Linux® is synchronous I/O. After a request is made in this model, the application blocks until the requ... 続きを読む
libaio(Linuxの非同期I/Oライブラリ)の使い方 2007-06-05 (Tue) 4:53 Unix Linuxで非同期I/Oを行うためのライブラリ「libaio」の使い方を書いてみる事にする。少し昔の話になるが、lighttpdが使用し、スループットを80%も上げたらしい。 TOEFLに向けて転置ファ... 続きを読む
TheC10kProblem - 「C10K問題」(クライアント1万台問題)とは、ハードウェアの性能上は問題がなくても、あまりにもクライアントの数が多くなるとサーバがパンクする問題のこと 目次 この文書について C10K 問題 関連サイト まず読むべき本 I/O フレームワーク ... 続きを読む
AsyncIOについて(その1)の続き. NONBlockでIO処理をする方法としてselectとシグナルを使う方法があるというのが前回の話だったが, selectはselectよりkqueue,epollで述べたとおり, ビジーループがかかるためあまり効率はよくなく,シグナル方式は制約があるため... 続きを読む
Lighttpd 1.5 系がスゴイらしい はてブで lighty のブログがあることを知ってブログを見てみました。lighty の中の人が書いてます。 ナント、lighty 1.5 系が pre release されているではありませんか! なんでも、1.5 系は いままでより 80% のスループット向... 続きを読む
Overview AIO enables even a single application thread to overlap I/O operations with other processing, by providing an interface for submitting one or more I/O requests in one system call (io_submit()) without waiting for completion, and a se... 続きを読む