Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 May 2023 16:24:52 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Moin Rahman <bofh@freebsd.org>
Cc:        Ed Maste <emaste@freebsd.org>, freebsd-arch <freebsd-arch@freebsd.org>,  FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Support for more than 256 CPU cores
Message-ID:  <CANCZdfpVvG28wWp7nYmuQPwCaS2DcwzidkM4VOoZq12OCD5M4Q@mail.gmail.com>
In-Reply-To: <E6E2D507-A9F0-4199-8501-3D9B901C5831@freebsd.org>
References:  <CAPyFy2DODJVhs5o8xddaj7GD8zZfC3g1zm_guWKeCmeE07wn-w@mail.gmail.com> <E6E2D507-A9F0-4199-8501-3D9B901C5831@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000005b94b605fb21fe84
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sun, May 7, 2023, 3:51 PM Moin Rahman <bofh@freebsd.org> wrote:

>
>
> > On May 5, 2023, at 3:38 PM, Ed Maste <emaste@freebsd.org> wrote:
> >
> > FreeBSD supports up to 256 CPU cores in the default kernel configuratio=
n
> > (on Tier-1 architectures).  Systems with more than 256 cores are
> > available now, and will become increasingly common over FreeBSD 14=E2=
=80=99s
> > lifetime.  The FreeBSD Foundation is supporting the effort to increase
> > MAXCPU, and PR269572[1] is open to track tasks and changes.
> >
> > As a project we have scalability work ahead of us to make best use of
> > high core count machines, but at a minimum we should be able to boot a
> > GENERIC kernel on such systems, and have an ABI for the FreeBSD 14
> > release that supports such a configuration.
> >
> > Some changes have already been committed in support of increased MAXCPU=
,
> > including increasing MAX_APIC_ID (commit c8113dad7ed4) and a number of
> > changes to reduce bloat (such as commits 42f722e721cd, e72f7ed43eef,
> > 78cfa762ebf2 and 74ac712f72cf).
> >
> > The next step is to increase the maximum cpuset size for userland.
> > I have this change open in review D39941[2] and an exp-run request in
> > PR271213[3].  Following that the kernel change for increasing MAXCPU is
> > in D36838[4].
> >
> > Additional work on bloat reduction will continue after this change, and
> > looking forward FreeBSD is going to need ongoing effort from the
> > community and the FreeBSD Foundation to continue improving scalability.
> >
> > [1] https://bugs.freebsd.org/269572
> > [2] https://reviews.freebsd.org/D39941
> > [3] https://bugs.freebsd.org/271213
> > [4] https://reviews.freebsd.org/D36838
> >
>
> By any chance will this be merged into 13?
>

Nope. It breaks too many kernel KBIs that are exposed to at least some
modules.

Warner

>
> Kind regards,
> Moin
>

--0000000000005b94b605fb21fe84
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Sun, May 7, 2023, 3:51 PM Moin Rahman &lt;<a href=
=3D"mailto:bofh@freebsd.org">bofh@freebsd.org</a>&gt; wrote:<br></div><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc=
c solid;padding-left:1ex"><br>
<br>
&gt; On May 5, 2023, at 3:38 PM, Ed Maste &lt;<a href=3D"mailto:emaste@free=
bsd.org" target=3D"_blank" rel=3D"noreferrer">emaste@freebsd.org</a>&gt; wr=
ote:<br>
&gt; <br>
&gt; FreeBSD supports up to 256 CPU cores in the default kernel configurati=
on<br>
&gt; (on Tier-1 architectures).=C2=A0 Systems with more than 256 cores are<=
br>
&gt; available now, and will become increasingly common over FreeBSD 14=E2=
=80=99s<br>
&gt; lifetime.=C2=A0 The FreeBSD Foundation is supporting the effort to inc=
rease<br>
&gt; MAXCPU, and PR269572[1] is open to track tasks and changes.<br>
&gt; <br>
&gt; As a project we have scalability work ahead of us to make best use of<=
br>
&gt; high core count machines, but at a minimum we should be able to boot a=
<br>
&gt; GENERIC kernel on such systems, and have an ABI for the FreeBSD 14<br>
&gt; release that supports such a configuration.<br>
&gt; <br>
&gt; Some changes have already been committed in support of increased MAXCP=
U,<br>
&gt; including increasing MAX_APIC_ID (commit c8113dad7ed4) and a number of=
<br>
&gt; changes to reduce bloat (such as commits 42f722e721cd, e72f7ed43eef,<b=
r>
&gt; 78cfa762ebf2 and 74ac712f72cf).<br>
&gt; <br>
&gt; The next step is to increase the maximum cpuset size for userland.<br>
&gt; I have this change open in review D39941[2] and an exp-run request in<=
br>
&gt; PR271213[3].=C2=A0 Following that the kernel change for increasing MAX=
CPU is<br>
&gt; in D36838[4].<br>
&gt; <br>
&gt; Additional work on bloat reduction will continue after this change, an=
d<br>
&gt; looking forward FreeBSD is going to need ongoing effort from the<br>
&gt; community and the FreeBSD Foundation to continue improving scalability=
.<br>
&gt; <br>
&gt; [1] <a href=3D"https://bugs.freebsd.org/269572" rel=3D"noreferrer nore=
ferrer" target=3D"_blank">https://bugs.freebsd.org/269572</a><br>;
&gt; [2] <a href=3D"https://reviews.freebsd.org/D39941" rel=3D"noreferrer n=
oreferrer" target=3D"_blank">https://reviews.freebsd.org/D39941</a><br>;
&gt; [3] <a href=3D"https://bugs.freebsd.org/271213" rel=3D"noreferrer nore=
ferrer" target=3D"_blank">https://bugs.freebsd.org/271213</a><br>;
&gt; [4] <a href=3D"https://reviews.freebsd.org/D36838" rel=3D"noreferrer n=
oreferrer" target=3D"_blank">https://reviews.freebsd.org/D36838</a><br>;
&gt; <br>
<br>
By any chance will this be merged into 13?<br></blockquote></div></div><div=
 dir=3D"auto"><br></div><div dir=3D"auto">Nope. It breaks too many kernel K=
BIs that are exposed to at least some modules.</div><div dir=3D"auto"><br><=
/div><div dir=3D"auto">Warner</div><div dir=3D"auto"><div class=3D"gmail_qu=
ote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-le=
ft:1px #ccc solid;padding-left:1ex">
<br>
Kind regards,<br>
Moin<br>
</blockquote></div></div></div>

--0000000000005b94b605fb21fe84--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpVvG28wWp7nYmuQPwCaS2DcwzidkM4VOoZq12OCD5M4Q>