From owner-freebsd-questions Mon Nov 16 05:03:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA06318 for freebsd-questions-outgoing; Mon, 16 Nov 1998 05:03:40 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from main.piter.net (main.piter.net [195.201.22.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA06293 for ; Mon, 16 Nov 1998 05:03:20 -0800 (PST) (envelope-from cyril@main.piter.net) Received: (from cyril@localhost) by main.piter.net (8.8.7/8.8.7/sply) id QAA17527 for freebsd-questions@freebsd.org; Mon, 16 Nov 1998 16:06:09 +0300 (MSK) (envelope-from cyril) Date: Mon, 16 Nov 1998 16:06:09 +0300 (MSK) From: "Cyril A. Vechera" Message-Id: <199811161306.QAA17527@main.piter.net> To: freebsd-questions@FreeBSD.ORG Subject: strange disk I/O overload when free memory is large enough. how to fixc? Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I've met a problem, FreeBSD 2.2.6-RELEASE. On this system i run network database server wich operates with hash(3) and btree(3) tables, and perl5 client with C-lib via XSUB. in this case dbopen was done with NULL file (table in memory) The problem is that when i run massive records insertion, the database server is slows down and sometimes ps shows that db-server is marked with 'D': USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND netdbm 626 11.8 1.2 520 768 p3 D+ 3:31PM 0:14.58 netdbm and after half of second netdbm 626 11.8 1.2 520 768 p3 I+ 3:31PM 0:14.80 netdbm vmstat says when client is not running procs memory page faults cpu r b w avm fre flt re pi po fr sr w0 in sy cs us sy id 0 0 0 5340 35144 1 0 0 0 0 0 0 232 17 1 0 1 99 and when client works procs memory page faults cpu r b w avm fre flt re pi po fr sr w0 in sy cs us sy id 0 1 0 8544 34592 207 0 0 0 26 0 74 1432 5324 445 21 24 55 iostat reports about 2000 sps on wd0 (this machine has only wd0) there are no any NFS or same stuff. netdbm doesn't use any page protection mechanizm, but how can you see there is enough free memory vmstat -s says that 0 swap pager pageins 0 swap pager pages paged in 0 swap pager pageouts 0 swap pager pages paged out 348 vnode pager pageins 1591 vnode pager pages paged in 0 vnode pager pageouts 0 vnode pager pages paged out what is the problem? Sincerely your, Cyril A. Vechera email:cyril@piter.net --------- http://sply.piter.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message