Large array in KVM

Vlad GALU dudu at dudu.ro
Fri Dec 7 03:51:27 PST 2007


On 12/6/07, Sonja Milicic <tanarri at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>


-- 
Mahnahmahnah!


More information about the freebsd-hackers mailing list