2ch特化型サーバ・ロケーション構築作戦のスレッドです。
・2ちゃんねるのサーバロケーション、PIEに関する関連作業・調整事項
・DNS登録・変更関連の各種作業や調整事項
・2ちゃんねるのサーバで採用しているOS、FreeBSDに関する情報・調整事項
・各種作戦・プロジェクトとの連携、プロジェクト間の連携
等を取り扱います。
前スレ:2ch特化型サーバ・ロケーション構築作戦 Part52
http://qb5.2ch.net/test/read.cgi/operate/1277651499/
探検
2ch特化型サーバ・ロケーション構築作戦 Part53
■ このスレッドは過去ログ倉庫に格納されています
NGNG
134む@出先
2010/06/30(水) 18:02:21ID:rT0kLg8K0135む@出先
2010/06/30(水) 18:19:49ID:rT0kLg8K0 >>133
/usr/src/sys/kern/vfs_aio.c
結局、ここにいって、EAGAIN になっているみたい。
/*
* Queue a new AIO request. Choosing either the threaded or direct physio VCHR
* technique is done in this code.
*/
int
aio_aqueue(struct thread *td, struct aiocb *job, struct aioliojob *lj,
int type, struct aiocb_ops *ops)
{
struct proc *p = td->td_proc;
struct file *fp;
struct socket *so;
struct aiocblist *aiocbe, *cb;
struct kaioinfo *ki;
struct kevent kev;
struct sockbuf *sb;
int opcode;
int error;
int fd, kqfd;
int jid;
if (p->p_aioinfo == NULL)
aio_init_aioinfo(p);
ki = p->p_aioinfo;
ops->store_status(job, -1);
ops->store_error(job, 0);
ops->store_kernelinfo(job, -1);
if (num_queue_count >= max_queue_count ||
ki->kaio_count >= ki->kaio_qallowed_count) {
ops->store_error(job, EAGAIN);
return (EAGAIN);
}
(以下略)
/usr/src/sys/kern/vfs_aio.c
結局、ここにいって、EAGAIN になっているみたい。
/*
* Queue a new AIO request. Choosing either the threaded or direct physio VCHR
* technique is done in this code.
*/
int
aio_aqueue(struct thread *td, struct aiocb *job, struct aioliojob *lj,
int type, struct aiocb_ops *ops)
{
struct proc *p = td->td_proc;
struct file *fp;
struct socket *so;
struct aiocblist *aiocbe, *cb;
struct kaioinfo *ki;
struct kevent kev;
struct sockbuf *sb;
int opcode;
int error;
int fd, kqfd;
int jid;
if (p->p_aioinfo == NULL)
aio_init_aioinfo(p);
ki = p->p_aioinfo;
ops->store_status(job, -1);
ops->store_error(job, 0);
ops->store_kernelinfo(job, -1);
if (num_queue_count >= max_queue_count ||
ki->kaio_count >= ki->kaio_qallowed_count) {
ops->store_error(job, EAGAIN);
return (EAGAIN);
}
(以下略)
136む@出先
2010/06/30(水) 18:21:54ID:rT0kLg8K0 %grep kaio_qallowed_count *
vfs_aio.c: int kaio_qallowed_count; /* (*) maxiumu size of AIO queue */
vfs_aio.c: ki->kaio_qallowed_count = max_aio_queue_per_proc;
vfs_aio.c: ki->kaio_count >= ki->kaio_qallowed_count) {
%grep max_aio_queue_per_proc *
vfs_aio.c:static int max_aio_queue_per_proc = MAX_AIO_QUEUE_PER_PROC;
vfs_aio.c:SYSCTL_INT(_vfs_aio, OID_AUTO, max_aio_queue_per_proc, CTLFLAG_RW,
vfs_aio.c: &max_aio_queue_per_proc, 0,
vfs_aio.c: ki->kaio_qallowed_count = max_aio_queue_per_proc;
で、、、。
%sysctl -a | grep max_aio_queue_per_proc
vfs.aio.max_aio_queue_per_proc: 256
うーむー、まじかいな。
vfs_aio.c: int kaio_qallowed_count; /* (*) maxiumu size of AIO queue */
vfs_aio.c: ki->kaio_qallowed_count = max_aio_queue_per_proc;
vfs_aio.c: ki->kaio_count >= ki->kaio_qallowed_count) {
%grep max_aio_queue_per_proc *
vfs_aio.c:static int max_aio_queue_per_proc = MAX_AIO_QUEUE_PER_PROC;
vfs_aio.c:SYSCTL_INT(_vfs_aio, OID_AUTO, max_aio_queue_per_proc, CTLFLAG_RW,
vfs_aio.c: &max_aio_queue_per_proc, 0,
vfs_aio.c: ki->kaio_qallowed_count = max_aio_queue_per_proc;
で、、、。
%sysctl -a | grep max_aio_queue_per_proc
vfs.aio.max_aio_queue_per_proc: 256
うーむー、まじかいな。
137む@出先
2010/06/30(水) 18:24:26ID:rT0kLg8K0 %sysctl vfs.aio.max_aio_queue_per_proc=1024
vfs.aio.max_aio_queue_per_proc: 256 -> 1024
わーい。うごいた。
vfs.aio.max_aio_queue_per_proc: 256 -> 1024
わーい。うごいた。
138む@出先
2010/06/30(水) 18:25:09ID:rT0kLg8K0 ということで、
・SunOSさんのコーディングには虫はいないらしい
・FreeBSD側のチューニングが必要だったらしい
ということの模様。
・SunOSさんのコーディングには虫はいないらしい
・FreeBSD側のチューニングが必要だったらしい
ということの模様。
139む@出先
2010/06/30(水) 18:26:44ID:rT0kLg8K0 というわけで、このへんをチューニングすれば、
もっといい結果が得られるかもしれない、ということが新たに判明。
%sysctl vfs.aio
vfs.aio.max_buf_aio: 16
vfs.aio.max_aio_queue_per_proc: 1024
vfs.aio.max_aio_per_proc: 32
vfs.aio.unloadable: 0
vfs.aio.aiod_lifetime: 30000
vfs.aio.aiod_timeout: 10000
vfs.aio.num_buf_aio: 0
vfs.aio.num_queue_count: 513
vfs.aio.max_aio_queue: 1024
vfs.aio.target_aio_procs: 4
vfs.aio.num_aio_procs: 4
vfs.aio.max_aio_procs: 32
もっといい結果が得られるかもしれない、ということが新たに判明。
%sysctl vfs.aio
vfs.aio.max_buf_aio: 16
vfs.aio.max_aio_queue_per_proc: 1024
vfs.aio.max_aio_per_proc: 32
vfs.aio.unloadable: 0
vfs.aio.aiod_lifetime: 30000
vfs.aio.aiod_timeout: 10000
vfs.aio.num_buf_aio: 0
vfs.aio.num_queue_count: 513
vfs.aio.max_aio_queue: 1024
vfs.aio.target_aio_procs: 4
vfs.aio.num_aio_procs: 4
vfs.aio.max_aio_procs: 32
■ このスレッドは過去ログ倉庫に格納されています
ニュース
- 【SNS】「性的でキモい」 マルちゃん【赤いきつね】アニメCMが炎上 ★6 [煮卵★]
- 【日テレ】福田博之社長、引退の中居正広氏へ「長い間頑張っていただいた。感謝の気持ちはストレートにお伝えしたい」 [Ailuropoda melanoleuca★]
- ラーメン1杯250円に挑む店主「常に原価との勝負」「努力で生み出した一杯」 [バイト歴50年★]
- オンラインカジノ「常習芸能人リスト」流出で警察が狙う"本丸"「ゴシップ多めの主演級俳優A、元アイドルB、サバサバした40代女優C」 [Ailuropoda melanoleuca★]
- 「社会保険料が少子化を加速させている」Xで怒り爆発 [お断り★]
- 科学者への信頼…日本は68カ国中59位 [少考さん★]
- 【朗報】ファミリーマート和光北口店に行った【万博】 [859759869]
- おじゃる丸実況🎎🏡
- 【石破速報】中国で声優の声をAIで生成して販売した裁判で「声は人格の権利・利益であり本人に属するため権利侵害」という司法判断 [931948549]
- 下町ボブスレー初の五輪出場なるか…4度目の挑戦、イタリア選手にそり提供😲 [826239858]
- 【悲報】「東京」、家賃物価が高すぎて実は地方より自由に使えるお金が少ない貧困だった…え、じゃあ住むのになんのメリットあるのここ [732289945]
- 【速報】味覇(ウェイパ)を手に入れた、使い道教えろ [691850561]