Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
4gb seg fixup REE XEN
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
  Messages 26 - 32 of 32 - Collapse all  -  Translate all to Translated (View all originals) < Older 
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
 
Steven Pokrandt  
View profile  
 More options Aug 13 2009, 9:21 am
From: Steven Pokrandt <spo...@gmail.com>
Date: Thu, 13 Aug 2009 06:21:55 -0700
Local: Thurs, Aug 13 2009 9:21 am
Subject: Re: 4gb seg fixup REE XEN
Setting the compile flags and recompiling.  Xen on intel. Ubuntu server.

Sent from a secret place.

On Aug 13, 2009, at 2:44 AM, Sheldon Hearn <sheld...@starjuice.net>  
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.
Sheldon Hearn  
View profile  
 More options Aug 17 2009, 5:10 am
From: Sheldon Hearn <sheld...@starjuice.net>
Date: Mon, 17 Aug 2009 02:10:36 -0700 (PDT)
Local: Mon, Aug 17 2009 5:10 am
Subject: Re: 4gb seg fixup REE XEN

On Aug 13, 3:21 pm, Steven Pokrandt <spo...@gmail.com> wrote:

> Setting the compile flags and recompiling.  Xen on intel. Ubuntu server.

Confirmed under Xen on Intel on an Debian (Lenny) 5.0 server.

So I'm not sure there's anything for the Phusion people to fix here.

Ciao,
Sheldon.


 
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.
Steven Pokrandt  
View profile  
 More options Aug 17 2009, 12:27 pm
From: Steven Pokrandt <spo...@gmail.com>
Date: Mon, 17 Aug 2009 09:27:10 -0700
Local: Mon, Aug 17 2009 12:27 pm
Subject: Re: 4gb seg fixup REE XEN
Set the compile flags in the make file.  Document in install  
instructions.

Sent from a secret place.

On Aug 17, 2009, at 2:10 AM, Sheldon Hearn <sheld...@starjuice.net>  
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 Aug 17 2009, 2:14 pm
From: Hongli Lai <hon...@phusion.nl>
Date: Mon, 17 Aug 2009 20:14:35 +0200
Local: Mon, Aug 17 2009 2:14 pm
Subject: Re: 4gb seg fixup REE XEN

On Mon, Aug 17, 2009 at 6:27 PM, Steven Pokrandt<spo...@gmail.com> wrote:

> Set the compile flags in the make file.  Document in install
> instructions.

We have plans to autodetect Xen and automatically set the right
compilation flags.

--
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.
chipcastle  
View profile  
 More options Sep 9 2009, 7:32 pm
From: chipcastle <supp...@chipcastle.com>
Date: Wed, 9 Sep 2009 16:32:40 -0700 (PDT)
Local: Wed, Sep 9 2009 7:32 pm
Subject: Re: 4gb seg fixup REE XEN
I'm not sure what fix is the proper one.  Here's what I've tried on
Ubuntu Hardy AND Jaunty to no avail:

1.  Added to /etc/environment:
export CFLAGS="-mno-tls-direct-seg-refs"
export CXXFLAGS="-mno-tls-direct-seg-refs"
sudo reboot

2.  Installed passenger from source, editing Rakefile:
EXTRA_CXXFLAGS = "-Wall #{OPTIMIZATION_FLAGS} -mno-tls-direct-seg-
refs"
sudo /etc/init.d/apache2 restart

3. Installed passenger as a gem:
sudo gem uninstall passenger
sudo gem install passenger --no-rdoc --no-ri
sudo passenger-install-apache2-module
sudo /etc/init.d/apache2 restart

4. (on Hardy only) Installed from passenger made available by
Brightbox:
sudo sh -c 'echo "deb http://apt.brightbox.net hardy main" > /etc/apt/
sources.list.d/brightbox.list'
sudo sh -c 'wget -q -O - http://apt.brightbox.net/release.asc | apt-
key add -'
sudo apt-get update
sudo apt-get install libapache2-mod-passenger
# Edit /etc/apache2/apache2.conf to comment out the following:
# Include /etc/apache2/extras/passenger.conf
sudo a2enmod passenger
sudo /etc/init.d/apache2 restart

5. Moved tls directory
sudo mv /lib/tls /lib/tls.disabled

Here's what I have on my amazon ec2 running ubuntu jaunty (ami id: ami-
ed46a784)

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"

echo $PATH
/usr/local/ruby-enterprise/bin:/usr/local/sbin:/usr/local/bin:/usr/
sbin:/usr/bin:/sbin:/bin:/usr/games

cat /etc/ld.so.conf.d/libc6-xen.conf
hwcap 0 nosegneg

ldd /usr/local/ruby-enterprise/bin/ruby
        linux-gate.so.1 =>  (0x005ec000)
        libtcmalloc_minimal.so.0 => /usr/local/ruby-enterprise/lib/
libtcmalloc_minimal.so.0 (0x00225000)
        libdl.so.2 => /lib/libdl.so.2 (0x00691000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x001b5000)
        libm.so.6 => /lib/libm.so.6 (0x00ddf000)
        libc.so.6 => /lib/libc.so.6 (0x007a9000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00f0b000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00110000)
        /lib/ld-linux.so.2 (0x00c27000)

cat /etc/apache2/extras/passenger.conf
LoadModule passenger_module /usr/local/ruby-enterprise/lib/ruby/gems/
1.8/gems/passenger-2.2.5/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/
passenger-2.2.5
PassengerRuby /usr/local/ruby-enterprise/bin/ruby

Is there a step I am missing?

Any help is greatly appreciated,
Chip

On Jul 24, 5:29 pm, Steven Pokrandt <spo...@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.
Mathijs Kwik  
View profile  
 More options Sep 10 2009, 2:51 am
From: Mathijs Kwik <bluescreen...@gmail.com>
Date: Thu, 10 Sep 2009 08:51:23 +0200
Local: Thurs, Sep 10 2009 2:51 am
Subject: Re: 4gb seg fixup REE XEN
Well, the problem is that REE and passenger overrule some user-set CFLAGS.
Just for certain parts I think.
Also, if you install gems later on, with native extensions, the flags
won't be used (at least for some gems).
This isn't a real problem (gets the 4gb warnings down from thousands
to just a couple of 10s), which really won't be noticable
performance-wise.
The only thing that completely removed all warnings was to wrap gcc and g++.
Problem with that, is that compiling stuff becomes a lot slower.
Since you only do that once (not during normal operation), this might
be ok for you.

  mv /usr/bin/gcc /usr/bin/gcc.orig
  mv /usr/bin/g++ /usr/bin/g++.orig
  echo '#!/bin/sh' > /usr/bin/gcc
  echo '#!/bin/sh' > /usr/bin/g++
  echo 'exec gcc.orig -mno-tls-direct-seg-refs $@' >> /usr/bin/gcc
  echo 'exec g++.orig -mno-tls-direct-seg-refs $@' >> /usr/bin/g++
  chmod a+x /usr/bin/gcc
  chmod a+x /usr/bin/g++

This forces gcc to always apply the flag, even if some makefile
overrules CFLAGS.
After doing this, my g4b warnings completely vanished.
You will probably have to watch out with gcc upgrades, so maybe move
stuff back after installing all REE/passenger/gem stuff.

Mathijs


 
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.
chipcastle  
View profile  
 More options Sep 28 2009, 6:21 pm
From: chipcastle <supp...@chipcastle.com>
Date: Mon, 28 Sep 2009 15:21:47 -0700 (PDT)
Local: Mon, Sep 28 2009 6:21 pm
Subject: Re: 4gb seg fixup REE XEN
Mathijs,

Thanks for the pointers.  I tried this on servers running Ubuntu Hardy
and Jaunty, but I'm still getting the errors and Passenger won't load
my Rails app.  Does anybody have any further suggestions?

Thanks,
Chip

On Sep 10, 1:51 am, Mathijs Kwik <bluescreen...@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.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »