The Apple thread

The Joy of Tech - Anything and everything about all things shiny..
Post Reply
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: The Apple thread

Post by gravy »

Dio wrote:It's not, on the server versions.

32 bit server doesn't run apps in 64 bit does it?

It's the same mess as the desktop versions afaik
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Re: The Apple thread

Post by Dio »

No, but all you said in the last message was that there's a >32 bit component that does memory allocation and that you can use >4G of RAM on powermacs. All x86 chips can use a lot more than 32 bits of physical RAM using PAE - and there's nothing in Windows 32-bit that prevents it. If you've got more memory than 4G, it can give 3.5G to each app and use the rest for other apps, disk cache, mapped files etc.

When PAE was forced on globally for NX support, the Windows client team investigated enabling >4G support as well (this would have been in the XP generation I think). Unfortunately too many 3rd-party device drivers hadn't been tested with PAE and were buggy with it, so they decided the easier option for everyone was to leave it off. Probably makes sense; at the time, 4G was unheard of in the client space, if you had the money to buy the RAM you could buy server Windows to run on it, and by the time of Vista 64-bit was a first-class citizen.

As to your earlier posts, I'm not sure they quite parse in my head. If it's possible to run a 64-bit segment on a 32-bit kernel... I would have thought that if the OS can run 64-bit apps, it's a 64-bit operating system by definition? What in the OS wouldn't actually be 64-bit in that case? What advantage do you get?
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: The Apple thread

Post by gravy »

It may not parse that well but that's how it is.

I'm not sure what the benefit is of the kernel running 64 bit when you can run 64 bit apps in with the kernel in 32 bit mode. There's a definite downside to booting the 64 bit kernel as it has the same issue as Windows 64 bit, far few drivers are available.

But you definitely can, this is what I have running on my machine

Image

As for WINDERS my understanding is Vista 32 bit windows will use a maximum of 4gb of your physical RAM and any extra mem is supported by paging.

This is what it seems to say here:

http://msdn.microsoft.com/en-us/library ... S.85).aspx

Which is a bit shit.

OS X on a 64 bit CPU - 32 bit ver Supports 64 and 32 bit apps, uses all of your physical memory and maintains compatibility with legacy drivers
Winders on a 64 bit CPU - 32 bit doesn't support > 4gb of physical mem or 64 bit apps / 64 bit version has poor driver support

EDIT

Ah right. I see :)

http://en.wikipedia.org/wiki/Physical_A ... ft_Windows

Winders server on a 64 bit CPU - 32 bit doesn't supports up to 32gb of phys RAM depending on the version, still doesn't run 64 bit apps
All client versions only support 4gb of RAM in 32 bit mode
Last edited by gravy on Sun Aug 23, 2009 10:47 pm 0, edited 1 time in total.
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Re: The Apple thread

Post by Dio »

gravy wrote:As for WINDERS my understanding is Vista 32 bit windows will use a maximum of 4gb of your physical RAM and any extra mem is supported by paging.
No, it will use a maximum of 4Gb - X, where X is the physical mappings requested by your IO devices. Generally half a meg. There is no support whatsoever for memory above the 4G line. The latter does not apply on Server versions, where PAE is used to support 4Gb-X per application maximum.

I presume the method you're describing thunks memory-mapped IO through the 32-bit accessible space, so there's probably a hit in IO performance? Or perhaps the drivers are all sanitised for PAE? But in that case, wouldn't it just be easier to write 64-bit drivers?
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: The Apple thread

Post by gravy »

Dio wrote:
gravy wrote:As for WINDERS my understanding is Vista 32 bit windows will use a maximum of 4gb of your physical RAM and any extra mem is supported by paging.
No, it will use a maximum of 4Gb - X, where X is the physical mappings requested by your IO devices. Generally half a meg. As I said above, this does not apply on Server versions.

I presume the method you're describing must thunk all IO through the 32-bit accessible space, so there's probably a big hit in IO performance somewhere?
Go and read up on it, I think there's a big article about it on Arstechnica.

(it was on apple insider http://www.appleinsider.com/articles/08 ... ernel.html )

I haven't seen a lot of benchmarking differences.

Winders is a bit shit. I'm annoyed we have to use Vista 64 for our machines at work to get the benefit of the 8gb of RAM on the machine and then sometimes have hassles with drivers.

The way OS X has migrated to 64 bit has been a lot less hassle. It still has the problem of migrating its driver set to 64 bit but while that's being done OS X has for a while allowed 64 bit apps and used PAE to use all physical memory in your machine which seems like a lot less hassle than streaming the OS into 32 and 64 bit versions.
User avatar
WiteWulf
Sheepie Whore
Sheepie Whore
Posts: 10125
Joined: Mon Aug 23, 2004 11:20 am 0
PSN: WiteWulf
Location: Loughborough(ish)

Re: The Apple thread

Post by WiteWulf »

Cheers guys, that makes a bit more sense now! I can confirm what Gaz says about 64-bit apps running in the 32-bit kernel as I've seen it on my 10.6 box and was quite confused at the time. As to drivers, I would imagine it will take a lot less time for Apple to get this sorted on their (relatively) limited hardware line that it will for the thousands of Windows hardware manufacturers. I'm sure third-party manufacturers will still drag their heels, though (ATI, I'm looking at YOU!)
:::G:::

PSN: WiteWulf
Switch: SW-3941-2878-7584
Steam: WITEWULF66
adam
Baaaaaa!
Baaaaaa!
Posts: 4418
Joined: Sat Jun 24, 2006 9:15 pm 0

Re: The Apple thread

Post by adam »

whats that viscosityHelper process then gravy? have you got a paint factory in your garage?
User avatar
JQW
Baaaaa!
Baaaaa!
Posts: 1186
Joined: Thu Feb 22, 2007 12:23 pm 0
Location: Ripon, where nothing ever happens.

Re: The Apple thread

Post by JQW »

The Apple store is down at the moment. It looks like they're readying themselves for Snow Leopard.
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Re: The Apple thread

Post by Dio »

gravy wrote:Go and read up on it, I think there's a big article about it on Arstechnica.
Looks like a thunking architecture as I thought. I'm very surprised that doesn't cause major hits on IO benchmarks, but there you go.
Winders is a bit shit. I'm annoyed we have to use Vista 64 for our machines at work to get the benefit of the 8gb of RAM on the machine and then sometimes have hassles with drivers.
If you ask me, the craziness was allowing Vista32 in the first place. Would have made everything a lot simpler.

Never had any driver trouble though. It's not like you really need drivers for anything beyond the motherboard and video now anyway...
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Re: The Apple thread

Post by Dio »

Had another thought: I suppose it's also possible that on a microkernel architecture you might thunk all IO by default anyway as part of the message-passing architecture, but I'm no expert on Mach.
User avatar
WiteWulf
Sheepie Whore
Sheepie Whore
Posts: 10125
Joined: Mon Aug 23, 2004 11:20 am 0
PSN: WiteWulf
Location: Loughborough(ish)

Re: The Apple thread

Post by WiteWulf »

What's "thunking", precious? I'm guessing it's not the past tense of thinking :)
:::G:::

PSN: WiteWulf
Switch: SW-3941-2878-7584
Steam: WITEWULF66
User avatar
JQW
Baaaaa!
Baaaaa!
Posts: 1186
Joined: Thu Feb 22, 2007 12:23 pm 0
Location: Ripon, where nothing ever happens.

Re: The Apple thread

Post by JQW »

I remember first coming across thunking back in the days of OS/2 2.0. This was translation code to allow Windows 3.x software to run under OS/2. There was also a similar thing from Microsoft called Win32s which allowed some Window 32-bit code to run on Windows 3.11.
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Re: The Apple thread

Post by Dio »

I originally encountered 'thunk' as a specific small bit of 16-bit x86 code used to transfer data (or control flow - I forget which, I never did much 16-bit x86 code) between different segments. As JQW says, it was then extended in win32s to convert API calls from 32-bit segments into 16-bit ones.

Nowadays I'd say it's generally any notionally redundant operation that assists in translating operations for some reason. For example, you might thunk data across protection ring boundaries, or during a data transfer between different applications if the different rings or apps can't see each other's memory. It's an overhead, but it has it's plus points too - it's a very safe way of coordinating memory access because it reduces the opportunities for trampling someone else's memory.

In this case, if you've a 32-bit device driver that's not PAE aware, it can only see the bottom 32-bits of memory. Therefore, if you have an application that requests a DMA transfer (e.g. a file operation) into memory outside of this limit, you have to load the data into low memory first and then copy it into the memory it can't see.

Wikipedia has a bit more.
User avatar
Cloudane
Baaaaaaa!
Baaaaaaa!
Posts: 7937
Joined: Wed Jun 15, 2005 6:05 pm 0
Location: VRchat

Re: The Apple thread

Post by Cloudane »

I thought the "thunk" was the sound of the Windows User's head hitting the desk - probably repeatedly :)
User avatar
WiteWulf
Sheepie Whore
Sheepie Whore
Posts: 10125
Joined: Mon Aug 23, 2004 11:20 am 0
PSN: WiteWulf
Location: Loughborough(ish)

Re: The Apple thread

Post by WiteWulf »

Thanks for the explanation.

Also, surprised no one's mentioned this yet: Snow Leopard officially out August the 28th. Whether it's gonna be the 10a432 we've already seen or this mythical 10a435 I don't know but my money's on the former.
:::G:::

PSN: WiteWulf
Switch: SW-3941-2878-7584
Steam: WITEWULF66
Post Reply