From: Eric Wong Date: 2012-03-25T12:52:10+09:00 Subject: Re: Write to kernel buffer? ruby rub wrote: > Also is it possible to set the buffer to not be swapped out? Kernel memory is unswappable (at least on Linux). You can probably hook up mlockall() pretty easily via DL/FFI/Fiddle/C extension. Using the finer-grained mlock() probably requires a C extension (and mlock() probably won't work with Rubinius, only MRI).