* 64-bit user-space on G5? Never, soonish, or unknown?
@ 2004-02-11 14:09 Mikael Pettersson
2004-02-11 14:51 ` Christian Kujau
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Mikael Pettersson @ 2004-02-11 14:09 UTC (permalink / raw)
To: linuxppc-dev
We're considering buying a G5 for porting a compiler/runtime-system
project to PPC and eventually PPC64.
The question is, will Linux ever support a 64-bit user-space
on the G5? From my reading of arch/ppc and arch/ppc64, the
differences seem major so I'm not holding my breath, but perhaps
there is hope.
Or should we just treat the G5 as a faster 32-bitter?
Or should we use some other OS than Linux :-(
TIA,
/Mikael Pettersson
(please cc: me on replies)
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 64-bit user-space on G5? Never, soonish, or unknown?
2004-02-11 14:09 Mikael Pettersson
@ 2004-02-11 14:51 ` Christian Kujau
2004-02-11 15:33 ` tom_gall
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Christian Kujau @ 2004-02-11 14:51 UTC (permalink / raw)
To: linuxppc-dev
Mikael Pettersson wrote:
| We're considering buying a G5 for porting a compiler/runtime-system
| project to PPC and eventually PPC64.
|
| The question is, will Linux ever support a 64-bit user-space
| on the G5? From my reading of arch/ppc and arch/ppc64, the
| differences seem major so I'm not holding my breath, but perhaps
| there is hope.
|
| Or should we just treat the G5 as a faster 32-bitter?
|
there was a thread called "XServe G5 and Linux ?" on this list a few
days ago, maybe this helps answering your questions.
Christian.
- --
BOFH excuse #106:
The electrician didn't know what the yellow cable was so he yanked the
ethernet out.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 64-bit user-space on G5? Never, soonish, or unknown?
2004-02-11 14:09 Mikael Pettersson
2004-02-11 14:51 ` Christian Kujau
@ 2004-02-11 15:33 ` tom_gall
2004-02-11 22:14 ` Benjamin Herrenschmidt
2004-02-11 22:26 ` Anton Blanchard
3 siblings, 0 replies; 10+ messages in thread
From: tom_gall @ 2004-02-11 15:33 UTC (permalink / raw)
To: Mikael Pettersson; +Cc: linuxppc-dev
On Wednesday, February 11, 2004, at 08:09 AM, Mikael Pettersson wrote:
>
> We're considering buying a G5 for porting a compiler/runtime-system
> project to PPC and eventually PPC64.
Sure, this is a reasonable approach.
> The question is, will Linux ever support a 64-bit user-space on the
> G5?
Yes. gentoo-ppc64 runs exactly in this mode by default. There aren't
livecds quite yet... RSN tho.
> From my reading of arch/ppc and arch/ppc64, the differences seem major
> so I'm not holding my breath, but perhaps there is hope.
Well that's just the kernel. Remember 64 bit kernels can run both 32
and 64 bit applications side by side at the same time.
> Or should we just treat the G5 as a faster 32-bitter?
All depends on what you want. For instance SuSE SLES8 generally runs as
a 32 bit system but includes (some) 64 bit libraries and such so you
could do 64 bit development.
I think you'll find you have options. You just need to decide what's
right for you.
Tom Gall
gentoo-ppc64 -- God started with stage 1, shouldn't you?
tgall aatt uberh4x0r.org
tom_gall aatt mac.com
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 64-bit user-space on G5? Never, soonish, or unknown?
2004-02-11 14:09 Mikael Pettersson
2004-02-11 14:51 ` Christian Kujau
2004-02-11 15:33 ` tom_gall
@ 2004-02-11 22:14 ` Benjamin Herrenschmidt
2004-02-11 22:26 ` Anton Blanchard
3 siblings, 0 replies; 10+ messages in thread
From: Benjamin Herrenschmidt @ 2004-02-11 22:14 UTC (permalink / raw)
To: Mikael Pettersson; +Cc: linuxppc-dev list
On Thu, 2004-02-12 at 01:09, Mikael Pettersson wrote:
> We're considering buying a G5 for porting a compiler/runtime-system
> project to PPC and eventually PPC64.
>
> The question is, will Linux ever support a 64-bit user-space
> on the G5? From my reading of arch/ppc and arch/ppc64, the
> differences seem major so I'm not holding my breath, but perhaps
> there is hope.
>
> Or should we just treat the G5 as a faster 32-bitter?
>
> Or should we use some other OS than Linux :-(
There is a 64 bits kernel for the G5, it's currently available
on YDL site, though I'll have the whole thing merged with Linus in
a few days (with some luck, 2.6.3 will boot out of the box on those
in both 32 bits and 64 bits versions).
I don't know of a distro that offer 64 bits userland yet, YDL is
working on a bi-arch setup, there are SuSE and RedHat distros for
IBM p/iSeries though those don't support G5s at the moment, but it
may just be a matter of using the right kernel with them and maybe
tweaking the installer...
And you can always build your own toolchain & glibc :)
The 64 bits kernel allow you to run both 32 and 64 bits userland,
the common practice is to have a 32 bit userland with the necessary
libs to be able to build & run _some_ 64 bits executables.
Ben
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 64-bit user-space on G5? Never, soonish, or unknown?
2004-02-11 14:09 Mikael Pettersson
` (2 preceding siblings ...)
2004-02-11 22:14 ` Benjamin Herrenschmidt
@ 2004-02-11 22:26 ` Anton Blanchard
3 siblings, 0 replies; 10+ messages in thread
From: Anton Blanchard @ 2004-02-11 22:26 UTC (permalink / raw)
To: Mikael Pettersson; +Cc: linuxppc-dev
> We're considering buying a G5 for porting a compiler/runtime-system
> project to PPC and eventually PPC64.
>
> The question is, will Linux ever support a 64-bit user-space
> on the G5? From my reading of arch/ppc and arch/ppc64, the
> differences seem major so I'm not holding my breath, but perhaps
> there is hope.
Its done, the more important question is when you will port perfctr
to 970 :)
> Or should we use some other OS than Linux :-(
Definitely not :)
Anton
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 64-bit user-space on G5? Never, soonish, or unknown?
@ 2004-02-12 7:47 Mikael Pettersson
0 siblings, 0 replies; 10+ messages in thread
From: Mikael Pettersson @ 2004-02-12 7:47 UTC (permalink / raw)
To: benh; +Cc: linuxppc-dev
On Thu, 12 Feb 2004 09:14:02 +1100, Benjamin Herrenschmidt wrote:
>> The question is, will Linux ever support a 64-bit user-space
>> on the G5? From my reading of arch/ppc and arch/ppc64, the
>> differences seem major so I'm not holding my breath, but perhaps
>> there is hope.
...
>There is a 64 bits kernel for the G5, it's currently available
>on YDL site, though I'll have the whole thing merged with Linus in
>a few days (with some luck, 2.6.3 will boot out of the box on those
>in both 32 bits and 64 bits versions).
Ubercool! Thanks.
/Mikael
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 64-bit user-space on G5? Never, soonish, or unknown?
@ 2004-02-12 7:49 Mikael Pettersson
0 siblings, 0 replies; 10+ messages in thread
From: Mikael Pettersson @ 2004-02-12 7:49 UTC (permalink / raw)
To: anton; +Cc: linuxppc-dev
On Thu, 12 Feb 2004 09:26:40 +1100, Anton Blanchard wrote:
>> The question is, will Linux ever support a 64-bit user-space
>> on the G5? From my reading of arch/ppc and arch/ppc64, the
>> differences seem major so I'm not holding my breath, but perhaps
>> there is hope.
>
>Its done, the more important question is when you will port perfctr
>to 970 :)
Easy: I'll start the port as soon as IBM releases relevant
documentation on the 970.
/Mikael
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 64-bit user-space on G5? Never, soonish, or unknown?
@ 2004-02-28 23:16 Albert Cahalan
2004-03-01 22:38 ` linas
0 siblings, 1 reply; 10+ messages in thread
From: Albert Cahalan @ 2004-02-28 23:16 UTC (permalink / raw)
To: linuxppc-dev; +Cc: benh
Benjamin Herrenschmidt writes:
> The 64 bits kernel allow you to run both 32 and
> 64 bits userland, the common practice is to have
> a 32 bit userland with the necessary libs to be
> able to build & run _some_ 64 bits executables.
You'd better have a 64-bit ncurses. If you don't,
your procps will be compiled incorrectly. Data
will get truncated, mangled, etc. -- assuming you
can even run the tools at all.
The same goes for pretty much any other lib.
If it isn't a package-private lib, you need
it in a 64-bit version. The 32-bit libs can
go in an optional compatibility package.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 64-bit user-space on G5? Never, soonish, or unknown?
2004-02-28 23:16 64-bit user-space on G5? Never, soonish, or unknown? Albert Cahalan
@ 2004-03-01 22:38 ` linas
2004-03-01 23:42 ` Albert Cahalan
0 siblings, 1 reply; 10+ messages in thread
From: linas @ 2004-03-01 22:38 UTC (permalink / raw)
To: Albert Cahalan; +Cc: linuxppc-dev, benh
Hi Albert,
On Sat, Feb 28, 2004 at 06:16:28PM -0500, Albert Cahalan wrote:
>
> Benjamin Herrenschmidt writes:
>
> > The 64 bits kernel allow you to run both 32 and
> > 64 bits userland, the common practice is to have
> > a 32 bit userland with the necessary libs to be
> > able to build & run _some_ 64 bits executables.
>
> You'd better have a 64-bit ncurses. If you don't,
> your procps will be compiled incorrectly. Data
> will get truncated, mangled, etc. -- assuming you
> can even run the tools at all.
? My ps, top, w all work fine:
linas@panic:~> file /usr/bin/top
/usr/bin/top: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked (uses shared libs), stripped
linas@panic:~> file /bin/ps
/bin/ps: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked (uses shared libs), stripped
They've been running fine, with all manner of mangled and hacked
2.4 and 2.6 kernels.
--linas
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 64-bit user-space on G5? Never, soonish, or unknown?
2004-03-01 22:38 ` linas
@ 2004-03-01 23:42 ` Albert Cahalan
0 siblings, 0 replies; 10+ messages in thread
From: Albert Cahalan @ 2004-03-01 23:42 UTC (permalink / raw)
To: linas; +Cc: Albert Cahalan, linuxppc-dev, benh
On Mon, 2004-03-01 at 17:38, linas@austin.ibm.com wrote:
> On Sat, Feb 28, 2004 at 06:16:28PM -0500, Albert Cahalan wrote:
> > You'd better have a 64-bit ncurses. If you don't,
> > your procps will be compiled incorrectly. Data
> > will get truncated, mangled, etc. -- assuming you
> > can even run the tools at all.
>
> ? My ps, top, w all work fine:
>
> linas@panic:~> file /usr/bin/top
> /usr/bin/top: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked (uses shared libs), stripped
> linas@panic:~> file /bin/ps
> /bin/ps: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked (uses shared libs), stripped
>
> They've been running fine, with all manner of mangled and hacked
> 2.4 and 2.6 kernels.
Try this:
ps -eo drs,trs,tsiz,dsiz,start_stack,esp,eip,nwchan,wchan
(especially when examining a 64-bit process or when
running on the 2.4 kernel)
By "assuming you can run the tools at all" I mean that
you might end up with 32-bit libraries in /lib64.
If you build on a pure 32-bit system this won't happen.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-03-01 23:42 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-28 23:16 64-bit user-space on G5? Never, soonish, or unknown? Albert Cahalan
2004-03-01 22:38 ` linas
2004-03-01 23:42 ` Albert Cahalan
-- strict thread matches above, loose matches on Subject: below --
2004-02-12 7:49 Mikael Pettersson
2004-02-12 7:47 Mikael Pettersson
2004-02-11 14:09 Mikael Pettersson
2004-02-11 14:51 ` Christian Kujau
2004-02-11 15:33 ` tom_gall
2004-02-11 22:14 ` Benjamin Herrenschmidt
2004-02-11 22:26 ` Anton Blanchard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).