Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Dec 2007 13:24:33 +0200
From:      "Vlad GALU" <dudu@dudu.ro>
To:        "Sonja Milicic" <tanarri@geri.cc.fer.hr>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Large array in KVM
Message-ID:  <ad79ad6b0712070324s1718aae3k29bffd0cbca98d70@mail.gmail.com>
In-Reply-To: <4757F5E4.5030500@geri.cc.fer.hr>
References:  <4757F5E4.5030500@geri.cc.fer.hr>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/6/07, Sonja Milicic <tanarri@geri.cc.fer.hr> wrote:
> 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?

   Take a look at how the md(4) driver allocates swap-backed memory.
Perhaps you could do the same for your structure, given that your swap
space is big enough to hold it.

>
> Thanks in advance,
> Sonja
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>


-- 
Mahnahmahnah!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ad79ad6b0712070324s1718aae3k29bffd0cbca98d70>