From owner-freebsd-current Sun Dec 29 9:35:57 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56FE437B401 for ; Sun, 29 Dec 2002 09:35:56 -0800 (PST) Received: from ada.snu.ac.kr (ada.snu.ac.kr [147.46.106.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACB8743ED1 for ; Sun, 29 Dec 2002 09:35:55 -0800 (PST) (envelope-from redjade@ada.snu.ac.kr) Received: from ada.snu.ac.kr (ada.snu.ac.kr [147.46.106.49]) by ada.snu.ac.kr (8.12.6/8.12.6) with ESMTP id gBTHZojC089669; Mon, 30 Dec 2002 02:35:50 +0900 (KST) (envelope-from redjade@ada.snu.ac.kr) Received: (from redjade@localhost) by ada.snu.ac.kr (8.12.6/8.12.6/Submit) id gBTHZnwG089668; Mon, 30 Dec 2002 02:35:49 +0900 (KST) Date: Mon, 30 Dec 2002 02:35:49 +0900 From: Kyunghwan Kim To: current@freebsd.org Subject: mballoc kernel thread Message-ID: <20021229173549.GA89604@ada.snu.ac.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=euc-kr Content-Disposition: inline User-Agent: Mutt/1.4i X-My-Present-Organization: Innuworks, Inc. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I made a mballoc kernel thread that fills up mbufs and mbuf clusters when number of mbufs/clusters of its general list is under low watermark along with suggestions that Mr. Milekic has made around late November. http://redjade.org/doc/patches/mballoc_kproc.diff It seems useful until and even after kmem_malloc() is out from under Giant. Would someone please comment upon the diff and questions below? - Appropriate watermark check rate - How to use mballoc [via wakeup] in mb_alloc() efficiently when it needs to allocate a new page [Hardest for me to decide because of lack of experience...] - M_WAIT or M_NOWAIT in memory allocation of mballoc kproc - Strategy for high watermark wash out Thanks. -- Kyunghwan Kim redjade@ada.snu.ac.kr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message