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
■ このスレッドは過去ログ倉庫に格納されています
ニュース
- トランプ大統領、米自動車メーカー幹部に関税を理由とした値上げをしないよう警告 ★2 [Hitzeschleier★]
- 悠仁さまが筑波大学周辺で“1人暮らし”へ つくば市内の集合住宅の一室を借り職員の常駐はなし [おっさん友の会★]
- 【速報】米地質調査所によると、ミャンマー中部でマグニチュード7.7の地震発生 [蚤の市★]
- 【速報】歌手・中孝介容疑者を現行犯逮捕 公共浴場で面識ない男性に性的暴行の疑い ★4 [Anonymous★]
- 2024年の小中高生の自殺者数、529人で過去最多…女子が初めて男子を上回る [ぐれ★]
- 通勤手当は「報酬」か 石破総理 感覚は「報酬?そ、そ、そうですかね」 通勤手当を貰うと社会保険料の負担が増加… [ぐれ★]
- 【実況】博衣こよりのえちえちVTuber甲子園2032🧪
- おにぎり69円、お稲荷さん169円、助六259円に値上げ… 尾張や…ありがとう自民党… [667744927]
- 【実況】博衣こよりのえちえちVTuber甲子園2031🧪
- プロ野球開幕戦🏡
- 【速報】ミャンマーで超巨大地震、タイでも大きな被害。震源から9百キロ離れたバンコクで高層ビルが倒壊 [732289945]
- 安倍昭恵、車イス生活へ [241672384]