[haiku-development] Re: SMP: Is MAX_BOOT_CPUS 4 restriction intentional?

  • From: "François Revol" <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 29 Sep 2009 15:10:48 +0200 CEST

>
> Le 29 sept. 2009 à 08:52, Axel Dörfler a écrit :
>
> > Siarzhuk Zharski <zharik@xxxxxx> wrote:
> >> Hm... I have finally understand the comment above the MAX_HEAPS
> >> definition and ...
> >> Shouldn't we increase the number of MAX_HEAPS to twice? :-)))
> >
> > Sounds like the way to go indeed!
>
> I just tried this:
> src/system/libroot/posix/malloc/heap.h
> -             enum { MAX_HEAPS = B_MAX_CPU_COUNT };
> +             enum { MAX_HEAPS = B_MAX_CPU_COUNT * 2 };
>
> and, of course:
> headers/private/kernel/boot/platform/bios_ia32/platform_kernel_args.h
> -#define MAX_BOOT_CPUS 4
> +#define MAX_BOOT_CPUS 8
>
> And Haiku booted successfully in Q[emu] ! It is really slow
> afterwards
> (10 minutes to boot!), but it works.
>
> http://img190.imageshack.us/img190/6451/capturedcran20090929121.png
> :)

Looks nice :)

I just commited it as r33349.

François.

Other related posts: