Date: Fri, 7 Dec 2007 10:43:00 +0100 From: "Gerald Heinig" <gheinig@marvell.com> To: "Sonja Milicic" <tanarri@geri.cc.fer.hr>, <freebsd-hackers@freebsd.org> Subject: RE: Large array in KVM Message-ID: <4D634BCFD1A2144ABECC75FF512D7A9001DF60BE@SKGExch01.marvell.com>
next in thread | raw e-mail | index | archive | help
Hi Sonja, > Hi everyone. >=20 > 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? How about implementing your code as a system call, which is called from a process that maps a large file into memory, as you suggested above. I presume you'd have to handle the question of whether or not your pages are in memory yourself, ie. pretty much like any other system call. Interesting question. Cheers, Gerald
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D634BCFD1A2144ABECC75FF512D7A9001DF60BE>