# Saving memory in with fork() and copy on write

**URL:** <https://www.ruby-forum.com/t/saving-memory-in-with-fork-and-copy-on-write/91190>\
**Category:** Rails\
**Created:** [April 5, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/saving-memory-in-with-fork-and-copy-on-write/91190 "2007-04-05T14:35:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![foobarwidget](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/71c47a/32.png) [@foobarwidget](https://www.ruby-forum.com/u/foobarwidget)\
**Post date:** [April 5, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/saving-memory-in-with-fork-and-copy-on-write/91190/1 "2007-04-05T14:35:16Z")

</div>

I wrote a blog entry, as well as a tool, on saving memory in Ruby on  
Rails using fork() and copy-on-write in modern Unix systems. I think  
this may be useful to some people. This is the URL:  
[http://izumi.plan99.net/blog/?p=19](http://izumi.plan99.net/blog/?p=19)

I’ve search quite a lot for similar solutions, but I seem to be the  
first one to do this. It was fairly trivial, I only spent half a day  
on this. I wonder why this hasn’t been done before.
