On Wed, Dec 31, 2008 at 12:43 PM, Robert Bauer <saf at xy1.org> wrote:
> Is it possible to recompile OpenSolaris as full 64 bits distribution? > My apache processes requires more than 4 GB of virtual memory. > > Currently it seems that the full OpenSolaris distributions has been > compiled for 32 bits. > Solaris and Open Solaris is full 64-bits in the kernel, and the user processes can be 32 or 64-bit binaries, both runs perfectly. isainfo -k will tell you if you are running with a 64-bit kernel. If you are not, it is because the 32-bit kernel booted, which can sometimes be because an incorrect architecture is identified during bootup. I have not experienced this myself but seem to recall seeing some discussions to this point on this forum. Of course Solaris/OpenSolaris will only run in 64-bit mode if your CPU supports it. To check whether a specific binary is compiled as 32-bit or 64-bit, use "file" For example: $ file /bin/ls /bin/ls: ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically linked, not stripped, no debugging information available $ file /bin/amd64/ls /bin/amd64/ls: ELF 64-bit LSB executable AMD64 Version 1 [SSE2 SSE FXSR CMOV FPU], dynamically linked, not stripped, no debugging information available Note that most of the binaries in the default path are 32-bit applications. Solaris does not impose any penalty for running 32-bit applications under a 64-bit kernel like some other operating systems, and 32-bit binaries are smaller and need to do less work when transferring data in and out of memory, so unless getting access to more than 4 GB of ram, or needing more tha 32-bits of integer math precision is required, running 64-bit binaries is a waste of bus-bandwidth. -- Any sufficiently advanced technology is indistinguishable from magic. Arthur C. Clarke My blog: http://initialprogramload.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/opensolaris-help/attachments/20081231/7de1c547/attachment.html>