From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 6 14:08:57 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A8BC16A420 for ; Thu, 6 Dec 2007 14:08:57 +0000 (UTC) (envelope-from sonja.milicic@fer.hr) Received: from pinus.cc.fer.hr (pinus.cc.fer.hr [161.53.73.18]) by mx1.freebsd.org (Postfix) with ESMTP id CE2F113C468 for ; Thu, 6 Dec 2007 14:08:56 +0000 (UTC) (envelope-from sonja.milicic@fer.hr) Received: from [161.53.72.122] (angelina.cc.fer.hr [161.53.72.122]) (authenticated bits=0) by pinus.cc.fer.hr (8.12.2/8.12.2) with ESMTP id lB6BNZGp018228 for ; Thu, 6 Dec 2007 12:23:36 +0100 (MET) Message-ID: <4757D783.5060108@fer.hr> Date: Thu, 06 Dec 2007 12:05:39 +0100 From: Sonja Milicic User-Agent: Thunderbird 1.5.0.13 (Windows/20070809) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 06 Dec 2007 14:43:54 +0000 Subject: Large array in KVM X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2007 14:08:57 -0000 Hi everyone. I'm working on a kernel module that needs to maintain a large structure in memory. As this structure could grow too big to be stored in memory, it would be good to offload parts of it to the disk. What would be the best way to do this? Could using a memory-mapped file help? Thanks in advance, Sonja