Settings

Theme

NetBSD on the last G4 Mac mini and making the kernel power failure proof

tenfourfox.blogspot.com

125 points by UkiahSmith 7 years ago · 44 comments

Reader

MrRadar 7 years ago

For those who are not familiar with the author of this blog, he is a PowerPC enthusiast and the maintainer of TenFourFox, a Firefox port to PPC OS X. He's also currently working on a new PPC JIT for (modern) Firefox on Linux (a project for which he is looking for volunteers to assist him[1]) to bring it to speed parity with Chrome on PPC (which already has a PPC JIT).

[1] https://www.talospace.com/2019/03/pitch-into-firefox-jit.htm...

  • jchw 7 years ago

    I just picked up a G4 iBook and am grateful for TenFourFox. Combined with uBlock Origin legacy builds, it’s actually usable for some modern sites, which is pretty impressive.

  • classichasclass 7 years ago

    Author here. Thanks for the kind word. :)

    • MuffinFlavored 7 years ago

      Why the obsession with PPC? Don't you feel you could put your time + effort into something more modern that isn't dying?

      • MrRadar 7 years ago

        PPC is far from dead. You can buy brand-new POWER9 workstations with up to 44 cores (with SMT4 for 176 threads) from Raptor Computer Systems. They are also about as open as a modern computer can be with board schematics included with every system and only one component with closed firmware (the BCM5719 network controller, which is currently being reverse-engineered so an open firmware can be developed).

        • mritun 7 years ago

          Nonsense. PowerPC in old PowerMac and modern POWER 9 have about as much in common as Pentium Pro and a modern Xeon!

          PowerPC is a dead platform, POWER9 is not - but they are not the same!

          • classichasclass 7 years ago

            I'm not sure that's an apt comparison. If you were saying that 32-bit PPC is dead, then the answer is probably yes at least in general computing, though there are still lots of 32-bit PowerPC parts in embedded systems. However, 64-bit PowerPC systems have substantially more in common with "big" POWER. The G5, which was clearly positioned as a member of the PowerPC family (PPC970) but descended from the POWER4, would be the classic example.

          • nickpsecurity 7 years ago

            PowerPC is dead for the larger market but sticks around in specialty markets. Mainly NXP (formerly Freescale):

            https://www.nxp.com/products/processors-and-microcontrollers...

            Also, the separation kernels that met NSA's highest standards of security initially targeted that for cross-selling into aerospace market. They buy a good chunk of PPC for some reason. Example that was among first certified with data on what was expected:

            https://www.ghs.com/products/safety_critical/integrity-do-17...

        • mromanuk 7 years ago

          Wow, didn’t know that, amazing. What is the main use of those machines?

          • classichasclass 7 years ago

            The Talos II I'm typing this reply on is just my regular workstation. I have a dual-4, which is 32 threads, and it runs Fedora. Most things work just fine and it's a very nice daily driver. I'll probably upgrade it to a dual-8 in the near future for even more parallel goodness.

            I also have a Blackbird, which does streaming video in the home theatre and is also a test system. It's a single-4, but it can take an 8-core part if desired.

            • darkpuma 7 years ago

              With that kind of hardware, is hardware decoding and encoding of media a possibility? A DLNA server with hardware transcoding is something I've been thinking about recently.

              • MrRadar 7 years ago

                You can use AMD graphics cards with their open-source drivers. I'm not sure how well hardware-accelerated video works with them but it should work the same as it does on x86 Linux. Multimedia is probably one of the weaker areas for Power since there's so little focus on writing Altivec SIMD code for the platform from the larger open-source multimedia community (most of their focus is understandably on x86 and ARM), though that wouldn't impact hardware en/decoding.

          • MrRadar 7 years ago

            They are primarily intended for people who need lots of threads for high-end workstation uses (see Phoronix's benchmarks[1]), people who want open computers (whether for security/auditability or ideological reasons), or just people who want something different from the mainstream.

            [1] https://www.phoronix.com/scan.php?page=article&item=power9-t...

      • georgemcbay 7 years ago

        The same reason some people still use Amigas with 680x0s... rampant nostalgia.

        I kinda don't get it on a personal level, but accept that different people are into different stuff and sometimes people get really attached to specific things, and sometimes those things are computer architectures.

      • classichasclass 7 years ago

        Why do you say it's dying?

  • krackers 7 years ago

    Do you mean webkit on ppc (since I searched but couldn't find a chrome port)

  • dillonmckay 7 years ago

    What is the last supported OS X version for PowerPC processors?

mikece 7 years ago

Somewhere there are chip designers thinking they can create the first processor on which NetBSD cannot run. Have fun kids: many have tried that and failed!

  • verisimilitudes 7 years ago

    Not every chip mimics a PDP-11 or can be made to resemble one. Chuck Moore's GA144 is an array of his F18A Forth chips, which are all rather small and simple stack machines that support such fine grained operations as looping the instructions that share a machine word.

    Given that this is a heavily segmented machine, with very different primitive operations than a PDP-11, and also has a word size of eighteen, I don't imagine C would run very well on it at all, if you even wanted to try.

    So, there you have it.

    • Dylan16807 6 years ago

      I'd say that the stack machine in the GA144 is feasible to compile normal C to. And the 18-bit word is barely a problem. But the (complete lack of) memory architecture is a clear dealbreaker. There's no compiling a normal C program down to an architecture that has 64 words of RAM. At best you can gang a few cores together to make an emulator for a simple virtual machine.

  • quickben 7 years ago

    Mill architecture?

    • rjsw 7 years ago

      Maybe. NetBSD doesn't have an equivalent of the nommu variant of Linux.

oneplane 7 years ago

As fun as this is (and as much as I appreciate putting good old hardware to use and as much as I like PPC): the power consumption alone wouldn't make this a winner :(

I have a PowerBook G4 DVI, iBook G4, B&W G3, GbE G4, Dual G5 here, I want to get rid of them but I like them too much. Yet I can't run them for fun all day long either because the amount of power they eat >:( The problems of a hardware connoisseur.

  • classichasclass 7 years ago

    Author here. Power consumption on this unit is about 21W.

    Is the CPU/watt ratio less than later units? You bet. But it's not bad, it's free, it's not in a landfill, and it's more than enough grunt for the basic tasks it's doing.

    • oneplane 7 years ago

      Yeah, those Mac Minis can go quite low. But still the CPU power from any PPC vs. an ARM or low-end x86 is a bit inverted. A low-end ARM or x86 that is faster than any of the PPCs while using less than half the power (in the 1W to 8W range) does make a dent.

  • dvdbloc 7 years ago

    I have the same problem with two G5 Xserves. They’re just too cool to get rid of.

    • oneplane 6 years ago

      Yeah, same problem here with some older Xeon Xserves. Still running (but Linux and Xen at this point). Without macOS you lose the cool CPU LED indicators at the front, but you still have everything else, including IPMI. They are way too neat to get rid of, specially when they still run (which for this 1U deal is fine because the power cost is fixed anyway).

  • WWLink 7 years ago

    o_O Compared to what? G3s and G4s are pretty light on power usage - IIRC they use around 10-15w? The G3s were even less.

    The i7 in my desktop uses at least 95w, and some reviews suggest it's more like 140w lol.

    Edit: Unless you're pairing them with CRT monitors...

microcolonel 7 years ago

The fire extinguisher on the desk is a nice touch; though I'm not sure that's enough volume to extinguish a G4 fire.

  • giobox 7 years ago

    I don’t recall the G4 PowerPC designs being unusually hot running by standards of the day? The G5 was of course, but it was much worse in this regard than the G4.

    • reaperducer 7 years ago

      Yeah, the G5 was a scorcher. But I remember my G4 laptops turning my thighs red, too.

    • tomxor 7 years ago

      As an owner of both G4 and G3 laptops, I can assure you, eggs will fry given the right task... The G3 was actually worse.

      • ianai 7 years ago

        Long way from reports of fires. I’ve only heard of lithium batteries doing that

        • tomxor 7 years ago

          No it's the chips, these machines didn't exactly have the most user friendly heat dissipation design, on both models the CPU heat conducted straight through to the top case. maybe not cook an egg very fast but uncomfortable to touch for more than a second... maybe 1 EPH (one egg per hour) :)

          • UncleSlacky 7 years ago

            The early Intel MacBooks weren't much better - my black 2007 2,1 model gets pretty hot and has a serious lack of ventilation holes.

        • microwavecamera 7 years ago

          Now the old Powerbook 5300's actually did catch fire. My 1st tech job was a hardware technician at an Apple production facility mostly building and refurbishing Powerbooks, can confirm.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection