Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8000811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:54:53+00:00 2026-06-04T15:54:53+00:00

I have read some where that ruby fork are COW friendly ok here the

  • 0

I have read some where that ruby fork are COW friendly
ok here the link

But then when I happen to google around for more info on it I found out that Ruby does not support COW (copy on write)

Now I’m actually a bit confuse whether ruby actually support or not COW functionality

I’m also aware that REE and Rubinius has a COW friendly GC so
does that me REE and Rubinius support COW functionality

I yes I’m dying to test it , can anyone suggest me that if ruby support COW functionality then how to write a sample code to test COW concept in Ruby

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T15:54:57+00:00Added an answer on June 4, 2026 at 3:54 pm

    fork being copy-on-write is a property of your operating system kernel, not Ruby. On most UNIX-like systems, it is.

    On Linux, for example, you can look in /proc/pid/smaps and look for how much of the heap mapping is shared. Here is an example from bash doing a fork:

    02020000-023cd000 rw-p 00000000 00:00 0                                  [heap]
    Size:               3764 kB
    Rss:                3716 kB
    Pss:                1282 kB
    Shared_Clean:          0 kB
    Shared_Dirty:       3652 kB
    Private_Clean:         0 kB
    Private_Dirty:        64 kB
    Referenced:          144 kB
    Anonymous:          3716 kB
    AnonHugePages:         0 kB
    Swap:                  0 kB
    KernelPageSize:        4 kB
    MMUPageSize:           4 kB
    Locked:                0 kB
    

    So, out of its 3764k heap, 3652k is shared. See proc.txt for documentation on the files in /proc.

    Of course, Ruby may have something that causes the COW pages to be copied (e.g., maybe its garbage collector writes to each page), but you’ll be able to see that by the shared count going to 0.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read from some article that say's Apple doesn't approve the application which
I am new to ASP.net MVC architecture. I have read in some articles that
I have read that money_format is not available on windows, and on some Linux
I think I read somewhere that some modules only have object oriented interfaces (
I have a UITableView that displays some data that is read in at runtime
I have some configuration data in a config file that I read off disk
I have read some posts on here about not mixing parameters when passing into
I have read some articles on POCO in the enttity framework but still don't
I have a view that takes a Ruby Date, performs some formatting on it
I have a simple tab-separated text file that I want Ruby to read every

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.