Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
new fork possibility?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  17 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
rogerdpack  
View profile  
 More options May 21 2009, 9:28 am
From: rogerdpack <rogerpack2...@gmail.com>
Date: Thu, 21 May 2009 06:28:51 -0700 (PDT)
Local: Thurs, May 21 2009 9:28 am
Subject: new fork possibility?
I've been toying around with the idea of creating a "ruby optimized"
ruby fork
i.e.

1.8.6 REE with the original garbage collector (which is faster, is
that right?) and maybe with a few tweaks applied (like MBARI, faster
GCD, etc.)

The rationale behind this is that I actually want to build an
"optimized" version of ruby for windows, so if I base it off of REE
there might be some room for collaboration.

And then after that possibly 1.9 same thing (larger GC, tcmalloc).

Do you think that's something that REE would be happy to incorporate
or shall I do it on my own?
Just wondering.  Don't want to steal any fire from REE :)
Thanks.
-=r


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Thompson  
View profile  
 More options May 21 2009, 11:05 am
From: Christopher Thompson <cthomp...@nexopia.com>
Date: Thu, 21 May 2009 09:05:09 -0600
Local: Thurs, May 21 2009 11:05 am
Subject: Re: new fork possibility?
Speaking purely from the position of self-interest, what I would like to
see is that you work with the REE folks so that future REE releases are
more highly optimised.  I think this is what they are already trying to
do (and, generally, succeeding).

That said, the REE GC bug hit us pretty hard and the recent forking
issue was a big deal as well.  I spent some time trying to resolve the
GC bug but wasn't able to track it down.  My point is that correctness
is still paramount, more important than performance.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roderick van Domburg  
View profile  
 More options May 21 2009, 12:49 pm
From: Roderick van Domburg <r.s.a.vandomb...@nedforce.nl>
Date: Thu, 21 May 2009 18:49:53 +0200
Local: Thurs, May 21 2009 12:49 pm
Subject: Re: new fork possibility?
+1, well said.

--  
Roderick van Domburg
http://www.nedforce.com

On 21 mei 2009, at 17:05, Christopher Thompson wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options May 21 2009, 4:07 pm
From: Hongli Lai <hon...@phusion.nl>
Date: Thu, 21 May 2009 22:07:07 +0200
Local: Thurs, May 21 2009 4:07 pm
Subject: Re: new fork possibility?

On Thu, May 21, 2009 at 3:28 PM, rogerdpack <rogerpack2...@gmail.com> wrote:

> I've been toying around with the idea of creating a "ruby optimized"
> ruby fork
> i.e.

> 1.8.6 REE with the original garbage collector (which is faster, is
> that right?) and maybe with a few tweaks applied (like MBARI, faster
> GCD, etc.)

MBARI integration is already planned. But it needs quite some work
because MBARI's changes overlap with my own and that of others (e.g.
the zero-stack-copy  thread switching patch which I plan on
integrating as well). I just haven't gotten the time to do it until
now.

> The rationale behind this is that I actually want to build an
> "optimized" version of ruby for windows, so if I base it off of REE
> there might be some room for collaboration.

I thought MBARI is not Windows-compatible?

> And then after that possibly 1.9 same thing (larger GC, tcmalloc).

> Do you think that's something that REE would be happy to incorporate
> or shall I do it on my own?
> Just wondering.  Don't want to steal any fire from REE :)

Sure. I wanted to do all these things myself but if you want to help,
more power to you. :)

1.9 probably needs an entirely different fork because the codebase is different.

Regards,
Hongli Lai
--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options May 21 2009, 4:09 pm
From: Hongli Lai <hon...@phusion.nl>
Date: Thu, 21 May 2009 22:09:12 +0200
Local: Thurs, May 21 2009 4:09 pm
Subject: Re: new fork possibility?
On Thu, May 21, 2009 at 5:05 PM, Christopher Thompson

<cthomp...@nexopia.com> wrote:
> That said, the REE GC bug hit us pretty hard and the recent forking
> issue was a big deal as well.  I spent some time trying to resolve the
> GC bug but wasn't able to track it down.  My point is that correctness
> is still paramount, more important than performance.

Sorry about the forking issue. The patch turns out to be not as stable
as I thought it would be. In the future we'll incorporate new features
as optional installer flags for a while before enabling them by
default, in order to prevent things like this from happening again.

Regards,
Hongli Lai
--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rogerdpack  
View profile  
 More options May 21 2009, 11:23 pm
From: rogerdpack <rogerpack2...@gmail.com>
Date: Thu, 21 May 2009 20:23:03 -0700 (PDT)
Local: Thurs, May 21 2009 11:23 pm
Subject: Re: new fork possibility?

> MBARI integration is already planned. But it needs quite some work
> because MBARI's changes overlap with my own and that of others (e.g.
> the zero-stack-copy  thread switching patch which I plan on
> integrating as well). I just haven't gotten the time to do it until
> now.

That would be cool.  I wonder if we can get brent in on this...

> I thought MBARI is not Windows-compatible?

Works well on doze.  I'm not sure, however, if tcmalloc works well on
windows.  If not then maybe nedmalloc [?] not sure.

> Sure. I wanted to do all these things myself but if you want to help,
> more power to you. :)

Perhaps we could make some things optional, like...if you want the
"old school" GC you set some environment variable, would that be
acceptable?  Windows users wouldn't benefit from the fork friendly GC
as much :)

> 1.9 probably needs an entirely different fork because the codebase is different.

Please elaborate--fork from 1.9 proper?
Thanks!
-=r

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options May 22 2009, 5:14 am
From: Hongli Lai <hon...@phusion.nl>
Date: Fri, 22 May 2009 11:14:11 +0200
Local: Fri, May 22 2009 5:14 am
Subject: Re: new fork possibility?

On Fri, May 22, 2009 at 5:23 AM, rogerdpack <rogerpack2...@gmail.com> wrote:
> Perhaps we could make some things optional, like...if you want the
> "old school" GC you set some environment variable, would that be
> acceptable?  Windows users wouldn't benefit from the fork friendly GC
> as much :)

We already default to using the 'old school' GC. The copy-on-write
friendly one must be explicitly enabled during runtime.

> Please elaborate--fork from 1.9 proper?

Yes, and rebasing a lot of changes against 1.9, instead of trying to
merge 1.9 into the current codebase.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roderick van Domburg  
View profile  
 More options May 22 2009, 10:31 am
From: Roderick van Domburg <r.s.a.vandomb...@nedforce.nl>
Date: Fri, 22 May 2009 07:31:20 -0700 (PDT)
Local: Fri, May 22 2009 10:31 am
Subject: Re: new fork possibility?
Hi Hongli,

> > That said, the REE GC bug hit us pretty hard and the recent forking
> > issue was a big deal as well.  I spent some time trying to resolve the
> > GC bug but wasn't able to track it down.  My point is that correctness
> > is still paramount, more important than performance.

> Sorry about the forking issue. The patch turns out to be not as stable
> as I thought it would be. In the future we'll incorporate new features
> as optional installer flags for a while before enabling them by
> default, in order to prevent things like this from happening again.

Don't let one incident resort you to such measures. Giving users
options is not always the best option. Take Gentoo as an example:
building packages with different USE flags and compiler optimizations
have only brought more complexities, bugs and harder debugging to the
table. It didn't prevent the bug reports either.

You have a clear vision of where REE is heading and should stick to
that. Combine it with a little more beta testing in the field and
issues like the SIGVTALRM will be easier to prevent.

--
Roderick van Domburg
http://www.nedforce.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Thompson  
View profile  
 More options May 22 2009, 11:00 am
From: Christopher Thompson <cthomp...@nexopia.com>
Date: Fri, 22 May 2009 09:00:55 -0600
Local: Fri, May 22 2009 11:00 am
Subject: Re: new fork possibility?

rogerdpack wrote:
>> MBARI integration is already planned. But it needs quite some work
>> because MBARI's changes overlap with my own and that of others (e.g.
>> the zero-stack-copy  thread switching patch which I plan on
>> integrating as well). I just haven't gotten the time to do it until
>> now.

> That would be cool.  I wonder if we can get brent in on this...

>> I thought MBARI is not Windows-compatible?
> Works well on doze.  I'm not sure, however, if tcmalloc works well on
> windows.  If not then maybe nedmalloc [?] not sure.

This was a while ago, you understand, but nedmalloc did not give us
significantly reduced memory use compared to the default allocator (MRI
Ruby).  Similarly, it was not any faster.  JEMalloc showed reduced
memory use (about 25% less memory use) but was significantly slower than
the default allocator.

It is entirely possible, given the similarities between my stats for
nedmalloc compared to the default allocator, that I had not properly
integrated it.

Jemalloc resulted in some weird issues, Ruby was never stable with it.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roderick van Domburg  
View profile  
 More options May 22 2009, 11:06 am
From: Roderick van Domburg <r.s.a.vandomb...@nedforce.nl>
Date: Fri, 22 May 2009 17:06:43 +0200
Local: Fri, May 22 2009 11:06 am
Subject: Re: new fork possibility?
On 22 mei 2009, at 17:00, Christopher Thompson wrote:

>>> I thought MBARI is not Windows-compatible?
>> Works well on doze.  I'm not sure, however, if tcmalloc works well on
>> windows.  If not then maybe nedmalloc [?] not sure.

> This was a while ago, you understand, but nedmalloc did not give us
> significantly reduced memory use compared to the default allocator  
> (MRI
> Ruby).  Similarly, it was not any faster.  JEMalloc showed reduced
> memory use (about 25% less memory use) but was significantly slower  
> than
> the default allocator.

Man, I never knew there was that much choice in malloc land. Just took  
a look at http://blog.reverberate.org/2009/02/20/one-malloc-to-rule-them-all/
  which lists as many as seven alternatives.

Hongli, did you try any of mallocs besides tcmalloc?

--
Roderick van Domburg
http://www.nedforce.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options May 22 2009, 11:27 am
From: Hongli Lai <hon...@phusion.nl>
Date: Fri, 22 May 2009 17:27:19 +0200
Local: Fri, May 22 2009 11:27 am
Subject: Re: new fork possibility?
On Fri, May 22, 2009 at 5:06 PM, Roderick van Domburg

<r.s.a.vandomb...@nedforce.nl> wrote:
> Man, I never knew there was that much choice in malloc land. Just took
> a look at http://blog.reverberate.org/2009/02/20/one-malloc-to-rule-them-all/
>  which lists as many as seven alternatives.

> Hongli, did you try any of mallocs besides tcmalloc?

Yes. jemalloc didn't help much, and I couldn't get Ruby working with
nedmalloc, so I settled for tcmalloc.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rogerdpack  
View profile  
 More options May 22 2009, 2:59 pm
From: rogerdpack <rogerdp...@gmail.com>
Date: Fri, 22 May 2009 11:59:51 -0700 (PDT)
Local: Fri, May 22 2009 2:59 pm
Subject: Re: new fork possibility?

> You have a clear vision of where REE is heading and should stick to
> that. Combine it with a little more beta testing in the field and
> issues like the SIGVTALRM will be easier to prevent.

I agree it's best to plow forward--and also have RC candidates before
release, I suppose ;)

with regard to options, I'd argue that they'd be useful, at least for
the difference between windows and linux builds (and hopefully minor).
Cheers!
-=r


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options Jun 1 2009, 9:02 am
From: Hongli Lai <hongli...@gmail.com>
Date: Mon, 1 Jun 2009 06:02:43 -0700 (PDT)
Local: Mon, Jun 1 2009 9:02 am
Subject: Re: new fork possibility?
The MBARI and zero-copy context switching patches merger is coming
along nicely. We've spent half a week so far on trying to merge the
two and it felt like an uphill battle, but it seems to work now. The
work has been pushed to Github and it passes RubySpec, the Rails
tests, the EventMachine tests and the Phusion Passenger tests. Right
now it has only been tested on OS X, but it will be tested on Linux
soon. Continuations are still broken but we're working on it.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Lippert  
View profile  
 More options Jun 2 2009, 1:13 pm
From: Andrew Lippert <aclipp...@gmail.com>
Date: Tue, 2 Jun 2009 10:13:25 -0700 (PDT)
Local: Tues, Jun 2 2009 1:13 pm
Subject: Re: new fork possibility?
Nice work, Hongli. We are all looking forward to the fruits of your
labors. Any initial indications of statistical benefit over the
current release?

A

On Jun 1, 6:02 am, Hongli Lai <hongli...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options Jun 2 2009, 1:26 pm
From: Hongli Lai <hon...@phusion.nl>
Date: Tue, 2 Jun 2009 19:26:20 +0200
Local: Tues, Jun 2 2009 1:26 pm
Subject: Re: new fork possibility?

On Tue, Jun 2, 2009 at 7:13 PM, Andrew Lippert <aclipp...@gmail.com> wrote:

> Nice work, Hongli. We are all looking forward to the fruits of your
> labors. Any initial indications of statistical benefit over the
> current release?

This usually depends on the application and the load, but we'll
publish some comparison benchmarks.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rogerdpack  
View profile  
 More options Jul 4 2009, 7:30 am
From: rogerdpack <rogerpack2...@gmail.com>
Date: Sat, 4 Jul 2009 04:30:15 -0700 (PDT)
Local: Sat, Jul 4 2009 7:30 am
Subject: Re: new fork possibility?

> We already default to using the 'old school' GC. The copy-on-write
> friendly one must be explicitly enabled during runtime.

Hmm.  I thought I remembered having run some benchmarks once [a year
ago?] that showed REE [with the default 'old school' GC] was still a
few percent slower.  Hence my thinking that for windows, using that
would be better.

Another recent thought I've had re: optimization is to take out the
event_hook functionality [or built two side by side versions, one
with, one without], since it's just used for debugging anyway, though
I suppose benchmarks are the only things that could tell us if that is
actually a useful optimization or not.  I suppose I'd need to profile
and look at the core more to see if there's any low hanging
optimizations possible.

Thoughts?

=r


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rogerdpack  
View profile  
 More options Jul 13 2009, 4:28 pm
From: rogerdpack <rogerdp...@gmail.com>
Date: Mon, 13 Jul 2009 13:28:33 -0700 (PDT)
Local: Mon, Jul 13 2009 4:28 pm
Subject: Re: new fork possibility?
using some profiling optimization might also help [at least if they
compile it with GCC].
http://www.jhaampe.org/articles/ruby/gcc#profiling

as well as aggressive compiler settings.  This could be good.

=r


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »