Haiku and multiple cpu's

Forum thread started by KantosKan on Fri, 2013-11-08 01:54

Hello,
Does anyone know if there are any computers for which Haiku recognizes 4 or more cpu's ? I have only seen it indicate 2 cpu's in the icon display, even though the Intel iMac on which I run Haiku has two double-core cpu's. Way back in 1997 I saw a demo of BeOS running on a BeBox with 8 cpu's. The performance was incredible. More than 16 years later Apple and Microsoft still can't compare with that demo. I would love to get an 8 cpu machine for Haiku, or even 4.

Comments

Bug report

If Haiku does not show all the cores of your CPU you should file a bug report.

Which version of Haiku is this?

Re: Haiku and multiple cpu's

I have a dual core and I have had the same probluem and just thought it was a driver or a kernal issue.

Re: Haiku and multiple cpu's

They just raised the CPU limit a couple of days ago.

Just putting that out there here just in case someone missed that article. But of course if you still do not see all your cores you should definitely file a bug report.

I would recomaned getting a cheap AMD dual cpu socket MB and getting quad core opteron 3000 CPUs, then you would have your 8 cores and also lots of PCIe slots and RAM slots for additional upgrades down the road. All in all off Newegg or ebay it would probably cost around $450, for an older server motherboard and 16 gigs of RAM, and the 2 CPU's.

Re: Haiku and multiple cpu's

I picked up a HP XW9400 workstation before Christmas for only $200. It has AMD dual quad core Opterons for a total of 8 cores, and can be upgraded to dual 6 core "Istanbul" processors. Haiku hrev46618 x86_64 installed without issues, and everything is working except for SAS drive support -SATA is ok. The guys who sold me my unit can be found on ebay under "calgarycomputerwholesale".

Re: Haiku and multiple cpu's

Haiku works correctly with up to 8 CPUs. If you have an Intel CPU with hyperthreading, this will count as 2 CPUs. Pawel has recently created a nightly release (as mentioned previously) with support for more CPUs.

Here is a quick and crude implementation of the Haiku Mandelbrot demo with support for 4 CPUs.
http://haikuware.com/directory/view-details/multimedia/video/miscellaneo...

Re: Haiku and multiple cpu's

Hi vidrep, Thanks for that hint. Recently I bought an 8-core XW9400 on ebay. It is really impressive running Haiku (even though Haiku doesn't recognize the nVidia 16:9 video card).

Re: Haiku and multiple cpu's

It's nice to see somebody with the same PC using Haiku. Maybe we can collaborate on bug reports, by verifying hardware and system issues etc. before filing a ticket.

Re: Haiku and multiple cpu's

Speaking of multiple cores/CPUs, did the bug that prevented CPU throttling on multi-core/multi-processor systems ever get fixed?

Re: Haiku and multiple cpu's

Well, Intel plans a 8-core CPU later this year. With hyper-threading it will look like 16 CPUs to the OS.

See: http://hothardware.com/News/Intel-Outs-HaswellE-and-Devils-Canyon-CPUs-R...

The new API is coming on-line just in time.

Re: Haiku and multiple cpu's

I just got a 2x8 core xeon machine (OS sees 32 cores) with 128GB RAM under my desk at work. Will try booting haiku next week and see what happens.

Re: Haiku and multiple cpu's

I've been installing nightly builds on my main machine which uses an older quad-core Xeon x3210 CPU & Haiku runs really smooth, even though i have it down-clocked to almost half its default frequency because of heating issues. Other than that i haven't had any problems running the nightly builds on older quad-core systems.

@Munchausen: try it! I've been waiting to hear a story about Haiku running on a high-end dual Xeon system, i bet GLteapot renders at 700+ fps lol.

Re: Haiku and multiple cpu's

Munchausen wrote:

I just got a 2x8 core xeon machine (OS sees 32 cores) with 128GB RAM under my desk at work. Will try booting haiku next week and see what happens.

Hey, I am black and I still turned green with envy.

Re: Haiku and multiple cpu's

I started to download the latest nightly to give it a go yesterday, but it was going to take 3 hours or so (quite why I don't know!). I left it running, and will try it next week...

Re: Haiku and multiple cpu's

Sorry to intrude. But how does this discussion vary from this query?

https://www.haiku-os.org/community/forum/threads_and_mulitcore_processors

Re: Haiku and multiple cpu's

Tried booting haiku yesterday but got a KDL when it couldn't find the USB drive it was booting from. I tired a few BIOS settings that didn't help, I'll try a CD next time.

@puppy-linux: they're quite similar threads. I don't really see how you can't see the differences by reading them? The other thread asks if haiku is written to take advantage of multi threading/multi core CPUs already, this one asks if anyone has gotten more than 4 CPUs working in haiku.

Re: Haiku and multiple cpu's

Yes. My point was more that why ask about multiple CPUs (more cores really) if the programms available don't take advantage of them. You are saving very little if anything by going for low efficiency exotic old second hand multiple CPU motherboards when you can buy new more conventional more modern efficient motherboards for AMD multi-core CPU, especially when neither take advantage of the extra grunt. As was pointed out above the OS has already been tweaked to look for more CPUs. It is shame that most Haiku software, despite the OS's architecture, is stuck written in a style for more conventional OS. A bit like having a super car with only 2 gears.

Good stuff. But I can't see the point beyond kudos (which is important at times I suppose!)

Re: Haiku and multiple cpu's

I see your point, and agree that it would be nice to have more apps making use of multi-threading, but I don't think the situation is much better on other OSs. At least on haiku you know certain things (each window) will get their own thread without any programming effort.

But there is a point or use for multiple cores anyway, and it's the same as for other OSs - supporting more cores/CPUs means you can run more software at once. You only need a web browser where each tab gets it's own thread/process (ala chrome) for multicore to be useful, or the use case where you have a web browser, video player, office, pdf reader, game etc open at the same time and may want to do even more in the background. It would be nice if more software was written multi-threaded, but having several cores is useful even if it isn't.

Also, I guess you were referring to other peoples "low efficiency exotic old" hardware, because my office workstation is brand new and very efficient ;) (I guess Xeon on the desktop is maybe a little exotic). I just want to see if haiku works on it really... we've just got support for >8 cores, let's test it on some bleeding edge hardware with 32 cores! :D

Re: Haiku and multiple cpu's

I meant others searching ebay for a bargain surplus multi-cpu motherboard. :)

And true the situation isn't much better elsewhere when it comes to making use of an entire processor. But you would think Haiku software (not that is much out there) would start off from a better place else why write for it? Though as we both know it is easier said than done to write software that way.

Undervolting an FX8320 seems a worthwhile exercise as long as you don't waste power savings on extra boards and other toys. That is the trouble though today. Back in the olden days we used to use computers for computing and were happy with a bit of colour. Now they are media consumption devices that are deemed deficient if they haven't multiple-4k graphics board and 8 peta-byte SSDs in RAID 0............... :)

I fear Haiku will always just be something to boot up in a VM every so often for a wistful look before going back to something more conventional. :(

Re: Haiku and multiple cpu's

Not true for all.

I just got my i7-4770 machine 4 cores and 4 virtual cores.

Why? Because I want to write programs that just take too long on lessor machines, and then I hope to upgrade the CPU when Intel brings out it's 8 core model this fall.

Still this is for personal use, not many people needed all that CPU power, but some do.

PS. I also expect this machine to be last me for five(5) years or more unless there is a major break-thru.

Re: Haiku and multiple cpu's

Another reason to search ebay for bargain quad core boards is some of them can run BeOS whereas the newer ones probably won't. And do note that the ones that will run BeOS and Haiku are pretty specific I know there have been discussions on it in the past.

Re: Haiku and multiple cpu's

It is alive!

I did run into one problem, I could not get it boot from USB.

But the moment I installed a SSD will Haiku-OS on it, it booted fine.

Time to start programming.

Re: Haiku and multiple cpu's

Well, my new Xeon machine wont boot haiku. I'm not sure why it didn't like the CD, but not even the first icon lights up. Ah well, it works very happily on my laptop :)

Re: Haiku and multiple cpu's

@Munchausen Could you press spacebar just as the haiku bootloader starts (right after the BIOS/EFI ends it will get you into the bootloader menu) and set it so you have debuglog printing to the screen enabled and see where its failing specifically? I imagine the Haiku developers would be interested in any info you could provide.

Note there are 2 screen printing modes for the debuglog one where it prints a page and waits for input and another where it prints continuously both can be useful.

Re: Haiku and multiple cpu's

Hey cb88, yeah I already tried that to see what was going on, and it doesn't do anything.

What's strange is that it only does this when booting from CD. If I try to boot from USB it gets to the 4th icon and then I get a KDL saying it can't find the boot volume.

Re: Haiku and multiple cpu's

Ah ic... thats interesting have you posted the USB error log? I know such things have been fixed in the past even for some of my computers.

Very strange about the cdboot.. have you tried burning different images to cd? There is the Anyboot image and also a reglar ISO which work differently.

Re: Haiku and multiple cpu's

Munchausen wrote:

Well, my new Xeon machine wont boot haiku. I'm not sure why it didn't like the CD, but not even the first icon lights up. Ah well, it works very happily on my laptop :)

In the past I have had versions of Haiku-OS that refused to boot from USB, but never had a version that refused to boot from the hard drive.

In the case of CDs I have had them boot but get a blank screen at the end. But the hard drive boots have never failed me.

Do you have a spare hard drive with a boot-able Haiku on it that you can use?

Give it a try.

Re: Haiku and multiple cpu's

Munchausen wrote:

Well, my new Xeon machine wont boot haiku. I'm not sure why it didn't like the CD, but not even the first icon lights up. Ah well, it works very happily on my laptop :)

Me and my big mouth. I took out the 80GB SSD that had the latest nightly on it that booted on my new machine and transferred in a 2TB drive that had a earlier Haiku on it (about a month old).

It does not work!

Fails at the same point as the USB stick (the hard drive icon with a division exception), I will try to do more work to see where the break is, still try the latest nightly before giving up.

Re: Haiku and multiple cpu's

Latest update.

The reason the computer would not boot is the DVD drive!

Remove the cable to the DVD and even the older PM-Haiku-OS will boot okay.

Give it a try.

Re: Haiku and multiple cpu's

Have someone tried to boot Haiku on HP WX8600 workstation? Considering the price of used systems on eBay it seems to be perfect multi-core PC (2x4-core Intel Xeon with 16-32Gb of RAM) for using with Haiku :)