From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 6 19:27:46 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 49C7816A469 for ; Thu, 6 Dec 2007 19:27:46 +0000 (UTC) (envelope-from tanarri@geri.cc.fer.hr) Received: from pinus.cc.fer.hr (pinus.cc.fer.hr [161.53.73.18]) by mx1.freebsd.org (Postfix) with ESMTP id C04C013C4EF for ; Thu, 6 Dec 2007 19:27:45 +0000 (UTC) (envelope-from tanarri@geri.cc.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 lB6DXDGp011786 for ; Thu, 6 Dec 2007 14:33:14 +0100 (MET) Message-ID: <4757F5E4.5030500@geri.cc.fer.hr> Date: Thu, 06 Dec 2007 14:15:16 +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 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 19:27:46 -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