This is normal. On 64 bit all pointers are double the size. MRI is implemented with a lot of pointers so all Ruby apps use almost twice the memory. Go back to 32 bit if you don't like this.
Sent from my Android phone.
Op 25 mrt. 2011 20:07 schreef "Vince" <coolte...@gmail.com> het volgende:
> --
> You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
> To post to this group, send email to phusion-...@googlegroups.com.
> To unsubscribe from this group, send email to phusion-passen...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/phusion-passenger?hl=en.
On pretty much all our production servers, Ruby on 64-bit systems uses
about twice the memory. I've yet to see one scenario where this is not
the case.
--
Phusion | Ruby & Rails deployment, scaling and tuning solutions
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
You can map twice as much memory in the virtual address space. Nobody
likes to writes Ruby apps that consume more than 2 GB of memory, but
this fact does mean that you can for example mmap() a 64 GB file and
use it. Other than that, I don't think there's any advantage in
running Ruby on 64-bit systems. I recommend running it on 32-bit if
memory is a big issue for you.
--
export ARCH="x86"
may work for ruby / apache / passenger-apache
--
make haste slowly \
festina lente \
-
mobile +1_415_632_6001
curtis.s...@gmail.com
http://robotarmyma.de
Yes, install a 32-bit Ruby, 32-bit web server and a 32-bit Phusion
Passenger on the system. Compilation method depends on the OS. Or you
can build on a 32-bit system and copy the binaries over.
Apache doesn't need to be 32-bit. Phusion Passenger uses a
split-process model whereby processes communicate with each other
through IPC and don't care what architecture each other is compiled
for.
> The passenger gem did install fine on top of that, but then passenger-
> install-apache2-module kept complaining that I needed to install curl-
> devel (even though I had both the 32 and 64 bit versions installed).
Yeah though that's a problem in our build system. Our build system
currently assumes that there is only 1 architecture on the system. You
could work around this by compiling Phusion Passenger on both 32-bit
and 64-bit systems and merging the results. You need to take
mod_passenger.so from the 64-bit system and
passenger_native_support.so from the 32-bit system. The binaries in
agents/ can be of any architecture.
--
Phusion | Ruby & Rails deployment, scaling and tuning solutions
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
A valid point, though I dare to argue that nobody uses Ruby for
computationally-expensive operations anyway. Ruby web apps are usually
heavy on I/O and memory operations and my experience is that the
64-bit registers don't help Ruby performance that much anyway.
--
Phusion | Ruby & Rails deployment, scaling and tuning solutions
Web: http://www.phusion.nl/
E-mail: in...@phusion.nl