From owner-freebsd-current@FreeBSD.ORG Mon Nov 24 23:58:19 2003 Return-Path: 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 3AE3016A4E6 for ; Mon, 24 Nov 2003 23:58:19 -0800 (PST) Received: from ms-smtp-02-eri0.socal.rr.com (ms-smtp-02-qfe0.socal.rr.com [66.75.162.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57DA043FE1 for ; Mon, 24 Nov 2003 23:58:16 -0800 (PST) (envelope-from sean@mcneil.com) Received: from blue.mcneil.com (cpe-66-75-176-109.socal.rr.com [66.75.176.109])hAP7wEiF014790 for ; Mon, 24 Nov 2003 23:58:16 -0800 (PST) Received: from [66.75.176.109] (mcneil.com [66.75.176.109]) by blue.mcneil.com (8.12.10/8.12.10) with ESMTP id hAP7wC3C075738 for ; Mon, 24 Nov 2003 23:58:13 -0800 (PST) (envelope-from sean@mcneil.com) From: Sean McNeil To: freebsd-current@freebsd.org Content-Type: text/plain Organization: Sean McNeil Consulting Message-Id: <1069747092.75674.6.camel@blue.mcneil.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Mon, 24 Nov 2003 23:58:12 -0800 Content-Transfer-Encoding: 7bit X-DCC-dmv.com-Metrics: blue.mcneil.com 1181; Body=1 Fuz1=1 Fuz2=1 Subject: memory allocation issue loading a kernel module X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2003 07:58:19 -0000 Hi everyone, I was wondering if there is a way to flush out pages in memory that might not be required. I have a device driver that allocates 16 distict buffers each 32K in size. This is done with a bus_dma call as they will be accessed by a PCI device. The problem is that if I do a compile on my system prior to trying to kldload the module, there isn't enough physical memory for the driver. I am assuming it is the disk cache that is eating up that memory and I want to flush out enough pages for my bus_dma allocation to work. Is this possible? Any and all comments are appreciated. Thanks in advance, Sean