From ishizuka@ish.org  Mon May 19 03:48:29 2003
Return-Path: <ishizuka@ish.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E1EF637B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 May 2003 03:48:29 -0700 (PDT)
Received: from onion.ish.org (onion.ish.org [219.118.161.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0E2E643F85
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 May 2003 03:48:27 -0700 (PDT)
	(envelope-from ishizuka@ish.org)
Received: from onion.ish.org (ishizuka@localhost [IPv6:::1])
	by onion.ish.org (8.12.9/8.12.9/2003-03-30) with ESMTP id h4JAmPaO068282
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 May 2003 19:48:25 +0900 (JST)
	(envelope-from ishizuka@onion.ish.org)
Received: (from ishizuka@localhost)
	by onion.ish.org (8.12.9/8.12.9/Submit) id h4JAmPhM068281;
	Mon, 19 May 2003 19:48:25 +0900 (JST)
	(envelope-from ishizuka)
Message-Id: <200305191048.h4JAmPhM068281@onion.ish.org>
Date: Mon, 19 May 2003 19:48:25 +0900 (JST)
From: Masachika ISHIZUKA <ishizuka@ish.org>
Reply-To: Masachika ISHIZUKA <ishizuka@ish.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: kern.maxvnodes cannot limit the number of vnodes in use
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         52425
>Category:       kern
>Synopsis:       kern.maxvnodes cannot limit the number of vnodes in use
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 19 03:50:14 PDT 2003
>Closed-Date:    Sat May 31 11:10:09 PDT 2003
>Last-Modified:  Sat May 31 11:10:09 PDT 2003
>Originator:     Masachika ISHIZUKA
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
>Environment:
System: FreeBSD test.ish.org 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Mon May 19 15:24:36 JST 2003 ishizuka@:/usr/src/sys/compile/test i386

	CPU: Dual Xeon 2.4GHz
	RAM: 2GB
	 OS: (1) FreeBSD 4.8R GENERIC kernel
	     (2) Customized 4.8R kernel with SMP, APIC_IO, HTT and
		 KVA_PAGES=512 options.

	
>Description:
	I have mank a disk that has many (more than ten millions) hard links
	and /etc/periodic/weekly/310.locate makes this machine slow down
	extremely. The usage of vnode is as follows.

	kern.maxvnodes: 134882
	kern.minvnodes: 33720
	debug.numvnodes: 375907
	debug.wantfreevnodes: 25
	debug.freevnodes:  27046

	I think kern.maxvnodes should limit the debug.numvnodes.

>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:

From: David Schultz <das@FreeBSD.ORG>
To: Masachika ISHIZUKA <ishizuka@ish.org>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/52425: kern.maxvnodes cannot limit the number of vnodes in use
Date: Thu, 22 May 2003 04:06:33 -0700

 On Mon, May 19, 2003, Masachika ISHIZUKA wrote:
 > 	I have mank a disk that has many (more than ten millions) hard links
 > 	and /etc/periodic/weekly/310.locate makes this machine slow down
 > 	extremely. The usage of vnode is as follows.
 > 
 > 	kern.maxvnodes: 134882
 > 	kern.minvnodes: 33720
 > 	debug.numvnodes: 375907
 > 	debug.wantfreevnodes: 25
 > 	debug.freevnodes:  27046
 > 
 > 	I think kern.maxvnodes should limit the debug.numvnodes.
 
 Tor Egge addressed this issue in rev 1.249.2.30 of
 src/sys/kern/vfs_subr.c.  Can you please verify that
 the symptoms you are experiencing are gone in -STABLE?

From: Masachika ISHIZUKA <ishizuka@ish.org>
To: das@FreeBSD.ORG
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/52425: kern.maxvnodes cannot limit the number of vnodes
 in use
Date: Fri, 23 May 2003 20:16:47 +0900 (JST)

 >> 	I think kern.maxvnodes should limit the debug.numvnodes.
 > 
 > Tor Egge addressed this issue in rev 1.249.2.30 of
 > src/sys/kern/vfs_subr.c.  Can you please verify that
 > the symptoms you are experiencing are gone in -STABLE?
 
   Hi, David-san.
 
   Thank you for mail.
   I'm too sorry that I missed it had already updated in stable
 branch.  I'll report next Monday whether vfs_subr.c of rev 1.249.2.30
 fixes this problem or not.
 
 -- 
 ishizuka@ish.org

From: Masachika ISHIZUKA <ishizuka@ish.org>
To: das@FreeBSD.ORG
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/52425: kern.maxvnodes cannot limit the number of vnodes
 in use
Date: Mon, 26 May 2003 09:24:09 +0900 (JST)

 >>> 	I think kern.maxvnodes should limit the debug.numvnodes.
 >> 
 >> Tor Egge addressed this issue in rev 1.249.2.30 of
 >> src/sys/kern/vfs_subr.c.  Can you please verify that
 >> the symptoms you are experiencing are gone in -STABLE?
 > 
 >   I'm too sorry that I missed it had already updated in stable
 > branch.  I'll report next Monday whether vfs_subr.c of rev 1.249.2.30
 > fixes this problem or not.
 
   Hi, David-san.
 
   This is ishizuka@ish.org.
   Thank you very much. It fixes my problem.  After replacing
 vfs_subr.c of rev 1.249.2.30, it is not slow down and kern.maxvnodes
 limits debug.numvnodes correctly more than 60 hours.
 
 -- 
 ishizuka@ish.org
 
   
State-Changed-From-To: open->closed 
State-Changed-By: das 
State-Changed-When: Sat May 31 11:09:30 PDT 2003 
State-Changed-Why:  
Submitter reports that the problem is fixed in -STABLE. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=52425 
>Unformatted:
