logoalt Hacker News

bayindirh • today at 6:14 PM • 1 reply • view on HN

I believe one can create a kernel module called leaky_ram to make this possible. No?


Replies

kccqzy • today at 8:52 PM

No need for a kernel module. Create a FUSE filesystem in user space on which to create a swap file. Once any written block is more than 2 days old just discard it. When they are accessed give EIO. This IIRC translates to a SIGBUS signal in the process.