From nobody Mon Jun 16 07:28:44 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLM7c1PWQz5Vk2m for ; Mon, 16 Jun 2025 07:29:00 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "vps1.elischer.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLM7b0m52z49MH for ; Mon, 16 Jun 2025 07:28:59 +0000 (UTC) (envelope-from julian@freebsd.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=softfail (mx1.freebsd.org: 204.109.63.16 is neither permitted nor denied by domain of julian@freebsd.org) smtp.mailfrom=julian@freebsd.org; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=freebsd.org (policy=none) Received: from [192.168.20.14] (180-150-86-67.b49656.per.static.aussiebb.net [180.150.86.67]) (authenticated bits=0) by vps1.elischer.org (8.17.2/8.16.1) with ESMTPSA id 55G7SoNO088111 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 16 Jun 2025 00:28:52 -0700 (PDT) (envelope-from julian@freebsd.org) X-Authentication-Warning: vps1.elischer.org: Host 180-150-86-67.b49656.per.static.aussiebb.net [180.150.86.67] claimed to be [192.168.20.14] Message-ID: <71d166d8-0a5b-4cb4-87c8-ee292b50e81b@freebsd.org> Date: Mon, 16 Jun 2025 15:28:44 +0800 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [maybe spam] Re: A modern programming language for FreeBSD: Swift To: freebsd-hackers@freebsd.org References: Content-Language: en-US From: Julian Elischer In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [1.20 / 15.00]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; ONCE_RECEIVED(0.20)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : No valid SPF, No valid DKIM,none]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEFALL_USER(0.00)[julian]; ARC_NA(0.00)[]; ASN(0.00)[asn:36236, ipnet:204.109.60.0/22, country:US]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; TO_DOM_EQ_FROM_DOM(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_XAW(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4bLM7b0m52z49MH X-Spamd-Bar: + On 6/14/25 10:06 PM, Konstantin Belousov wrote: > On Sat, Jun 14, 2025 at 01:06:40PM +0000, Jordan Gordeev wrote: >> * support for dynamic linking (incl. to libc for isolating generated code from changes to the userland–kernel interface) > What specifically do you mean there? > > Does swift run over the C runtime, or like Go, it implements its own > runtime directly interacting with kernel syscalls? I have a Basic to C converter on my BSD web page..  I haven't changed it for  a couple of decade or so but it did run last I looked.. Maybe we can use it to maintain FreeBSD in basic!   Only takes a few millisecs to covert a CBASIC program to C.   Lets go for a language that isn't "fashionable", but really has history! https://en.wikipedia.org/wiki/CBASIC From nobody Mon Jun 16 07:41:10 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLMQW5C4Mz5Vl24; Mon, 16 Jun 2025 07:41:55 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLMQV19cYz3HRn; Mon, 16 Jun 2025 07:41:54 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=WAEqFzRt; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::102b as permitted sender) smtp.mailfrom=marietto2008@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-31223a4cddeso3019272a91.1; Mon, 16 Jun 2025 00:41:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750059708; x=1750664508; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=dCDKtMQYx5PoZaMtHaGOaXiHg9GcqfRHxGPnxRaI5eY=; b=WAEqFzRtx8yXIfyJOlRT8/Tyr4Q6dpVhZVh02mg1oaphN17k3+/+nLsDVd+tv6fMIX jCYo2cbNyMbDnQrfXJd1GdXwDHkHO0El/gNx+uQmQvLxAlPdyQu6eB/3R9HOLdVHct4g D/39e8GSIUeL12uAzEV5GdHNp7msK8TVSZEEEKIhlEFux+0uWVgQvJUb0hbOY32cMWae N2tGfPMoDkh/4wdgfxFnMTEF9hIAMYh0GxSln07TF9CFvrko8m9JQLAy4ELH0OBpLYaR vDFvM6hUAcmoktbZ+ueaJpTNwkN6leHsHoSJYIN/ctA+bE7apfdWnWe+BoKrBc/DRfnN vICA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750059708; x=1750664508; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dCDKtMQYx5PoZaMtHaGOaXiHg9GcqfRHxGPnxRaI5eY=; b=aUucOFR+z1n4bvx6YoLhnLYrpF66iv1TlBj4ZY/iWFW0JXARURBoNUJrhrVeABTqVy 3zwa9qOa47YrZ7GKdPajt4ESOzeDwiNKiSBlVz3Sayoq0GaHBbcQotD5UEEGQ01Fkzmc 8jP5j09dKG6EQu8sQlnVItVRZflMcyarw+FZxA/2naKq1BN6clZo43E9JN8+BqFVknMW aMAM8tt3W74LaYRCKlGvJdIQzkyfXfQw8W4XjHd/9yfysQw6NuzCFrCixmIvz/gdYkGf Vyg0F/x6xd+YCGgEQhCI13MRFzIe5gOE2kCaO9PYVndyK1Br0qPt7/PRhs7SsT2TmJwZ 2foQ== X-Forwarded-Encrypted: i=1; AJvYcCUpnFVSIWSAGY7RW0FYGCJ3DKneER5bPmRXd9RQzx2PNBEqpOk+HmpC+9wZkAuBumnZkAaYc97l29cpIxlU1Z7j@freebsd.org, AJvYcCXRwi0JQSA8Yk3yGHMQSEY11zPp5v9PJw3/RjxKfFb61FURNe+PyihEDC0rIs1Cc6UQyZI=@freebsd.org X-Gm-Message-State: AOJu0YwMHNRTC+UsNoXAiHLehJBaXZbkZgEFrzKliLCO1S1au7WbdLJx EHpyFE9/qg0w2nmZpuIxj+xRbcH087o6fInCGFUyQ+PhMTJ3R6nE+rUcAQrKvLi0eR1h0ZdTIiK 7J0n6I+haC0U37hlXPuOJLTZ9dueYvp8= X-Gm-Gg: ASbGncuxtk9LIm+HduZ6hlVhAtMCDaHTOCSp/9FTxTp0vCOscnv84zC8YzEGCM5e6CW uMNeNblOt9IBToj0N0vfUZ84r1ZmwrPldN06K1PY7lE97+DnY7ODPsOWFPZ1z/PPAwYACeTVa// PvHOS0nnRUtGl1OjvdznXlrntbhI1ogZENLcmFRIMIOviu X-Google-Smtp-Source: AGHT+IEMgRmmTtmsAL4KSaG2cCcAAAuHh4xW8hVqFevDHgf6zYVN/hTu5EbeW1B25jx9sunVB6CZWQlaZYqirtzuJq4= X-Received: by 2002:a17:90b:1a87:b0:311:abba:53c0 with SMTP id 98e67ed59e1d1-313f1c03004mr13202765a91.9.1750059707837; Mon, 16 Jun 2025 00:41:47 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <4353181.KlZ2vcFHjT@diego> In-Reply-To: From: Mario Marietto Date: Mon, 16 Jun 2025 09:41:10 +0200 X-Gm-Features: AX0GCFtG6PBsjGJbvby2ZpxSdfkHxWr4dWBMf8CWuyvyoeufCbCpWeVY1gFAaPY Message-ID: Subject: Re: What abouth the panfrost "driver" installed on the Radxa Zero 3W (Rockchip RK3566) To: =?UTF-8?Q?Heiko_St=C3=BCbner?= Cc: - Sandy Huang , - Andy Yan , freebsd-hackers , arm@freebsd.org, =?UTF-8?Q?S=C3=B8ren_Schmidt?= , Jesper Schmitz Mouridsen Content-Type: multipart/alternative; boundary="00000000000038b2f20637ab8775" X-Spamd-Result: default: False [-2.04 / 15.00]; NEURAL_HAM_SHORT(-0.99)[-0.988]; NEURAL_HAM_MEDIUM(-0.94)[-0.936]; NEURAL_SPAM_LONG(0.89)[0.887]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_CC(0.00)[rock-chips.com,163.com,freebsd.org,deepcore.dk,schmitz.computer]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org,arm@freebsd.org]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_SEVEN(0.00)[7]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::102b:from] X-Rspamd-Queue-Id: 4bLMQV19cYz3HRn X-Spamd-Bar: -- --00000000000038b2f20637ab8775 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable We need a vop2 driver linux driver has 5000 lines of code and supports all of the vop2 variants .compatible =3D "rockchip,rk3566-vop", .compatible =3D "rockchip,rk3568-vop", .compatible =3D "rockchip,rk3576-vop", .compatible =3D "rockchip,rk3588-vop", this 5k lines do not include support for the rk3588 newer hdmi variants but lets ignore that for now and assume that current hdmi code will work for rk356x also from what i've seen the current linux vop2 code is for a newer release of drm than what evadot's code uses so the api is slightly different On Sun, Jun 15, 2025 at 10:07=E2=80=AFPM Mario Marietto wrote: > ---> I assume that was serial output ? > > Nope,FreeBSD boots and it displays all the messages that you see on > screen. So,I think that it works for the most part. > > On Sun, Jun 15, 2025 at 9:39=E2=80=AFPM Heiko St=C3=BCbner wrote: > >> Hi Mario, >> >> [I have no clue about any BSD, so the stuff below is somewhat generic] >> >> Am Sonntag, 15. Juni 2025, 09:55:12 Mitteleurop=C3=A4ische Sommerzeit sc= hrieb >> Mario Marietto: >> > Emanuel Vadot and Jesper Schmitz Mouridsen have enabled the panfrost >> driver >> > already,but on the rockpro RK3399,but for my phone I've chosen the >> smaller >> > Radxa board. These are their github with their kernel patches code : >> > >> > https://github.com/evadot/drm-subtree >> > https://github.com/jsm222/drm-subtree >> > >> > With some coworker on the FreeBSD forums we tried to see if the panfro= st >> > driver worked on that board. >> >> First of all you need to be aware that there are multiple components >> involved. >> The whole thing is _not_ one "graphics card" that produces 3d graphics >> and graphical output. >> >> The MALI gpu really is just render-only gpu, it creates 3d graphics and >> puts >> them into "some" memory. >> >> The display output is done by the "visual output processor" (VOP) + some >> output controllers like the dw-hdmi, for hdmi output. >> >> >> > Unfortunately,it seems that some code is missing,such as the vop2,but = we >> > aren't sure about what could be missing. >> >> Starting with the rk3566, Rockchip introduced a new version of the VOP >> (that VOP2 you're missing), which is a completely different IP block >> compared >> to the previous VOP. >> >> >> > Anyway,I want to show you the error that we get : >> > >> > >> > [image: panfrost-Radxa.jpeg] >> >> I assume that was serial output? >> >> >> > We would have some clarification about what's missing,what should be >> fixed >> > in the code. >> >> First of all you need a (new?) driver for the VOP2 + the necessary >> additions >> for dw-hdmi or dw-dsi or whatever - those controllers are still similar >> to the >> previous generations and "only" changed starting with the rk3588. >> >> >> When that works you should have unaccelerated HDMI output. >> >> >> After that you could check if the panfrost driver you have supports the >> (newer) generation of the MALI gpu (the rk3566 variant is a number of >> years >> newer than the rk3399 variant) and those github trees you linked to >> haven't >> seen any change for 3 years now. >> >> >> As I said I have no clue about anything BSD, so that is the farthest I c= an >> help here. >> >> >> Heiko >> >> > Eventually I could hire a FreeBSD kernel developer to produce the patc= h >> > needed to enable it on the Radxa board. >> > >> > It makes no sense to run FreeBSD on a phone without being able to use >> its >> > GPU / MALI / acceleration. >> > >> > Please enlighten us with some lucid considerations. >> > >> > Thanks. >> > >> > >> >> >> >> >> > > -- > Mario. > --=20 Mario. --00000000000038b2f20637ab8775 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
We need a vop2 driver
linux driver has 5000 lines of code and supports all of the vop2 variants
.compatible =3D "rockchip,rk3566-vop",
.compatible =3D "rockchip,rk3568-vop",
.compatible =3D "rockchip,rk3576-vop",
.compatible =3D "rockchip,rk3588-vop",

this 5k lines do not include support for the rk3588 newer hdmi variants=20 but lets ignore that for now and assume that current hdmi code will work for rk356x
also from what i've seen the current linux vop2 code is for a newer=20 release of drm than what evadot's code uses so the api is slightly=20 different


On Sun, Jun 15, 2025 at 10:07=E2=80=AFPM Mario Ma= rietto <marietto2008@gmail.com= > wrote:
=
---> I assume that was serial output ?
<= br>
Nope,FreeBSD boots and it displays all the messages that you = see on screen. So,I think that it works for the most part.=C2=A0

On Su= n, Jun 15, 2025 at 9:39=E2=80=AFPM Heiko St=C3=BCbner <heiko@sntech.de> wrote:
Hi Mario,

[I have no clue about any BSD, so the stuff below is somewhat generic]

Am Sonntag, 15. Juni 2025, 09:55:12 Mitteleurop=C3=A4ische Sommerzeit schri= eb Mario Marietto:
> Emanuel Vadot and Jesper Schmitz Mouridsen have enabled the panfrost d= river
> already,but on the rockpro RK3399,but for my phone I've chosen the= smaller
> Radxa board. These are their github with their kernel patches code : >
> https://github.com/evadot/drm-subtree
> https://github.com/jsm222/drm-subtree
>
> With some coworker on the FreeBSD forums we tried to see if the panfro= st
> driver worked on that board.

First of all you need to be aware that there are multiple components involv= ed.
The whole thing is _not_ one "graphics card" that produces 3d gra= phics
and graphical output.

The MALI gpu really is just render-only gpu, it creates 3d graphics and put= s
them into "some" memory.

The display output is done by the "visual output processor" (VOP)= + some
output controllers like the dw-hdmi, for hdmi output.


> Unfortunately,it seems that some code is missing,such as the vop2,but = we
> aren't sure about what could be missing.

Starting with the rk3566, Rockchip introduced a new version of the VOP
(that VOP2 you're missing), which is a completely different IP block co= mpared
to the previous VOP.


> Anyway,I want to show you the error that we get :
>
>
> [image: panfrost-Radxa.jpeg]

I assume that was serial output?


> We would have some clarification about what's missing,what should = be fixed
> in the code.

First of all you need a (new?) driver for the VOP2 + the necessary addition= s
for dw-hdmi or dw-dsi or whatever - those controllers are still similar to = the
previous generations and "only" changed starting with the rk3588.=


When that works you should have unaccelerated HDMI output.


After that you could check if the panfrost driver you have supports the
(newer) generation of the MALI gpu (the rk3566 variant is a number of years=
newer than the rk3399 variant) and those github trees you linked to haven&#= 39;t
seen any change for 3 years now.


As I said I have no clue about anything BSD, so that is the farthest I can<= br> help here.


Heiko

> Eventually I could hire a FreeBSD kernel developer to produce the patc= h
> needed to enable it on the Radxa board.
>
> It makes no sense to run FreeBSD on a phone without being able to use = its
> GPU / MALI / acceleration.
>
> Please enlighten us with some lucid considerations.
>
> Thanks.
>
>






--
Ma= rio.


--
Ma= rio.
--00000000000038b2f20637ab8775-- From nobody Mon Jun 16 08:41:38 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLNll1cVBz5VpDS for ; Mon, 16 Jun 2025 08:41:55 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLNlk50yWz3lfk for ; Mon, 16 Jun 2025 08:41:54 +0000 (UTC) (envelope-from kostikbel@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: from tom.home (kib@localhost [127.0.0.1] (may be forged)) by kib.kiev.ua (8.18.1/8.18.1) with ESMTP id 55G8fcU4072299; Mon, 16 Jun 2025 11:41:41 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 55G8fcU4072299 Received: (from kostik@localhost) by tom.home (8.18.1/8.18.1/Submit) id 55G8fcvj072288; Mon, 16 Jun 2025 11:41:38 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 16 Jun 2025 11:41:38 +0300 From: Konstantin Belousov To: Jamie Landeg-Jones Cc: jgopensource@proton.me, freebsd-hackers@freebsd.org Subject: Re: A modern programming language for FreeBSD: Swift Message-ID: References: <202506152335.55FNZJjr066895@donotpassgo.dyslexicfish.net> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202506152335.55FNZJjr066895@donotpassgo.dyslexicfish.net> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on tom.home X-Rspamd-Queue-Id: 4bLNlk50yWz3lfk X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] On Mon, Jun 16, 2025 at 12:35:19AM +0100, Jamie Landeg-Jones wrote: > Jordan Gordeev wrote: > > > The FreeBSD project can leap into the future by choosing a modern programming language to replace C, or continue living in the past, hoping that the rest of the world will do the same. > > Not a good start to a "sales" pitch. Perhaphs. But I expected somewhat more mature inception of the contribution. The introduction for it is not great, but the work done could be. Having the swift ported is huge amount of work, and I see it as useful. We need it to have the system to be a good platform for all modern languages. IMO Jamie deserves the gratefulness and encouragement for the work done, and not the naive sarcasm due to some missed wording. From nobody Mon Jun 16 09:26:05 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLPkt26nRz5pgQ0 for ; Mon, 16 Jun 2025 09:26:14 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLPks58qGz3Lgv for ; Mon, 16 Jun 2025 09:26:13 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Authentication-Results: mx1.freebsd.org; none Received: from critter.freebsd.dk (unknown [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id 06B8DB0A1B; Mon, 16 Jun 2025 09:26:06 +0000 (UTC) Received: (from phk@localhost) by critter.freebsd.dk (8.18.1/8.16.1/Submit) id 55G9Q5mn021498; Mon, 16 Jun 2025 09:26:05 GMT (envelope-from phk) Message-Id: <202506160926.55G9Q5mn021498@critter.freebsd.dk> To: Konstantin Belousov cc: Jamie Landeg-Jones , jgopensource@proton.me, freebsd-hackers@freebsd.org Subject: Re: A modern programming language for FreeBSD: Swift In-reply-to: From: "Poul-Henning Kamp" References: <202506152335.55FNZJjr066895@donotpassgo.dyslexicfish.net> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <21496.1750065965.1@critter.freebsd.dk> Content-Transfer-Encoding: quoted-printable Date: Mon, 16 Jun 2025 09:26:05 +0000 X-Rspamd-Queue-Id: 4bLPks58qGz3Lgv X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:1835, ipnet:130.225.0.0/16, country:EU] -------- Konstantin Belousov writes: > IMO Jamie deserves the gratefulness and encouragement for the work done, > and not the naive sarcasm due to some missed wording. The wording is not a problem. But the Silverbulletism=E2=84=A2 the wording signals is a warning sign that mandatory homework has not been completed. (Not handing in homework is known to cause sarcasm.) As a reminder, the homework is this: A) Does the imagined benefits derive from the proposed language itself or from other software in the ecosystem around the language ? B) Does upstream even want FreeBSD to import/integrate ? C) Can the proposed language's compiler and runtime be sensibly imported and maintained in FreeBSD's source tree and bmake build technology ? D) What /new/ things will the proposed language allow us to do ? E) What is the FreeBSD killer-feature/application of the proposed language= ? F) Quantify the risks. Notes: A: FreeBSD cannot import ecosystems, only compilers and (sensible sized) r= untimes. D: Pointing to rewrites of trivial existing programs will be scored negati= vely. F: Risk =3D probability times consequence. Amongst the risks for the FreeBSD projects are things like "nobody can maintain this", "nobody wants to maintain this", "nobody knows how to maintain this" and "upstream changed their mind in a way which is incompatible with FreeBSD's inclusion", "upstream fizzled out", "upstream split into multiple different directions" etc. -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe = Never attribute to malice what can adequately be explained by incompetence= . From nobody Mon Jun 16 14:50:14 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLXww1MBBz5q4qG for ; Mon, 16 Jun 2025 14:50:24 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLXwt3n2cz3TwX for ; Mon, 16 Jun 2025 14:50:22 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sdaoden.eu header.s=citron header.b=nYDsyGUL; spf=pass (mx1.freebsd.org: domain of steffen@sdaoden.eu designates 217.144.132.164 as permitted sender) smtp.mailfrom=steffen@sdaoden.eu; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sdaoden.eu; s=citron; t=1750085415; x=1750752081; h=date:author:from:to:cc:subject: message-id:in-reply-to:references:openpgp:blahblahblah:mime-version: content-type:content-transfer-encoding:author:from:subject:date:to:cc: resent-author:resent-date:resent-from:resent-sender:resent-to:resent-cc: resent-reply-to:resent-message-id:in-reply-to:references:mime-version: content-type:content-transfer-encoding:content-disposition:content-id: content-description:message-id:mail-followup-to:openpgp:blahblahblah; bh=VRsdjkn8DlSoRPstr9LO133g+doLKCCnjjVSY3gdG+8=; b=nYDsyGULJLXQ0U3NytXI4xmEP1G/yG06WFE/huTrnhZqeqLxv1zTODQh+tNA/ZUb0Oii8bKJ K5ANI/l8trYt0GyZf27mvPC2LNPmQbYma/U+oGiaTKZrrnq/6U0EwQAtMiN8+mvr1suJb0vdoQ bYEw9f/SNobAvOn1RO7tpS0QB2ATmFh69XgB679DhIznd9oEH1R+kPBV6Ck0wvw0BsDCjGp7up Wq0XH2DGbh+zgRVzmMqLbX85ahVyQTW01pF38zKi6NakMmIGS7E1j95CiGSR8eB2hi0JEm4e3Y pIWC4EUlCW6spejHcv+V1nuP9UTIauYeExObrBcQKjKndk/Q== DKIM-Signature: v=1; a=adaed25519-sha256; c=relaxed/relaxed; d=sdaoden.eu; s=orange; t=1750085415; x=1750752081; h=date:author:from:to:cc:subject: message-id:in-reply-to:references:openpgp:blahblahblah:mime-version: content-type:content-transfer-encoding:author:from:subject:date:to:cc: resent-author:resent-date:resent-from:resent-sender:resent-to:resent-cc: resent-reply-to:resent-message-id:in-reply-to:references:mime-version: content-type:content-transfer-encoding:content-disposition:content-id: content-description:message-id:mail-followup-to:openpgp:blahblahblah; bh=VRsdjkn8DlSoRPstr9LO133g+doLKCCnjjVSY3gdG+8=; b=PUCxsDYjwQjDYjx6/fhsnzSnPW4Ky3+2/A14urlNdwcHYjcr50deE5yaZz+rnXIzHAG5juHN PkZTXH0TzrE9AA== Date: Mon, 16 Jun 2025 16:50:14 +0200 Author: Steffen Nurpmeso From: Steffen Nurpmeso To: Vadim Goncharov Cc: Tomek CEDRO , Mark Millard , tomek@edro.info, freebsd-hackers , jgopensource@proton.me Subject: Re: A modern programming language for FreeBSD: Swift Message-ID: <20250616145014.W8KJqG2N@steffen%sdaoden.eu> In-Reply-To: <20250615170036.7e3af21c@nuclight.lan> References: <0B3DA0EC-1FB6-4C4F-B6D6-BB35BF06D49C.ref@yahoo.com> <0B3DA0EC-1FB6-4C4F-B6D6-BB35BF06D49C@yahoo.com> <20250615170036.7e3af21c@nuclight.lan> User-Agent: s-nail v14.9.25-663-g0c41f463ef OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-3.24 / 15.00]; NEURAL_HAM_MEDIUM(-0.99)[-0.995]; NEURAL_HAM_LONG(-0.97)[-0.965]; NEURAL_HAM_SHORT(-0.88)[-0.882]; R_SPF_ALLOW(-0.20)[+a]; R_DKIM_ALLOW(-0.20)[sdaoden.eu:s=citron]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; ASN_FAIL(0.00)[164.132.144.217.asn.rspamd.com:server fail]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[sdaoden.eu]; FREEMAIL_CC(0.00)[cedro.info,yahoo.com,edro.info,freebsd.org,proton.me]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_FIVE(0.00)[6]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; DKIM_TRACE(0.00)[sdaoden.eu:+] X-Rspamd-Queue-Id: 4bLXwt3n2cz3TwX X-Spamd-Bar: --- Vadim Goncharov wrote in <20250615170036.7e3af21c@nuclight.lan>: |On Sun, 15 Jun 2025 15:07:26 +0200 |Tomek CEDRO wrote: | |> On Sun, Jun 15, 2025 at 6:30=E2=80=AFAM Mark Millard wrote: |>> Tomek CEDRO wote on |>> Date: Sun, 15 Jun 2025 01:29:37 UTC : =20 |>>> On Sat, Jun 14, 2025 at 11:26=E2=80=AFPM Tomek CEDRO \ |>>> wrote: =20 |>>>> On Sat, Jun 14, 2025 at 3:07=E2=80=AFPM Jordan Gordeev |>>>> wrote: =20 |>>>>> The FreeBSD project can leap into the future by choosing a modern |>>>>> programming language to replace C, or continue living in the past, |>>>>> hoping that the rest of the world will do the same. (..) =20 |>>>> |>>>> If you want to resurrect a Swift port from the past to the future you |>>>> are welcome: |>>>> |>>>> https://www.freshports.org/lang/swift/ =20 |>>> |>>> Update, I just saw Greg Wallace posted about official Swift 6.2 |>>> support on FreeBSD :-) |>>> |>>> https://developer.apple.com/videos/play/wwdc2025/245/?time=3D1403 |>>> |>>> Swift 6.2 now officially supports FreeBSD and WebAssembly (Wasm), |>>> enabling you to build client and server applications for browsers and |>>> other runtimes. The Wasm support, which started as a community |>>> project, allows you to compile Swift code and run it in the browser, |>>> as demonstrated by a 3D rendering app using WebGPU and JavaScriptKit. |>>> Swift's safety, ease of use, and performance make it an attractive |>>> choice throughout the software stack. |>>> |>>> So Swift is back again on FreeBSD :-) And its matter of choice not |>>> replacement :-) =20 |>> |>> [Do not take this as suggesting involvement in replacing C.] =20 |>=20 |> Thanks Mark, looks like this was a troll post, but needs a response |>:-) I have zero interest in Swift myself. just got allergic to this |> kind of preaching "you should replace C with XYZ because |> whatever_reason". This is marxism ("you must destroy to build"), | |This shit has nothing to do with marxism. At best, this is infantilism... It in fact sounded like the famous Vietnam war quote on Ben Tre[1] "It became necessary to destroy the town to save it." Keep on rockin' in a free world. [1] https://en.wikipedia.org/wiki/Battle_of_B%E1%BA%BFn_Tre |> brings only destruction to whatever still works, wrecks years of hard |> work, brings no working alternative/fallback (look at Xorg too), and |> should be dispraised right from start. If anyone wants XYZ based OS go |> ahead make one, just leave working stuff alone, people should have a |> choice :-) | |...and at worst, this is deliberate "Embrace, Extend, Extinguish" damage \ |for |commercial interests (vendor-locking/monopoly), like the Red Hat did with |systemd and now doing with Wayland/Xorg. | |--=20 |WBR, @nuclight | --End of <20250615170036.7e3af21c@nuclight.lan> --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) From nobody Mon Jun 16 17:20:00 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLcFq2GdJz5y8y1 for ; Mon, 16 Jun 2025 17:20:15 +0000 (UTC) (envelope-from slowdive@me.com) Received: from outbound.qs.icloud.com (p-east3-cluster3-host1-snip4-8.eps.apple.com [57.103.86.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLcFq1S4nz3W2j for ; Mon, 16 Jun 2025 17:20:15 +0000 (UTC) (envelope-from slowdive@me.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; bh=tiI2k2zuivkNpya3Q3005Pkn+RkyihNWS9wi1y9WX7Y=; h=Content-Type:From:Mime-Version:Subject:Date:Message-Id:To:x-icloud-hme; b=rjgM0OnMVjh5bJHAQEE5JdYGiMIpsyQCYRjzVXfpY0pjsmLirj2x8BODSMoBBlV9j arr338SvffpgpYVgv1S13n9D0ElxOadsczmw8d/h0UIc4WtW8eDbq25d5jWbwTRGxR KGOmox8jagS6ivL512V4So7udGCMyNaT7df2uuCJK2hFwSxB3HfLefx9YUSBRlmc6/ CtPstzReGolDpsXRAJjiGKJ3Jj4tL0RBYZt1RQqvRAxcvl8QwRHC5ZmNlTKczKPG3t Kk+Mv58o6F4vcp7C+ZJWvqshTO3MoM+hJ9xtvP+u4FBr6xZSe+I6kJbfYuRPThMtzf tLh96SsK05i5Q== Received: from outbound.qs.icloud.com (unknown [127.0.0.2]) by outbound.qs.icloud.com (Postfix) with ESMTPS id 484FB180012E; Mon, 16 Jun 2025 17:20:12 +0000 (UTC) Received: from smtpclient.apple (qs-asmtp-me-k8s.p00.prod.me.com [17.57.155.37]) by outbound.qs.icloud.com (Postfix) with ESMTPSA id A0C5F1800148; Mon, 16 Jun 2025 17:20:11 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Kirill Orlov List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 (1.0) Subject: Re: A modern programming language for FreeBSD: Swift Date: Mon, 16 Jun 2025 13:20:00 -0400 Message-Id: References: Cc: Jamie Landeg-Jones , jgopensource@proton.me, freebsd-hackers@freebsd.org In-Reply-To: To: Konstantin Belousov X-Mailer: iPhone Mail (20H360) X-Proofpoint-GUID: QRKmE50-ukVVpbkWTzMwjdTu1UqEzmYI X-Proofpoint-ORIG-GUID: QRKmE50-ukVVpbkWTzMwjdTu1UqEzmYI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-16_08,2025-06-13_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxscore=0 clxscore=1011 adultscore=0 bulkscore=0 mlxlogscore=805 phishscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.22.0-2503310001 definitions=main-2506160116 X-Rspamd-Queue-Id: 4bLcFq1S4nz3W2j X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN_FAIL(0.00)[11.86.103.57.asn.rspamd.com:server fail] Sounds like its better to wait for Zig reaching its stable release rather th= an exploring options from a heavily greed-driven =E2=80=9Corganization=E2=80= =9D. Regards, -K. > On Jun 16, 2025, at 04:42, Konstantin Belousov wrote= : >=20 > =EF=BB=BFOn Mon, Jun 16, 2025 at 12:35:19AM +0100, Jamie Landeg-Jones wrot= e: >> Jordan Gordeev wrote: >>=20 >>> The FreeBSD project can leap into the future by choosing a modern progra= mming language to replace C, or continue living in the past, hoping that the= rest of the world will do the same. >>=20 >> Not a good start to a "sales" pitch. >=20 > Perhaphs. >=20 > But I expected somewhat more mature inception of the contribution. The > introduction for it is not great, but the work done could be. Having the > swift ported is huge amount of work, and I see it as useful. We need it > to have the system to be a good platform for all modern languages. >=20 > IMO Jamie deserves the gratefulness and encouragement for the work done, > and not the naive sarcasm due to some missed wording. >=20 From nobody Mon Jun 16 17:32:23 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLcX64czLz5y9sN for ; Mon, 16 Jun 2025 17:32:38 +0000 (UTC) (envelope-from kib@freebsd.org) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLcX56pYqz3c49 for ; Mon, 16 Jun 2025 17:32:37 +0000 (UTC) (envelope-from kib@freebsd.org) Authentication-Results: mx1.freebsd.org; none Received: from tom.home (kib@localhost [127.0.0.1] (may be forged)) by kib.kiev.ua (8.18.1/8.18.1) with ESMTP id 55GHWNgk024992; Mon, 16 Jun 2025 20:32:26 +0300 (EEST) (envelope-from kib@freebsd.org) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 55GHWNgk024992 Received: (from kostik@localhost) by tom.home (8.18.1/8.18.1/Submit) id 55GHWN3s024991; Mon, 16 Jun 2025 20:32:23 +0300 (EEST) (envelope-from kib@freebsd.org) X-Authentication-Warning: tom.home: kostik set sender to kib@freebsd.org using -f Date: Mon, 16 Jun 2025 20:32:23 +0300 From: Konstantin Belousov To: Kirill Orlov Cc: Jamie Landeg-Jones , jgopensource@proton.me, freebsd-hackers@freebsd.org Subject: Re: A modern programming language for FreeBSD: Swift Message-ID: References: List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on tom.home X-Rspamd-Queue-Id: 4bLcX56pYqz3c49 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN_FAIL(0.00)[1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.0.7.e.5.d.0.7.4.0.1.0.0.2.asn6.rspamd.com:server fail] On Mon, Jun 16, 2025 at 01:20:00PM -0400, Kirill Orlov wrote: > Sounds like its better to wait for Zig reaching its stable release rather than exploring options from a heavily greed-driven “organization”. > The option there is to have swift in ports, vs. not having it at all. And I very much love to see all impactful languages to be available on FreeBSD. Swift in the base system have exactly the same chances as zig, indeed. > Regards, > -K. > > > On Jun 16, 2025, at 04:42, Konstantin Belousov wrote: > > > > On Mon, Jun 16, 2025 at 12:35:19AM +0100, Jamie Landeg-Jones wrote: > >> Jordan Gordeev wrote: > >> > >>> The FreeBSD project can leap into the future by choosing a modern programming language to replace C, or continue living in the past, hoping that the rest of the world will do the same. > >> > >> Not a good start to a "sales" pitch. > > > > Perhaphs. > > > > But I expected somewhat more mature inception of the contribution. The > > introduction for it is not great, but the work done could be. Having the > > swift ported is huge amount of work, and I see it as useful. We need it > > to have the system to be a good platform for all modern languages. > > > > IMO Jamie deserves the gratefulness and encouragement for the work done, > > and not the naive sarcasm due to some missed wording. > > From nobody Mon Jun 16 22:04:37 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLkZJ1Db3z5yTM8 for ; Mon, 16 Jun 2025 22:04:56 +0000 (UTC) (envelope-from jordan.hubbard@gmail.com) Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLkZH1LDYz3dMV for ; Mon, 16 Jun 2025 22:04:55 +0000 (UTC) (envelope-from jordan.hubbard@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=ftASvoY6; spf=pass (mx1.freebsd.org: domain of jordan.hubbard@gmail.com designates 2607:f8b0:4864:20::1036 as permitted sender) smtp.mailfrom=jordan.hubbard@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-313a001d781so4572782a91.3 for ; Mon, 16 Jun 2025 15:04:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750111489; x=1750716289; darn=freebsd.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=0Ckmr77tiseaotUk7zW8X/gla5XwIRY/67XJlwzagiA=; b=ftASvoY6ZhT2D7yRdXbpNKuhh8qIiaq02EvONbYfCw/CMn1KoabfaQfYtabqQVr6kv FPIVu+a/mCk1iITeE+xKy6oKv98apNVJCPfapkUD6IMZgWxl9WM0+eCdhdFaS5J6ps5y oOqv5MoSRtXEOBrLhMn6mz9uKQkBvAqb/Y5xDWoAo0tJYN4T6RGAD5bFg0CDv2G2F9ft FN7FRLJm+fNyUgAfJZOvEtAv2KmgkQXZhZaYXvVI5n5KKCZlpcWyx5mb5TD4tQ//z325 f1NY0bz8kLTlBtgs8mAjRiUMi+0H5ZBqcHwBcuJrdgTxRwhmtMhXWIrsYRRcS0whyLEg 57GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750111489; x=1750716289; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0Ckmr77tiseaotUk7zW8X/gla5XwIRY/67XJlwzagiA=; b=bkAiao1Rz/dH06EuCYF0kEbsYCIVQHY/0VUJ9bD6P2gkjdMKHy1hw2OJ8e8ibq9FAp jBoEScYRJbQ0Ftr5z6S+gptKU3azNZkAXKVIHXIpzP56tIONH/3s3bXpMbVnMABd/MsX GQkzaS3VLTOQFgHxeE3F4QmePoJVA9e/xGhAXucyjvqYSJe2FrlbSELU+1pMrzYbQZVv TO2JZMbmyRetO8xAti0vnK2HjMYd3WbmGBOOVUdQrtuEXufDHABX3xvNLqS5eovXqWRd 6WlKXoKL2hOQ8vay6EEHdnA2Js8fENbGVv+sZy/ZgpOAItpwu/VR7D9ytj7cK9Nd4igE 3etQ== X-Gm-Message-State: AOJu0YzXFQcICY5hJOsJ/km9g/DHavZGxjQBIkLTtklkDE+d0EzaIA8b rhMH3ib/eY43ylo4Ku7OoXAs7oY8d7GlO058sloUCapZGt31M+IDb/Pitq/gkQ== X-Gm-Gg: ASbGncvgrD8AstP4RGuoWhgD6fhWOMWFD6x/aEmDEsL8+Vxvzb/C1VTEqS26wXvJtCV b49mk2vbZ4KuUf4BCZzDCBQNOdNV7aDg6OiEOHVmGYK0b4ZGrb2wmCxvxvesYMLNIM70Uc2PAtQ FIK1/oBfeJcYLxk7tgDn2h1J6QdEbFT4+7mjcF/ghhiskoJhj7AIvNZhFwH74nZxagEf3iS3Ej9 2yN/WU926hAmS0rkSmaKG/7Rq7i7V+CYgQaal02Nr+9KCFgEtCTHcD3iMsT/Pwft8mE+ez3IIbp HYCs40erwjXQmoXwcwrzrGoad2xjf0WJDKw3ghRZXbugUBM/SybVxhrU+U2M/NS2gPmPDpx5CAz 30QDqjbYgeeY= X-Google-Smtp-Source: AGHT+IFkJ0IOmhSLTz7jxo4yyKaxJ4tAoL19pi2zoK02EjR9VAAOqcfn8E/+f+qCQk+ICcecnUI4lQ== X-Received: by 2002:a17:90b:3148:b0:313:31ca:a69 with SMTP id 98e67ed59e1d1-313f1daa79emr20120023a91.18.1750111488695; Mon, 16 Jun 2025 15:04:48 -0700 (PDT) Received: from smtpclient.apple ([216.228.127.129]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-313c1b59ed4sm9200607a91.39.2025.06.16.15.04.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jun 2025 15:04:48 -0700 (PDT) From: Jordan Hubbard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3853.100.6.1.1\)) Subject: [Thought experiment] Bringing swift into an experimental branch? Message-Id: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> Date: Mon, 16 Jun 2025 15:04:37 -0700 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.3853.100.6.1.1) X-Spamd-Result: default: False [0.78 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_SPAM_LONG(0.99)[0.991]; NEURAL_HAM_SHORT(-0.99)[-0.990]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MV_CASE(0.50)[]; NEURAL_SPAM_MEDIUM(0.28)[0.278]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1036:from]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4bLkZH1LDYz3dMV X-Spamd-Bar: / I know that the topic of =E2=80=9Cbringing additional languages=E2=80=9D = into OSes is controversial and, frankly, we made a bad call with macOS = when we brought the kitchen sink in (everything from Tcl to Python) and = regretted it afterwards, so this is just a thought experiment, as noted = in the subject. All that said, I think a more modern language than C++ being readily = available has a useful way of shifting development and generating some = excitement, and a modern language that is also strongly supported by = your existing clang / LLVM compiler toolchain represents an increment = along the same evolutionary path. It=E2=80=99s also a language that = needs a number of components to be tightly in sync (libdispatch, clang, = llvm, various compilation tools and libraries, etc) before any 3rd party = developer can even compile it for FreeBSD, so saying =E2=80=9Cit=E2=80=99s= a ports collection problem=E2=80=9D may ultimately work, but not = without considerable pain, as evidenced by the fact that = ports/lang/swift does not exist. Why swift, if anything? Python changes too often in incompatible ways and Rust is still going = through its Rust foundation stewardship changes (that didn=E2=80=99t = form until 2021) plus if you bring Rust in, you=E2=80=99ll be = immediately enmeshed in the =E2=80=9Cshould we just rewrite the kernel = in rust?!=E2=80=9D topics that seem to plague Linux. Swift, on the = other hand, is an application and service development language and sits = nicely on top of what FreeBSD already has - nobody=E2=80=99s going to = push to rewrite the kernel or base utilities in Swift, but you do get = access to a very active community and, of course, the backing of a major = player like Apple and the open source swift ecosystem. I=E2=80=99m told that Swift also just announced support for FreeBSD, so = if there is ever a time, this might be it? - Jordan From nobody Mon Jun 16 22:09:06 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLkgP075Cz5yTS8 for ; Mon, 16 Jun 2025 22:09:21 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLkgN2Jcmz3j6s for ; Mon, 16 Jun 2025 22:09:20 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20230601.gappssmtp.com header.s=20230601 header.b=hosWcSz9; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::62c) smtp.mailfrom=wlosh@bsdimp.com; dmarc=none Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-2349f096605so66252875ad.3 for ; Mon, 16 Jun 2025 15:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1750111757; x=1750716557; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PMZ9C8b1Cn05Kd+iR7jAM7oUzySU7QnqMhEx2LDJXkM=; b=hosWcSz9NGSGCw2KWKSilhL9oOWZ2fKdo7YlepTNIQnaRiwJvAOrmq9zW/Qbu6HC8X s7UFmGfJQSWngXHO8dCF58oJWNipqBWesNyjUkkjGzTrYFRTkQA5+d40vYjIJ1/8On6z 6ODnpSyR5C5uG7+ZaxH76BogQ+ROzSv5EUzU5+LND+cwkNUmWY1P3+jTvHE/xbG53sYx QnQQZ4CodryHHgDt4BRVPIs75YMHWF8BQ7a9bq++lhJIaUR/lXArnw8ELPcc1IVmUH7d OCV9M39Sykoj5KQLfBSjqLh+EYQDjs6d+FwYC6mnzoaUisEaeY6M7Yhhh//VVPDvdi7j QNHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750111757; x=1750716557; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PMZ9C8b1Cn05Kd+iR7jAM7oUzySU7QnqMhEx2LDJXkM=; b=fd6fp2G6Bqtwn/8FjTont2IdSibcb5s5JzOU4EjzLNWajFYUbHCQ6ZzkUe8szwHwnY /u/XFrno/kMpYJ0kRClxzuycxaW3TMNIFs0d+q7c88TdwepMNE47kVp9VRCFpL2pO7fm 7B6bMMPsq36zSqYq5yV48Es5oKdQzQFnagsbC+QzB9nxKaYTeByxV1CY/9xj5Ujs+DMc 66lTNkWDm526iiCNbB53cCAk0Wgm8ome0kn6w6hID9qrbaGV6CunSmYtLHqqs4Hzg6In 1BGGVpjP/xqiuFkhzGbdEWsYnujF8fE0e3nK2OuMQaBWBsByAg3cUpLOLZbXRsHjUowZ Ayrg== X-Gm-Message-State: AOJu0YwpYOQl1vrnGoOSN13ah6CCKS2Sh3SJ2ZGUB0KLlyHwGrzsn2YF 2dgjuWqcmOS0TCZyzhjt/rjTLg94Zj2OzHlDqXiTXsLuigcmJj9HWKQH18qFpidi+7BQe5kCVD8 vcpyDdFue1aqtxDfk+b0t1xrDxUcCAOz3hw+zE626Og== X-Gm-Gg: ASbGncstZrSgxLWBdo5rdfGjZ/8s/YMBmnjcYjcxBM9a9fUOzmWzJA95O1XjajmgdfS Clx7ASFCGrSzlRHVcp+DtKqEYGd2CUqpcGnJSa4rqbmuOXwtjYpabM9STakosUUX0t3o0YTkNi9 m1DepxZn7Ro9F0+z4p2xmueZZ2SUFCwrrUjPGnh/ayhls= X-Google-Smtp-Source: AGHT+IH6I8y+9v5CDuz2QCzwxtop9nOYly6m7Ro/AnEbkFCFPSL5soGm28YWsiOqE/rX7aAjwVL5CFAHqWz/zLZYJYo= X-Received: by 2002:a17:90b:53ce:b0:313:23ed:6ff with SMTP id 98e67ed59e1d1-313f1ca7758mr14786458a91.1.1750111757625; Mon, 16 Jun 2025 15:09:17 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> In-Reply-To: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> From: Warner Losh Date: Mon, 16 Jun 2025 16:09:06 -0600 X-Gm-Features: AX0GCFvSWIvyUrC6aYYErF7qtVi6N5XRUKhDBbSjJbVq2x50pb-k8m5RUlxTfgU Message-ID: Subject: Re: [Thought experiment] Bringing swift into an experimental branch? To: Jordan Hubbard Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-1.18 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; NEURAL_HAM_SHORT(-0.99)[-0.991]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20230601.gappssmtp.com:s=20230601]; NEURAL_HAM_LONG(-0.19)[-0.195]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bsdimp.com]; RCVD_TLS_LAST(0.00)[]; R_SPF_NA(0.00)[no SPF record]; FREEMAIL_TO(0.00)[gmail.com]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20230601.gappssmtp.com:+]; RCVD_COUNT_ONE(0.00)[1]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TAGGED_RCPT(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::62c:from] X-Rspamd-Queue-Id: 4bLkgN2Jcmz3j6s X-Spamd-Bar: - On Mon, Jun 16, 2025 at 4:05=E2=80=AFPM Jordan Hubbard wrote: > > I know that the topic of =E2=80=9Cbringing additional languages=E2=80=9D = into OSes is controversial and, frankly, we made a bad call with macOS when= we brought the kitchen sink in (everything from Tcl to Python) and regrett= ed it afterwards, so this is just a thought experiment, as noted in the sub= ject. > > All that said, I think a more modern language than C++ being readily avai= lable has a useful way of shifting development and generating some exciteme= nt, and a modern language that is also strongly supported by your existing = clang / LLVM compiler toolchain represents an increment along the same evol= utionary path. It=E2=80=99s also a language that needs a number of compone= nts to be tightly in sync (libdispatch, clang, llvm, various compilation to= ols and libraries, etc) before any 3rd party developer can even compile it = for FreeBSD, so saying =E2=80=9Cit=E2=80=99s a ports collection problem=E2= =80=9D may ultimately work, but not without considerable pain, as evidenced= by the fact that ports/lang/swift does not exist. > > Why swift, if anything? > > Python changes too often in incompatible ways and Rust is still going thr= ough its Rust foundation stewardship changes (that didn=E2=80=99t form unti= l 2021) plus if you bring Rust in, you=E2=80=99ll be immediately enmeshed i= n the =E2=80=9Cshould we just rewrite the kernel in rust?!=E2=80=9D topics = that seem to plague Linux. Swift, on the other hand, is an application an= d service development language and sits nicely on top of what FreeBSD alrea= dy has - nobody=E2=80=99s going to push to rewrite the kernel or base utili= ties in Swift, but you do get access to a very active community and, of cou= rse, the backing of a major player like Apple and the open source swift eco= system. > > I=E2=80=99m told that Swift also just announced support for FreeBSD, so i= f there is ever a time, this might be it? There's a rust utilities in the base branch for Rust right now, hosted outside of the project... I'm sure something similar could happen with swift for interested parties to collaborate. Warner From nobody Mon Jun 16 22:27:04 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLl471XFCz5yVJr for ; Mon, 16 Jun 2025 22:27:19 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLl463kYdz3xPl for ; Mon, 16 Jun 2025 22:27:18 +0000 (UTC) (envelope-from asomers@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-606ddbda275so9943058a12.1 for ; Mon, 16 Jun 2025 15:27:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750112837; x=1750717637; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=T+yC2tDj9l52xW/BDRTCZNghZ4B0XBoHaEw1bemB5RY=; b=F/HhOPzZbasFE00ySdwxZY+OumQZEnQZYdxPMtlze/qhtHu/zrrOpbFy/izezb8dim KYPY162uk+qrhLQwem4n9zqxT1f1A7RfqVXL3RaGr9pXhJg8OevLnhpjrIvNiIk6JCKi ikQ7knpdxjUNSedJ2f4kH+ZzILfrtapbd3bdQaob45dNa2GOE4+7Beva7MGCYvovk62t bYdjsU6idXHO+O3/92lmIWQy3u1nGapT+pv6OWFkZltbWFj6Uw3IEPUUF7vXgN7tp35i 7VIbbGt452VxrOnC75s4RFU6pR0HlEtdIBi04vEfgN4ObyTfEDKuQcg2ArvyVcj8nsY+ ALDw== X-Forwarded-Encrypted: i=1; AJvYcCWscoNrBniSb68WeUEhW08cvUEJIN9cU12cUzPweVnqHVI6Em/5pEbav+ArJx8LLvvDU2BS43nuQeYsnnegvVQ=@freebsd.org X-Gm-Message-State: AOJu0Yw3yUiw4LpkyPt5skjGhGGOUTbMAeG4BkZlyqX1/zdVFoFBLw7p 0yGFPb3A+lzM4lqR3MLcYKfIH8uOwAg3rQQp/5M/LPLStRivdzByz82Uy79Fu3Mo7L6yPyIT9xa y/93trIAmIVFNtmM4twKp25+b200xErw= X-Gm-Gg: ASbGnctcDEt8psfpnvNqj9qMKe5IIFypOi7/4n/BWqycHr0pdZYdKrHeOegXzutB32p vfuRkUaK5IpMXHWVx36T1vjFRXbnXgqNeonqfks/3RIoaaiAoryZjuaUDkoayHk7KeIpbCkXNQ0 4IOMDzB3P0+kS3H8hkM/6JrkBMUGxzHeT4A+2+pQ840as= X-Google-Smtp-Source: AGHT+IGd0+sBfd883GAKe6w1eMXtSgkIUENKb3T6MxsI+rdm4hCqFN33E/mOZXK5wJBusHUqx9BhnmjnZ3inHDI+m1I= X-Received: by 2002:a17:907:72c2:b0:ade:4339:9367 with SMTP id a640c23a62f3a-adfad34accdmr1048118466b.26.1750112836635; Mon, 16 Jun 2025 15:27:16 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> In-Reply-To: From: Alan Somers Date: Mon, 16 Jun 2025 16:27:04 -0600 X-Gm-Features: AX0GCFtRRt5vVddIJz9SCgWGCvITPlxdM8rMUdaXQPPtFA8LCA7firETsqAyjbw Message-ID: Subject: Re: [Thought experiment] Bringing swift into an experimental branch? To: Warner Losh Cc: Jordan Hubbard , freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="000000000000f1d2cd0637b7e55f" X-Rspamd-Queue-Id: 4bLl463kYdz3xPl X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] --000000000000f1d2cd0637b7e55f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 16, 2025 at 4:09=E2=80=AFPM Warner Losh wrote: > On Mon, Jun 16, 2025 at 4:05=E2=80=AFPM Jordan Hubbard > wrote: > > > > I know that the topic of =E2=80=9Cbringing additional languages=E2=80= =9D into OSes is > controversial and, frankly, we made a bad call with macOS when we brought > the kitchen sink in (everything from Tcl to Python) and regretted it > afterwards, so this is just a thought experiment, as noted in the subject= . > > > > All that said, I think a more modern language than C++ being readily > available has a useful way of shifting development and generating some > excitement, and a modern language that is also strongly supported by your > existing clang / LLVM compiler toolchain represents an increment along th= e > same evolutionary path. It=E2=80=99s also a language that needs a number= of > components to be tightly in sync (libdispatch, clang, llvm, various > compilation tools and libraries, etc) before any 3rd party developer can > even compile it for FreeBSD, so saying =E2=80=9Cit=E2=80=99s a ports coll= ection problem=E2=80=9D > may ultimately work, but not without considerable pain, as evidenced by t= he > fact that ports/lang/swift does not exist. > > > > Why swift, if anything? > > > > Python changes too often in incompatible ways and Rust is still going > through its Rust foundation stewardship changes (that didn=E2=80=99t form= until > 2021) plus if you bring Rust in, you=E2=80=99ll be immediately enmeshed i= n the > =E2=80=9Cshould we just rewrite the kernel in rust?!=E2=80=9D topics that= seem to plague > Linux. Swift, on the other hand, is an application and service > development language and sits nicely on top of what FreeBSD already has - > nobody=E2=80=99s going to push to rewrite the kernel or base utilities in= Swift, > but you do get access to a very active community and, of course, the > backing of a major player like Apple and the open source swift ecosystem. > > > > I=E2=80=99m told that Swift also just announced support for FreeBSD, so= if there > is ever a time, this might be it? > > There's a rust utilities in the base branch for Rust right now, hosted > outside of the project... I'm sure something similar could happen > with swift for interested parties to collaborate. > Note that said branch does not import the Rust toolchain itself. It relies on an external toolchain. That made it quite easy to add all of the Rust support to the Makefiles. And there's no cost at all, in either runtime, buildtime, or maintenance burden, to people who aren't using the Rust stuff. The same would be true of Swift, I assume. But I think that it's highly premature to consider such a thing before Swift even lands in ports. As for whether Swift is appropriate for writing base system utilities, I don't know enough about it to confidently say. After Swift stabilizes in ports, and after somebody creates a swift-in-base branch, then we can have a real holy war ;) --000000000000f1d2cd0637b7e55f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Jun 16, 2025 at 4:09=E2=80=AFPM Warne= r Losh <imp@bsdimp.com> wrote:<= br>
On Mon, Jun 16, = 2025 at 4:05=E2=80=AFPM Jordan Hubbard <jordan.hubbard@gmail.com> wrote:
>
> I know that the topic of =E2=80=9Cbringing additional languages=E2=80= =9D into OSes is controversial and, frankly, we made a bad call with macOS = when we brought the kitchen sink in (everything from Tcl to Python) and reg= retted it afterwards, so this is just a thought experiment, as noted in the= subject.
>
> All that said, I think a more modern language than C++ being readily a= vailable has a useful way of shifting development and generating some excit= ement, and a modern language that is also strongly supported by your existi= ng clang / LLVM compiler toolchain represents an increment along the same e= volutionary path.=C2=A0 It=E2=80=99s also a language that needs a number of= components to be tightly in sync (libdispatch, clang, llvm, various compil= ation tools and libraries, etc) before any 3rd party developer can even com= pile it for FreeBSD, so saying =E2=80=9Cit=E2=80=99s a ports collection pro= blem=E2=80=9D may ultimately work, but not without considerable pain, as ev= idenced by the fact that ports/lang/swift does not exist.
>
> Why swift, if anything?
>
> Python changes too often in incompatible ways and Rust is still going = through its Rust foundation stewardship changes (that didn=E2=80=99t form u= ntil 2021) plus if you bring Rust in, you=E2=80=99ll be immediately enmeshe= d in the =E2=80=9Cshould we just rewrite the kernel in rust?!=E2=80=9D topi= cs that seem to plague Linux.=C2=A0 =C2=A0Swift, on the other hand, is an a= pplication and service development language and sits nicely on top of what = FreeBSD already has - nobody=E2=80=99s going to push to rewrite the kernel = or base utilities in Swift, but you do get access to a very active communit= y and, of course, the backing of a major player like Apple and the open sou= rce swift ecosystem.
>
> I=E2=80=99m told that Swift also just announced support for FreeBSD, s= o if there is ever a time, this might be it?

There's a rust utilities in the base branch for Rust right now, hosted<= br> outside of the project...=C2=A0 I'm sure something similar could happen=
with swift for interested parties to collaborate.

Note that said branch does not import = the Rust toolchain itself.=C2=A0 It relies on an external toolchain.=C2=A0 = That made it quite easy to add all of the Rust support to the Makefiles.=C2= =A0 And there's no cost at all, in either runtime, buildtime, or mainte= nance burden, to people who aren't using the Rust stuff.=C2=A0 The same= would be true of Swift, I assume.=C2=A0 But I think that it's highly p= remature to consider such a thing before Swift even lands in ports.

As for whether Swift is appropriate for writing base syst= em utilities, I don't know enough about it to confidently say.=C2=A0 Af= ter Swift stabilizes in ports, and after somebody creates a swift-in-base b= ranch, then we can have a real holy war ;)
--000000000000f1d2cd0637b7e55f-- From nobody Mon Jun 16 22:37:43 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLlJN0gJFz5yW2t for ; Mon, 16 Jun 2025 22:37:56 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLlJL6Wjmz45vW for ; Mon, 16 Jun 2025 22:37:54 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=jlwmZ2sa; spf=pass (mx1.freebsd.org: domain of rozhuk.im@gmail.com designates 2a00:1450:4864:20::532 as permitted sender) smtp.mailfrom=rozhuk.im@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-60700a745e5so11406577a12.3 for ; Mon, 16 Jun 2025 15:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750113468; x=1750718268; darn=freebsd.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:date:from:from:to:cc:subject:date :message-id:reply-to; bh=RQM63ERoHYFipQ9zo0QW4sdvz1zZ8e5XTCjpdHeAZzQ=; b=jlwmZ2saPzlrWxTdQpbAxH8XKCcWXlbd/e6bx1Te4/EDbVDC6K19xv2AG3I0cvnC0G MSl1WR1iqA3cpECLEsJUZXK2fUKbV3O46IYzq25++IcPGhK1EcCN7HIfZgi8IN6uhU53 jRb8FZ3XS/iiKQKiDEqlAiZ8AisSEc3+AKI/2ahaFGsE+mmQLHAQ3rNoZkaXUEGmZZ0F 8fG8ePtEL+ypvlNMq5CPA9JjeYcQvW3XilXTamPNXmerTOuyBhAIbi2Lce95aYi63Ps0 uzFnbbgp/+PhNrIuwcPIIUlJFp7jcUtWh9ZlA2/aUwaDSGr0/xgP5CIvX0Px2o9PGlC9 ArNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750113468; x=1750718268; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RQM63ERoHYFipQ9zo0QW4sdvz1zZ8e5XTCjpdHeAZzQ=; b=DvZI18nq116sK92uFpWltA+gIMoBa2KSk0SaLpr3EyKClFci4wEWrnsifRQxSFfGhL zK9J8WebpXCRE7vGQXVP00AE4Od/UX/JttauflY+2M4sq5pnMBC5NIHzoBLogZY/4326 KiT7u6E97qZf0zSDi7b2Prf/HiEqqvE+qZhbt+5NxpOmOZF7Yvad9aQetbUNDT7fsBWL ylsIyTkyzBT6pgaSWOkBd4fjcO43YZq6QpV0v+/06tYDGLWSV0DIsmYlTgFmq1qye9sS tdVcXHIBVqpAy++Q1VciR5ZfFdNO1dfgmOECTmaJocI6HJh7/41Er2/7lZEnQmHAB+eP WVsw== X-Gm-Message-State: AOJu0Yzu2pxmmAE8lRT+FthGXMxeM7508UB1twuv5znsxWjtsFM/Tvgw gQoGZHt8IfQ8eqVHlIoo11b6McQZppUIbc8H8tYMY1Slpj9RYOZ6ulpC X-Gm-Gg: ASbGncsi9ixC8vzH/fVh1nOb6yTqtBiQt8rBB7mmTc0kwqcNJxB5UIlk1CT4UA9TzIN zphtW78qWVPA9dfUQQO1TQAX7jxaLJrCG+71HyoVfEjdQRn+o/pRLAwFAA0uu+6N1QpjHsGdERg +7ybkqZO1TGvAU9FnI+y2lBzwhLYLkuqqIwYZKgYdMHFyNz9VwrMf0fe65NMG4xBDc4PsMljgtB OcXmG/tw2YG9mJ4IKeeF88Mw/OAsLsHnhT1GoEFRnerlNAsDLQ9GLycHjRojd3Nhv4mUau3blrv t5gI+JfYuS092X6mdtWHtUNZepfBBQ6H50WZEuOqvYqwD7qI9I2MxPpMx4tvlxA= X-Google-Smtp-Source: AGHT+IEPgWtrwUlqxbTG9/B80RB9vRQxNH60xFvOQS2LVWjJ1+YM+mflUBtrIXAGapQnTbomIaz5RA== X-Received: by 2002:a05:6402:3581:b0:606:bd9d:a772 with SMTP id 4fb4d7f45d1cf-608d0979683mr9558030a12.24.1750113468045; Mon, 16 Jun 2025 15:37:48 -0700 (PDT) Received: from rimwks.local ([2001:470:1f1b:4dc:8d3c:edb:a074:fd6]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-608b4a5b6b6sm6705867a12.38.2025.06.16.15.37.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jun 2025 15:37:46 -0700 (PDT) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Tue, 17 Jun 2025 01:37:43 +0300 To: Jordan Hubbard Cc: freebsd-hackers@freebsd.org Subject: Re: [Thought experiment] Bringing swift into an experimental branch? Message-ID: <20250617013743.3b5108f0@rimwks.local> In-Reply-To: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> References: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.49; amd64-portbld-freebsd14.3) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Spamd-Result: default: False [1.17 / 15.00]; NEURAL_SPAM_LONG(1.00)[1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_HAM_SHORT(-0.93)[-0.929]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_BASE64_TEXT(0.10)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; TAGGED_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::532:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; TAGGED_RCPT(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4bLlJL6Wjmz45vW X-Spamd-Bar: + T24gTW9uLCAxNiBKdW4gMjAyNSAxNTowNDozNyAtMDcwMA0KSm9yZGFuIEh1YmJhcmQgPGpvcmRh bi5odWJiYXJkQGdtYWlsLmNvbT4gd3JvdGU6DQoNCj4gQWxsIHRoYXQgc2FpZCwgSSB0aGluayBh IG1vcmUgbW9kZXJuIGxhbmd1YWdlIHRoYW4gQysrIGJlaW5nIHJlYWRpbHkNCj4gYXZhaWxhYmxl IGhhcyBhIHVzZWZ1bCB3YXkgb2Ygc2hpZnRpbmcgZGV2ZWxvcG1lbnQgYW5kIGdlbmVyYXRpbmcN Cj4gc29tZSBleGNpdGVtZW50LCBhbmQgYSBtb2Rlcm4gbGFuZ3VhZ2UgdGhhdCBpcyBhbHNvIHN0 cm9uZ2x5DQo+IHN1cHBvcnRlZCBieSB5b3VyIGV4aXN0aW5nIGNsYW5nIC8gTExWTSBjb21waWxl ciB0b29sY2hhaW4gcmVwcmVzZW50cw0KPiBhbiBpbmNyZW1lbnQgYWxvbmcgdGhlIHNhbWUgZXZv bHV0aW9uYXJ5IHBhdGguICBJdOKAmXMgYWxzbyBhIGxhbmd1YWdlDQo+IHRoYXQgbmVlZHMgYSBu dW1iZXIgb2YgY29tcG9uZW50cyB0byBiZSB0aWdodGx5IGluIHN5bmMgKGxpYmRpc3BhdGNoLA0K PiBjbGFuZywgbGx2bSwgdmFyaW91cyBjb21waWxhdGlvbiB0b29scyBhbmQgbGlicmFyaWVzLCBl dGMpIGJlZm9yZSBhbnkNCj4gM3JkIHBhcnR5IGRldmVsb3BlciBjYW4gZXZlbiBjb21waWxlIGl0 IGZvciBGcmVlQlNELCBzbyBzYXlpbmcg4oCcaXTigJlzDQo+IGEgcG9ydHMgY29sbGVjdGlvbiBw cm9ibGVt4oCdIG1heSB1bHRpbWF0ZWx5IHdvcmssIGJ1dCBub3Qgd2l0aG91dA0KPiBjb25zaWRl cmFibGUgcGFpbiwgYXMgZXZpZGVuY2VkIGJ5IHRoZSBmYWN0IHRoYXQgcG9ydHMvbGFuZy9zd2lm dA0KPiBkb2VzIG5vdCBleGlzdC4NCj4gDQoNCg0KTm8gbW9kZXJuIGxhbmd1YWdlIHJlcXVpcmVk LCBldmVuIEMrKyBpcyB0byBjb21wbGV4IHRvIGxlYXJuIGl0Lg0KQyBqdXN0IHdvcmtzLCBsaWtl IGl0IHdvcmsgMzAtNDAgeWVhcnMgYWdvLg0KQWxsIGNhbiBiZSBkb25lIG9uIEMuDQoNCkFsbCBt b2Rlcm4gdG9kYXkgYmVjb21lIHVubW9kZXJuIGluIDUtMTAgeWVhcnMgYW5kIGl0IHdpbGwgcmVx dWlyZSBtYW55DQptYW4gcG93ZXIgdG8gc3VwcG9ydCBpdC4NCg== From nobody Mon Jun 16 22:45:55 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLlTm5ByFz5yWSr for ; Mon, 16 Jun 2025 22:46:04 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLlTl5y1sz3FcH for ; Mon, 16 Jun 2025 22:46:03 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=Whpkd33c; spf=pass (mx1.freebsd.org: domain of rozhuk.im@gmail.com designates 2a00:1450:4864:20::62b as permitted sender) smtp.mailfrom=rozhuk.im@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-ad572ba1347so800990966b.1 for ; Mon, 16 Jun 2025 15:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750113957; x=1750718757; darn=freebsd.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:to:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Gx7OquqnKfFMVg8X4z9lbWnB/6gGIg3XUZfNnVBqjFg=; b=Whpkd33ccPsqMk5mWdPNu8wtMDm8KDFBTRJiz/cybVZx2J0oGwBrwwZwcDGZ5pp4ty BNAkGdq2GLqNvjTQluKhQS2/HffKndwtDnxRcnhVNwk6CyjL7WNTmMgDvTn3qCUly6Qt +DLgToHzCJF0K+8eBXB91OhoZtUYFTuVqNpmj8Ld8JCfsyGzJ5vUqLPbL3C+74HIZB0y RayV+p64uo+brB8MN6FTUIClIzpVjuaKismTLaCogoVMbR4v0ex7hoMae3Ngx3EmCNkL hsBgJt4l4yyI77hKXUzqfTUekhMowLZFX7/YNtY2bJ/t3eduRo+lkKuNMqTtOFO3PqQ5 Z5ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750113957; x=1750718757; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:to:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Gx7OquqnKfFMVg8X4z9lbWnB/6gGIg3XUZfNnVBqjFg=; b=uu97epFGiJEFSeSWzbt5JkKUl1uT/yVVbIN+O/07A4aVohOtyqfFL1OEPf/P2A01P4 c/GB6q6ELBTTG49Vxdj8Yrbcj9Objs/lWki+E/TrTo0CaL7Qy5XNirRY+sIG/BOMrW14 wsZYvxzMHMqSiyynTQErY/StH4Oqnk/0arQBY0npHBw1p/Eqm7g7A/bOvL4TaLqbN2uK c7s6LJycY3UXdY1U3U+sdGxc2Y1HKgnEdR0H9vylNfk36GHgmvFlJCm8FsXqoJ/tTp/v ka9RwGFUNIiQYa1T1CxmFeGbtzWpoRJ52RgEEgWxsE41+5z3BIFM+oFnTUhIdomGdHl0 o6pw== X-Gm-Message-State: AOJu0YzRkYzIJUe2oHp9nEJrokcOxDJd5ZMdOQQ7p6qV/0MN/NKOGekp biXQLrA1Ayfm5h5NcO/fygfJYDBYQahcUmTQpOCPmomUaLwxB5IN7uYt6IEZy3we X-Gm-Gg: ASbGnctJvIdoEvKglPgTqhamzjSWLP5KiJBH9J+F3QTq0/NEsGh44vp8SayNZC9WWvF 6xA4uClr2LXMeUmShLpdSXQ6gfEoC9E2fDV9kEOGsHXNs+5n9fKRaF6XOGBInOT6W+dZS2VngZH BpKu9iWYdJto6klS8VDJs4lRxOrAGmIh76znYy7hx8lGoUqyFfEn4R93datuVifolU7dpQuOyS4 uMECE20BNevV7JsqjMcuC0uHh3liboB5jaUQB+x7A+vqgoSNvrVKTbTk5lhBESWOfdefttZ9pLq 95RGuh9PVTaYeBM5+HW2mnCIv4nnouLURkXv0BrYJ83+0JlnfXyLXDoXUEXlkT0= X-Google-Smtp-Source: AGHT+IHGxTG/shaARk6DDmNYHPgQjvYidQ0PY+/5wvox5G7sN0JfrOVG1W+9LbF96je6ALPeVXGX+g== X-Received: by 2002:a17:906:9f91:b0:ad8:9257:571b with SMTP id a640c23a62f3a-adfad32fa19mr1026045466b.16.1750113957456; Mon, 16 Jun 2025 15:45:57 -0700 (PDT) Received: from rimwks.local ([2001:470:1f1b:4dc:8d3c:edb:a074:fd6]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-adec88ff5efsm738944366b.104.2025.06.16.15.45.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jun 2025 15:45:56 -0700 (PDT) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Tue, 17 Jun 2025 01:45:55 +0300 To: freebsd-hackers@freebsd.org Subject: Re: [Thought experiment] Bringing swift into an experimental branch? Message-ID: <20250617014555.75ac832d@rimwks.local> In-Reply-To: References: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.49; amd64-portbld-freebsd14.3) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [0.99 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; NEURAL_SPAM_MEDIUM(0.99)[0.987]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; TAGGED_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62b:from]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4bLlTl5y1sz3FcH X-Spamd-Bar: / On Mon, 16 Jun 2025 16:27:04 -0600 Alan Somers wrote: > Note that said branch does not import the Rust toolchain itself. It > relies on an external toolchain. That made it quite easy to add all > of the Rust support to the Makefiles. And there's no cost at all, in > either runtime, buildtime, or maintenance burden, to people who > aren't using the Rust stuff. The same would be true of Swift, I > assume. But I think that it's highly premature to consider such a > thing before Swift even lands in ports. > > As for whether Swift is appropriate for writing base system > utilities, I don't know enough about it to confidently say. After > Swift stabilizes in ports, and after somebody creates a swift-in-base > branch, then we can have a real holy war ;) Add...add...add...add... who will support all that crap!? Every one likes make childrens, but after they born - they requre a lot attention and resources. Before add something try to see all life cycle of code/language. PS: I will never belive in "no cost at all" since even C compilator takes time to bootstrap build. "to people who aren't using the Rust stuff" - and after few years some on will say: - hey!, lets remove legacy C code and switch to modern crappy rust/swift staff. From nobody Mon Jun 16 22:54:19 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLlgg30Sfz5yWQB for ; Mon, 16 Jun 2025 22:54:39 +0000 (UTC) (envelope-from aleksanderviolin@gmail.com) Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLlgf2NQBz3M6d for ; Mon, 16 Jun 2025 22:54:38 +0000 (UTC) (envelope-from aleksanderviolin@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=cZ1Cqi7P; spf=pass (mx1.freebsd.org: domain of aleksanderviolin@gmail.com designates 2a00:1450:4864:20::529 as permitted sender) smtp.mailfrom=aleksanderviolin@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-6077d0b9bbeso9320536a12.3 for ; Mon, 16 Jun 2025 15:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750114471; x=1750719271; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=78Yc3GX3wil7tqfng6ofpdFCbqMCi9K99UJ9qwyNoZA=; b=cZ1Cqi7PyeXIoI56MucR/dF/cV5r0JNDzScx748YmdcS/lnUgy4Zjv6+EBs81SaJ1M iXd+Hk+Mw+xHXE9GXscmCjsodDESfGRrX0dZ5b8FBgozBqmu2lp2Nn5avkeYZZvlv4iH tOGxOwh+9BR8eOMqvSgXqmUftJjNf1gs1fRKOsHAU2z8d9z+ndee5G0yjYZyZSDRwPhc bQd1+l5/cm66WoxXr0yBCUFWm1zZ9achU56MtF4MhPY5H/3EXf+RD6n1cl/eCXymjxqn mX5q/a/bHwM2I8sYblJd4SwvbB0BaUVo4MQJIYaaYR0i90ghDxSGeJ4fsdZ9AYJchASR wzFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750114471; x=1750719271; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=78Yc3GX3wil7tqfng6ofpdFCbqMCi9K99UJ9qwyNoZA=; b=KLWZZ7xLYpFRV5fZz956HVQzWQCOPYUCpkyGTkNlxSI5xa4R1ixCWJp+Uj7KVKheT4 zaa1kWpl/Y9yA64FslzI+aQ4Ziu5g+ynyFT55LC5bcuZ+dMjVN5O92C3pWCieX7xk6CH SuoLT7L1Hh8QrXPj0CvlBL3PQK3GPk5Q5UbaKQro07JAqJJGu3OLb/fKS/uYClwxTH3c wq+M8uDvz6f4grAmcf6GbRV8v+F1uH9+KqLGQeEJlHhQxUtgTkNXrda+NRlmPJ9YfqEe c/XAwihIHoaQv90Y0ifKIiwk2s6JbB04fChiiqydoyUZxiNv9IW8r9gla9UM11/E0wx9 Y6oQ== X-Gm-Message-State: AOJu0Yx/F7DrNOSPs3cLDt7e1qXf3yweqL19y1s8Bg7jA/nch41VzVeC 2qVuMoLnAZMgVW2x/Xv/DshqFdgjRp0PL0MqhXJvFNYP/kDtOOaHekwMcgxM00S6whg0Qt20suL 7XXvUsAIadfYnnGhebMXWWpeSVRddzJt4P4yZ X-Gm-Gg: ASbGnctv910YsQbVwgjmX8cZN8ggd/J1qgF81ljd6xAh8aEc854CJ4HF0uwPtiDOpOA 83iVOEUuXm7qrFf9jAKMZVOtcPuu9HCEJNph/LJp3cVZC8qbzWawIWV4ojyWgIZUsdnBZE1pXzF J3MMOX4M34hZ4eSzZg0cj3Z0zrkBGi84Vp+oU64P4s27kW X-Google-Smtp-Source: AGHT+IFQXuxOKbsNG8wqSB1JtH6GRayNLSloCXM7rouZz6BrxTPAIoGb1j7V1qzF0Ca1ZZjotDj5X+cVf54u7fVqWao= X-Received: by 2002:a05:6402:3547:b0:604:bf4e:852d with SMTP id 4fb4d7f45d1cf-608d0865435mr9571105a12.12.1750114470624; Mon, 16 Jun 2025 15:54:30 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 From: Alek Da man Date: Tue, 17 Jun 2025 00:54:19 +0200 X-Gm-Features: AX0GCFtl_-ygOqwlM8qsGncCdyLRiwBm5uN-0q8uG2zACITe0q7Cq0hNWtWyRGQ Message-ID: Subject: How to enter SOC Porting? To: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="00000000000056820b0637b847bd" X-Spamd-Result: default: False [0.90 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_HAM_SHORT(-0.93)[-0.931]; NEURAL_SPAM_MEDIUM(0.83)[0.828]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_FROM(0.00)[gmail.com]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::529:from]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4bLlgf2NQBz3M6d X-Spamd-Bar: / --00000000000056820b0637b847bd Content-Type: text/plain; charset="UTF-8" Hi, I want to enter SOC Porting but upon asking have gotten very abstract material and am still not able to understand how it is done. I'm in search of a material or guide with end to end "handholding" on how it's done. Any recommendations? // Alek --00000000000056820b0637b847bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I want to enter SOC Porting but upon asking hav= e=C2=A0gotten=C2=A0very=C2=A0abstract material and am still not able=C2=A0t= o understand how it is done.

I'm in search of a material or guid= e with end=C2=A0to end "handholding" on how it's done. Any re= commendations?

//
Alek
--00000000000056820b0637b847bd-- From nobody Mon Jun 16 23:01:46 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLlrH04bbz5yWxF for ; Mon, 16 Jun 2025 23:02:07 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLlrF5ssMz3Qjt for ; Mon, 16 Jun 2025 23:02:05 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=gZ90ZGsm; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::1132) smtp.mailfrom=tomek@cedro.info; dmarc=none Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-710f39f5cb9so50264557b3.3 for ; Mon, 16 Jun 2025 16:02:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1750114919; x=1750719719; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FhQv3mgQ90MGN1LshWG7yQ2UZKRY21ZUon/DRsm8J/Y=; b=gZ90ZGsmkI8jQPOMjukeSaiKRwpnpJZWae4zQtlIHmo3ahZhpogI46zwS0Dj+vCH5R acrKlnwt3hgCo04zXBOUbpQp0b3ac6aWZxTk0wAc3U0MBRD2MV/6GC980kYl3v1XRthd rmu9o23SR2dGce2lnegDMol6mSaHrYiM56gNuaYr9i/1/J5rT4ERhkXha3btqtPB3CsG pLlXgUSnUoynMYnvyjPsvHNWCuroZlSy5kDR++7QBGIwsVGg6+3BG0h0evx7GFd9w+ZV J5xZyCpugaKKbssjHts4yupQu+McT6qo1DEWQw0xxkq0NNaCp+gqoT0omGFcCuv+gVms N6mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750114919; x=1750719719; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FhQv3mgQ90MGN1LshWG7yQ2UZKRY21ZUon/DRsm8J/Y=; b=gkv1Op5vSMY6zFIiabF+yRRXXVT931LTd8tDjUFBoDFCroT7C8F/MA8wOhoz5qcHhP bl51tvk8wvjnbAMPwdRr6dxVw1bATobl1KSG/b5KkKIgnQwn79+FQ6Nluma5JJ+A69wg S0lU6zSpmBjR9vhWB7tCa3xTjqbiVKgaEc6zR8h0wqjv3C5KZdowFaNJC2wNJufBZ0gM wwwvDZajpC+lbwGN8Y0GdUNqaSTnlZbuj63StOMDllnZOVhQZQyvIWre9rglt/pnwEFx Pz5dDsPz39sh+ajz2HaSydY5iXqV/Z5sIDdjqPPZ7g3hFB0RziwBT22KECYYU5CEND1j QDaw== X-Gm-Message-State: AOJu0YytPIwhxFF6Wvhys3K69djTsIlVntHgBmogtQYWLm/4FIzW0B7h VzGv95Clmyt9tBu2AxTuXBE9QjCxK1GznIfwvTrBt+xUYb2tjzJv/qXeiovIZptY8q3IRtmNHYx Kvf8= X-Gm-Gg: ASbGncv654LGACQ7k3t3xZJzUksVvxLd/J677S0Sc5VhQc0Di4Yf4GAwH8bVkTMt0wA Xq+sUWXO7MaxSgTl9E7s88AodNqrSy38CW+20y4Wb5vN2L/xvIlTKHljavl0MxpPD6UP30b+O0l QXw7gOhRXmYTRZ2mrF+/7oZKdqbLabwON1UV5oj+DLfcmMqMOvHAahNSX5mmLnqm9cIQ1Td3aLB trIvrV1jgOSnoronnppTO8OeoLYEVcGG7qBXfuSEZCnklm7n8C/jLo83/C7ZQdbwH9jkGsqvDRU y1vFzkrKTe8gbCkIOhkkaia7+PhnvM9P4pZT34v0swyDY/Y50vGlI8NBy8uyvitszd65rWY34EH tx6lw7o45SitKL64YRIK/1oE= X-Google-Smtp-Source: AGHT+IFr7S55kNxGa3ol34dBGo+/p4aTYb1/Wgqt/h+dE3ritmSTiv17VqnwcESypMASdKcN6Bfj4g== X-Received: by 2002:a05:690c:968e:b0:70d:ffaf:48e1 with SMTP id 00721157ae682-7117539740emr144214577b3.9.1750114919597; Mon, 16 Jun 2025 16:01:59 -0700 (PDT) Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com. [209.85.128.181]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7118f247782sm6880657b3.43.2025.06.16.16.01.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Jun 2025 16:01:59 -0700 (PDT) Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-70e5e6ab7b8so44298957b3.1 for ; Mon, 16 Jun 2025 16:01:59 -0700 (PDT) X-Received: by 2002:a05:690c:312:b0:70d:ffaf:48fe with SMTP id 00721157ae682-71175398049mr145421007b3.13.1750114918683; Mon, 16 Jun 2025 16:01:58 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> In-Reply-To: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> From: Tomek CEDRO Date: Tue, 17 Jun 2025 01:01:46 +0200 X-Gmail-Original-Message-ID: X-Gm-Features: AX0GCFu7WyxHwOaAQU2gfiaa-I1fHsnvGlZK9KdjB6ywo4rKtPH12kP_2PTQHIw Message-ID: Subject: Re: [Thought experiment] Bringing swift into an experimental branch? To: Jordan Hubbard Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-0.21 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_SHORT(-0.85)[-0.846]; NEURAL_HAM_MEDIUM(-0.62)[-0.615]; NEURAL_SPAM_LONG(0.55)[0.553]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCPT_COUNT_TWO(0.00)[2]; DMARC_NA(0.00)[cedro.info]; FREEMAIL_TO(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TAGGED_RCPT(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1132:from,209.85.128.181:received] X-Rspamd-Queue-Id: 4bLlrF5ssMz3Qjt X-Spamd-Bar: / On Tue, Jun 17, 2025 at 12:05=E2=80=AFAM Jordan Hubbard wrote: > I know that the topic of =E2=80=9Cbringing additional languages=E2=80=9D = into OSes is controversial and, frankly, we made a bad call with macOS when= we brought the kitchen sink in (everything from Tcl to Python) and regrett= ed it afterwards, so this is just a thought experiment, as noted in the sub= ject. > > All that said, I think a more modern language than C++ being readily avai= lable has a useful way of shifting development and generating some exciteme= nt, and a modern language that is also strongly supported by your existing = clang / LLVM compiler toolchain represents an increment along the same evol= utionary path. It=E2=80=99s also a language that needs a number of compone= nts to be tightly in sync (libdispatch, clang, llvm, various compilation to= ols and libraries, etc) before any 3rd party developer can even compile it = for FreeBSD, so saying =E2=80=9Cit=E2=80=99s a ports collection problem=E2= =80=9D may ultimately work, but not without considerable pain, as evidenced= by the fact that ports/lang/swift does not exist. > > Why swift, if anything? > > Python changes too often in incompatible ways and Rust is still going thr= ough its Rust foundation stewardship changes (that didn=E2=80=99t form unti= l 2021) plus if you bring Rust in, you=E2=80=99ll be immediately enmeshed i= n the =E2=80=9Cshould we just rewrite the kernel in rust?!=E2=80=9D topics = that seem to plague Linux. Swift, on the other hand, is an application an= d service development language and sits nicely on top of what FreeBSD alrea= dy has - nobody=E2=80=99s going to push to rewrite the kernel or base utili= ties in Swift, but you do get access to a very active community and, of cou= rse, the backing of a major player like Apple and the open source swift eco= system. > > I=E2=80=99m told that Swift also just announced support for FreeBSD, so i= f there is ever a time, this might be it? > - Jordan There is nothing wrong with resurrecting lang/swift in the ports [1], this may bring Swift lovers to FreeBSD make it base for their servers / platforms / devices (maybe even porting macOS/iOS applications???), just as it is with any other programming language already here (i.e. Python), people will have choice whether use it or not with zero impact on the kernel / base :-) The problem was with "dump old bad C and rewrite everything in Swift just to get modern" because we clearly do not want to rewrite kernel / base in Swift :D :D [1] https://www.freshports.org/lang/swift/ --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Mon Jun 16 23:31:46 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLmVg2Qt0z5VcBC for ; Mon, 16 Jun 2025 23:31:55 +0000 (UTC) (envelope-from rob.fx907@gmail.com) Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLmVf4KMLz3pxk for ; Mon, 16 Jun 2025 23:31:54 +0000 (UTC) (envelope-from rob.fx907@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-ad88d77314bso1122497466b.1 for ; Mon, 16 Jun 2025 16:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750116708; x=1750721508; darn=freebsd.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JIf3F78WZB/kYVGH9rkqr/87HrQS5cRHa2ct7JZ+g9c=; b=IJo7kA0NHhnqikmwLLWl0ZEyWHWBILqjw5+oscXbh/9LJ5a/tdEgbGrO1tysmZ8Npn /17EceLyQhLPp0Oknf2sYroAUIGRQy/ybP6KbYqNe3LHm4IzRcxj9C5Xw7jxvvAWp96a du9aJoqsBLSmKjeH/oEyV+WNrOa6wSrs6zS3m5NvNSZTAks5qse1lfKDnCpffmR07k+Q wdsJ+dIZ4GSr2QUVEzqlFk+f0FNZ9bHamxxH/qyEkkyXyjG4byKKiGxb6L0M1ljeR5VY 0JYOkCdRZdZxrcbEk6z3xI372rDTWbwxCtnoYJirmuobXZE76Q0z67Opg3S3as9evhG6 YeSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750116708; x=1750721508; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JIf3F78WZB/kYVGH9rkqr/87HrQS5cRHa2ct7JZ+g9c=; b=ah55vTDeBeG1kmYwWkpv6cNx9XbCzcDBqsFEgZRVcxAkd4lAg9t5KshVcXQvnDa0YS 0E0BxFlWtV7+RPEeLUZdXBIc6jIFaprFMsy6Ti7RVeNLV2MoiDIdHxRGNNuu1vvxH67I c3tCd0ReXWfgEVEgZeAZZr843X6hGJs2LziQniMNKK/qvw6nInrvcBHXWK9PwwvK2e+Q kNxmd02k4sKEVOBaxg3l9FHDtfkCD7Q2sVnI65yY/dpJquV9EYrsicotGU1vr6hlUHLX 1E+xNgr81tt6LOne5eI9KWUz0MVnbxQx9DGKZMXWdB+fQfJDDWEz9VgNMSEYnATaasDK 24HQ== X-Forwarded-Encrypted: i=1; AJvYcCUyTyKXVPCmnj5bqhMZ6oxeR0pXjGDhYH7RfuovOWFQYvf4BGPCvN9SOVfE+Uw3CH/+RqXyFs45N78Ro5PgjWM=@freebsd.org X-Gm-Message-State: AOJu0Yy7DKhSxqGPsm/4J/vaefOBfqsRxI7KJc/Yta5fGvJfn/z1Lt70 hBjN24smS464IjnvXKQx/8mfsj3aIPBdu56XthDl1KT3WyGP8Vzffvcw3wMe6ppeSe299oNjqYk n4sQpYutyU+G+AqkKCc74lQ8BOiSWXc4= X-Gm-Gg: ASbGncsUSOewYnbov1vGMTyrs5PswQ9oYODxJMu/lDi06N9zwiYcoePVw3LBTaOAKIz q6+np6hipYML27EDNzJeuSUAOQgcXp5dKNsFBDLAzn3Bo610O1q/wQBpatORCowCIK3VGTsHYkX /3uJUZpUAFLrf9WjBs845ONTjAtI9CfkoaOByk5eHVC5159xaJK5MeXqXpkLX3DvXghJtnXw+rk JQNiElkfFKD+JBF X-Google-Smtp-Source: AGHT+IG7GIBcsxAREctH8KoJgcK4c4ax/PeaqnH2r4KBaFPjihyxALDHscm34Q9theqstQcANzykK5v6RZihfaIpQj8= X-Received: by 2002:a17:906:4fca:b0:ad8:a41a:3cdc with SMTP id a640c23a62f3a-adfad3734admr1090099566b.2.1750116707564; Mon, 16 Jun 2025 16:31:47 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Received: by 2002:a17:906:2dda:b0:adf:763a:f4c4 with HTTP; Mon, 16 Jun 2025 16:31:46 -0700 (PDT) In-Reply-To: References: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> From: Rob Wing Date: Mon, 16 Jun 2025 15:31:46 -0800 X-Gm-Features: AX0GCFtt2NFGYDoCcrpt1LEB4hxZBPymsDLuzYO_GMmFWGoNHlaK9mP5Wqhpk1E Message-ID: Subject: Re: [Thought experiment] Bringing swift into an experimental branch? To: Tomek CEDRO Cc: Jordan Hubbard , "freebsd-hackers@freebsd.org" Content-Type: multipart/alternative; boundary="000000000000ab80840637b8cc70" X-Rspamd-Queue-Id: 4bLmVf4KMLz3pxk X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] --000000000000ab80840637b8cc70 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable can someone (who was around at the time) school us on why perl was removed from base? and why introducing language XYZ won=E2=80=99t suffer the same issues/fate? On Monday, June 16, 2025, Tomek CEDRO wrote: > On Tue, Jun 17, 2025 at 12:05=E2=80=AFAM Jordan Hubbard > wrote: > > I know that the topic of =E2=80=9Cbringing additional languages=E2=80= =9D into OSes is > controversial and, frankly, we made a bad call with macOS when we brought > the kitchen sink in (everything from Tcl to Python) and regretted it > afterwards, so this is just a thought experiment, as noted in the subject= . > > > > All that said, I think a more modern language than C++ being readily > available has a useful way of shifting development and generating some > excitement, and a modern language that is also strongly supported by your > existing clang / LLVM compiler toolchain represents an increment along th= e > same evolutionary path. It=E2=80=99s also a language that needs a number= of > components to be tightly in sync (libdispatch, clang, llvm, various > compilation tools and libraries, etc) before any 3rd party developer can > even compile it for FreeBSD, so saying =E2=80=9Cit=E2=80=99s a ports coll= ection problem=E2=80=9D > may ultimately work, but not without considerable pain, as evidenced by t= he > fact that ports/lang/swift does not exist. > > > > Why swift, if anything? > > > > Python changes too often in incompatible ways and Rust is still going > through its Rust foundation stewardship changes (that didn=E2=80=99t form= until > 2021) plus if you bring Rust in, you=E2=80=99ll be immediately enmeshed i= n the > =E2=80=9Cshould we just rewrite the kernel in rust?!=E2=80=9D topics that= seem to plague > Linux. Swift, on the other hand, is an application and service > development language and sits nicely on top of what FreeBSD already has - > nobody=E2=80=99s going to push to rewrite the kernel or base utilities in= Swift, > but you do get access to a very active community and, of course, the > backing of a major player like Apple and the open source swift ecosystem. > > > > I=E2=80=99m told that Swift also just announced support for FreeBSD, so= if there > is ever a time, this might be it? > > - Jordan > > There is nothing wrong with resurrecting lang/swift in the ports [1], > this may bring Swift lovers to FreeBSD make it base for their servers > / platforms / devices (maybe even porting macOS/iOS applications???), > just as it is with any other programming language already here (i.e. > Python), people will have choice whether use it or not with zero > impact on the kernel / base :-) > > The problem was with "dump old bad C and rewrite everything in Swift > just to get modern" because we clearly do not want to rewrite kernel / > base in Swift :D :D > > [1] https://www.freshports.org/lang/swift/ > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > > --000000000000ab80840637b8cc70 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable can someone (who was around at the time) school us =C2=A0on why perl was re= moved from base?

and why introducing language XYZ won=E2= =80=99t suffer the same issues/fate?

On Monday, June 16, 2025, Tom= ek CEDRO <tomek@cedro.info> w= rote:
On Tue, Jun 17, 2025 at 12:05=E2=80= =AFAM Jordan Hubbard
<jordan.hubbard@gmail.com> wrote:
> I know that the topic of =E2=80=9Cbringing additional languages=E2=80= =9D into OSes is controversial and, frankly, we made a bad call with macOS = when we brought the kitchen sink in (everything from Tcl to Python) and reg= retted it afterwards, so this is just a thought experiment, as noted in the= subject.
>
> All that said, I think a more modern language than C++ being readily a= vailable has a useful way of shifting development and generating some excit= ement, and a modern language that is also strongly supported by your existi= ng clang / LLVM compiler toolchain represents an increment along the same e= volutionary path.=C2=A0 It=E2=80=99s also a language that needs a number of= components to be tightly in sync (libdispatch, clang, llvm, various compil= ation tools and libraries, etc) before any 3rd party developer can even com= pile it for FreeBSD, so saying =E2=80=9Cit=E2=80=99s a ports collection pro= blem=E2=80=9D may ultimately work, but not without considerable pain, as ev= idenced by the fact that ports/lang/swift does not exist.
>
> Why swift, if anything?
>
> Python changes too often in incompatible ways and Rust is still going = through its Rust foundation stewardship changes (that didn=E2=80=99t form u= ntil 2021) plus if you bring Rust in, you=E2=80=99ll be immediately enmeshe= d in the =E2=80=9Cshould we just rewrite the kernel in rust?!=E2=80=9D topi= cs that seem to plague Linux.=C2=A0 =C2=A0Swift, on the other hand, is an a= pplication and service development language and sits nicely on top of what = FreeBSD already has - nobody=E2=80=99s going to push to rewrite the kernel = or base utilities in Swift, but you do get access to a very active communit= y and, of course, the backing of a major player like Apple and the open sou= rce swift ecosystem.
>
> I=E2=80=99m told that Swift also just announced support for FreeBSD, s= o if there is ever a time, this might be it?
> - Jordan

There is nothing wrong with resurrecting lang/swift in the ports [1],
this may bring Swift lovers to FreeBSD make it base for their servers
/ platforms / devices (maybe even porting macOS/iOS applications???),
just as it is with any other programming language already here (i.e.
Python), people will have choice whether use it or not with zero
impact on the kernel / base :-)

The problem was with "dump old bad C and rewrite everything in Swift just to get modern" because we clearly do not want to rewrite kernel /=
base in Swift :D :D

[1]
ht= tps://www.freshports.org/lang/swift/

--
CeDeROM, SQ7MHZ, = http://www.tomek.cedro.info

--000000000000ab80840637b8cc70-- From nobody Mon Jun 16 23:47:13 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLmrj2rw6z5Vcvj for ; Mon, 16 Jun 2025 23:47:33 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLmrg6yZBz42yx for ; Mon, 16 Jun 2025 23:47:31 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20230601.gappssmtp.com header.s=20230601 header.b=rmNRaf6y; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::429) smtp.mailfrom=wlosh@bsdimp.com; dmarc=none Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-74801bc6dc5so4012591b3a.1 for ; Mon, 16 Jun 2025 16:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1750117645; x=1750722445; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=oqwRC1kNpIUnoJTMy2uevmeqOmrymp6aFynED8UJcKU=; b=rmNRaf6y2GoYu0mM++p0uudt0bFH+1pnH0ZdpwyN/HdCFp0oL3oLB3SslDMA4RN9Th oAwwzHgHxqxJ12JZAqImaOLt2kG/TiSL6QR8btMRfQsr+j6vba3gZNyzrYBGNscIomYK 6EcGmX4aVUNG+VZi43QbX6FsdoAsmv7204kUXfGqXYm9NQtm1ST/KrUp/DSLG+iazBoS 9U5eaJv6uaceHkWlyi6JF0MtoAME8a5heiFLNhpCtHSF8mNbe/Bwtz/Wa/5Px3PRx8fC Rdj7TOioh70qKrLnNRtIRSD2Ro02aOtVNbl2RlsFPkjW476byjyU9yu6rQ5kyDFD8sNs frZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750117645; x=1750722445; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oqwRC1kNpIUnoJTMy2uevmeqOmrymp6aFynED8UJcKU=; b=cP237442C4fWlvicsFaFXlnILUKK0L2Cj5f7PUPEYmlTH0FdmZ68PmafCp5rY4LSN0 /MaP7UOoUkt97bOJNqXiEhG/u1IKZ1S3zqYqZXkv7P3RuhCsXgjSWU+sjbpbH/MPMnSW qiBWes0lUZZr4FDzvxNaJg40lORXdtds0iHtLtZPUVWDPSXxG2d+F4xkyP7JKIa/8oXs IKhACJ0viG6iAik3yNkpmh1CW/T9xI0MlR4pzCJkYnHfCfaJUSsw9cU/eM7ItBTltjU0 pdW+s5jfWqBwvmstQGSFwqXBreMcwzGTL+gQvMQxzaHYBo9CVPaxzaYTWD+uIw660kkX O+3A== X-Forwarded-Encrypted: i=1; AJvYcCVqJOSwBlmCeu9e3Bukktbtd0muOWpuhce6ic6YnrPEB0BCdMqQ7kCpw01MmBIIw+soDMtpQLUpZKg0jbLpRZ4=@freebsd.org X-Gm-Message-State: AOJu0YxxzMbOy1tntqsnSZZv/XbBe/N0UT8f2SKePZXtVbfOu5hPWTgm 5wevctBNRyWrCLfzH/TRb8mEcoQbUDTUsrvjM7FU2pF5srkLHmproWIZwiSs5VyyjbxZH8e6vIf wMha/ANHUNcLmtFkAzpf4vLCdjQ0truzrzeIon6fzoiGGBT8HsdRgpQ4= X-Gm-Gg: ASbGncvodQtGSu5ENhGcAoC9P9z6JKHULc719g5U2XZ9euMFzwX6T9gpI/hebL40NNL Y35QGk/wQOfCF1GJgdeEiehmUfRm2eLqLWBIo7iD52JbEKxeI1G16N1Q1erPrnpJlkiBrncTt/H Cz/rEyYsNBQy5cjsGjyzU8Am/hwiWxA780rQOKrVMch7W+/IVb9lCfrglqUUIuW+LdOwgCOxfK3 Q== X-Google-Smtp-Source: AGHT+IGr8lJ+dtr3AmHBRg5/44cmAohDU+5WkadI61YgSOdMnG7k5Jz+bCvBamP+Qphb11RdZ0o7K5VLkgPZYNGw1kk= X-Received: by 2002:a05:6a00:9181:b0:748:a0b9:f873 with SMTP id d2e1a72fcca58-748a0b9f8d2mr13168267b3a.9.1750117645217; Mon, 16 Jun 2025 16:47:25 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> In-Reply-To: From: Warner Losh Date: Mon, 16 Jun 2025 17:47:13 -0600 X-Gm-Features: AX0GCFub-J1p5Oaxu-yVGcn4Fd2SEn_mUw1Yms1VjYcGuo0JgNsrMyMAy8mIb6c Message-ID: Subject: Re: [Thought experiment] Bringing swift into an experimental branch? To: Rob Wing Cc: Tomek CEDRO , Jordan Hubbard , FreeBSD Hackers Content-Type: multipart/alternative; boundary="0000000000008f07af0637b904d0" X-Spamd-Result: default: False [0.67 / 15.00]; SUSPICIOUS_RECIPS(1.50)[]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-0.93)[-0.934]; NEURAL_HAM_SHORT(-0.56)[-0.557]; NEURAL_HAM_LONG(-0.34)[-0.339]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[bsdimp.com]; ARC_NA(0.00)[]; FREEMAIL_CC(0.00)[cedro.info,gmail.com,freebsd.org]; DKIM_TRACE(0.00)[bsdimp-com.20230601.gappssmtp.com:+]; TO_DN_ALL(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_NA(0.00)[no SPF record]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TAGGED_RCPT(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::429:from] X-Rspamd-Queue-Id: 4bLmrg6yZBz42yx X-Spamd-Bar: / --0000000000008f07af0637b904d0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 16, 2025, 5:33=E2=80=AFPM Rob Wing wrote: > can someone (who was around at the time) school us on why perl was > removed from base? Short summary: Evolved too quickly, so stable branches were hard; A lot of work to keep up to date; A real ecosystem that should have had parts imported, but that was impractical; and conflicts with port installed versions. and why introducing language XYZ won=E2=80=99t suffer the same issues/fate? > Indeed. That's always the question. But we have external toolchain support now that would help. Warner On Monday, June 16, 2025, Tomek CEDRO wrote: > >> On Tue, Jun 17, 2025 at 12:05=E2=80=AFAM Jordan Hubbard >> wrote: >> > I know that the topic of =E2=80=9Cbringing additional languages=E2=80= =9D into OSes is >> controversial and, frankly, we made a bad call with macOS when we brough= t >> the kitchen sink in (everything from Tcl to Python) and regretted it >> afterwards, so this is just a thought experiment, as noted in the subjec= t. >> > >> > All that said, I think a more modern language than C++ being readily >> available has a useful way of shifting development and generating some >> excitement, and a modern language that is also strongly supported by you= r >> existing clang / LLVM compiler toolchain represents an increment along t= he >> same evolutionary path. It=E2=80=99s also a language that needs a numbe= r of >> components to be tightly in sync (libdispatch, clang, llvm, various >> compilation tools and libraries, etc) before any 3rd party developer can >> even compile it for FreeBSD, so saying =E2=80=9Cit=E2=80=99s a ports col= lection problem=E2=80=9D >> may ultimately work, but not without considerable pain, as evidenced by = the >> fact that ports/lang/swift does not exist. >> > >> > Why swift, if anything? >> > >> > Python changes too often in incompatible ways and Rust is still going >> through its Rust foundation stewardship changes (that didn=E2=80=99t for= m until >> 2021) plus if you bring Rust in, you=E2=80=99ll be immediately enmeshed = in the >> =E2=80=9Cshould we just rewrite the kernel in rust?!=E2=80=9D topics tha= t seem to plague >> Linux. Swift, on the other hand, is an application and service >> development language and sits nicely on top of what FreeBSD already has = - >> nobody=E2=80=99s going to push to rewrite the kernel or base utilities i= n Swift, >> but you do get access to a very active community and, of course, the >> backing of a major player like Apple and the open source swift ecosystem= . >> > >> > I=E2=80=99m told that Swift also just announced support for FreeBSD, s= o if >> there is ever a time, this might be it? >> > - Jordan >> >> There is nothing wrong with resurrecting lang/swift in the ports [1], >> this may bring Swift lovers to FreeBSD make it base for their servers >> / platforms / devices (maybe even porting macOS/iOS applications???), >> just as it is with any other programming language already here (i.e. >> Python), people will have choice whether use it or not with zero >> impact on the kernel / base :-) >> >> The problem was with "dump old bad C and rewrite everything in Swift >> just to get modern" because we clearly do not want to rewrite kernel / >> base in Swift :D :D >> >> [1] https://www.freshports.org/lang/swift/ >> >> -- >> CeDeROM, SQ7MHZ, http://www.tomek.cedro.info >> >> --0000000000008f07af0637b904d0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Jun 16, 2025, 5:33=E2=80= =AFPM Rob Wing <rob.fx907@gmail.c= om> wrote:
can someone (who = was around at the time) school us =C2=A0on why perl was removed from base?<= /blockquote>

Short= summary: Evolved too quickly, so stable branches were hard; A lot of work = to keep up to date; A real ecosystem that should have had parts imported, b= ut that was impractical; and conflicts with port installed versions.
<= div dir=3D"auto">

and why introducing language XYZ won=E2=80=99t suffer the same issu= es/fate?

Indeed. That's always the question. But we have external tool= chain support now that would help.

Warner

O= n Monday, June 16, 2025, Tomek CEDRO <tomek@cedro.info> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">On Tue, Jun 17, 2025 at 12:05=E2=80=AFAM Jord= an Hubbard
<jordan.hubbard@gmail.com> wrote:
> I know that the topic of =E2=80=9Cbringing additional languages=E2=80= =9D into OSes is controversial and, frankly, we made a bad call with macOS = when we brought the kitchen sink in (everything from Tcl to Python) and reg= retted it afterwards, so this is just a thought experiment, as noted in the= subject.
>
> All that said, I think a more modern language than C++ being readily a= vailable has a useful way of shifting development and generating some excit= ement, and a modern language that is also strongly supported by your existi= ng clang / LLVM compiler toolchain represents an increment along the same e= volutionary path.=C2=A0 It=E2=80=99s also a language that needs a number of= components to be tightly in sync (libdispatch, clang, llvm, various compil= ation tools and libraries, etc) before any 3rd party developer can even com= pile it for FreeBSD, so saying =E2=80=9Cit=E2=80=99s a ports collection pro= blem=E2=80=9D may ultimately work, but not without considerable pain, as ev= idenced by the fact that ports/lang/swift does not exist.
>
> Why swift, if anything?
>
> Python changes too often in incompatible ways and Rust is still going = through its Rust foundation stewardship changes (that didn=E2=80=99t form u= ntil 2021) plus if you bring Rust in, you=E2=80=99ll be immediately enmeshe= d in the =E2=80=9Cshould we just rewrite the kernel in rust?!=E2=80=9D topi= cs that seem to plague Linux.=C2=A0 =C2=A0Swift, on the other hand, is an a= pplication and service development language and sits nicely on top of what = FreeBSD already has - nobody=E2=80=99s going to push to rewrite the kernel = or base utilities in Swift, but you do get access to a very active communit= y and, of course, the backing of a major player like Apple and the open sou= rce swift ecosystem.
>
> I=E2=80=99m told that Swift also just announced support for FreeBSD, s= o if there is ever a time, this might be it?
> - Jordan

There is nothing wrong with resurrecting lang/swift in the ports [1],
this may bring Swift lovers to FreeBSD make it base for their servers
/ platforms / devices (maybe even porting macOS/iOS applications???),
just as it is with any other programming language already here (i.e.
Python), people will have choice whether use it or not with zero
impact on the kernel / base :-)

The problem was with "dump old bad C and rewrite everything in Swift just to get modern" because we clearly do not want to rewrite kernel /=
base in Swift :D :D

[1] https://www.freshports.org/lang/swift/

--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

--0000000000008f07af0637b904d0-- From nobody Mon Jun 16 23:55:26 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLn261zLTz5VdMZ for ; Mon, 16 Jun 2025 23:55:42 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (pdx.rh.CN85.dnsmgr.net [65.75.216.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLn254TV3z3CmX; Mon, 16 Jun 2025 23:55:41 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Authentication-Results: mx1.freebsd.org; none Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id 55GNtQGY021065; Mon, 16 Jun 2025 16:55:26 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 55GNtQDW021064; Mon, 16 Jun 2025 16:55:26 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <202506162355.55GNtQDW021064@gndrsh.dnsmgr.net> Subject: Re: [maybe spam] Re: A modern programming language for FreeBSD: Swift In-Reply-To: <71d166d8-0a5b-4cb4-87c8-ee292b50e81b@freebsd.org> To: Julian Elischer Date: Mon, 16 Jun 2025 16:55:26 -0700 (PDT) CC: freebsd-hackers@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 4bLn254TV3z3CmX X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:10494, ipnet:65.75.216.0/23, country:US] > On 6/14/25 10:06 PM, Konstantin Belousov wrote: > > On Sat, Jun 14, 2025 at 01:06:40PM +0000, Jordan Gordeev wrote: > >> * support for dynamic linking (incl. to libc for isolating generated code from changes to the userland?kernel interface) > > What specifically do you mean there? > > > > Does swift run over the C runtime, or like Go, it implements its own > > runtime directly interacting with kernel syscalls? > > I have a Basic to C converter on my BSD web page..? I haven't changed > it for? a couple of decade or so but it did run last I looked.. Maybe > we can use it to maintain FreeBSD in basic!?? Only takes a few > millisecs to covert a CBASIC program to C.?? Lets go for a language > that isn't "fashionable", but really has history! > > https://en.wikipedia.org/wiki/CBASIC As much as I like the simplistic idea of BASIC, having first learned it in 1969, I would rather if we must retrograde lets pick something with a "bit" more "bit handling" like PL/1? https://www.ibm.com/docs/en/SSY2V3_5.1.0/com.ibm.ent.pl1.zos.doc/lrm.pdf -- Rod Grimes rgrimes@freebsd.org From nobody Tue Jun 17 00:49:17 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLpD13N3zz5Vj91 for ; Tue, 17 Jun 2025 00:49:21 +0000 (UTC) (envelope-from linimon@portsmon.org) Received: from MTA-06-4.privateemail.com (mta-06-4.privateemail.com [198.54.122.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLpD071DZz426Z for ; Tue, 17 Jun 2025 00:49:20 +0000 (UTC) (envelope-from linimon@portsmon.org) Authentication-Results: mx1.freebsd.org; none Received: from mta-06.privateemail.com (localhost [127.0.0.1]) by mta-06.privateemail.com (Postfix) with ESMTP id 4bLpCy2zG4z3hhW8; Mon, 16 Jun 2025 20:49:18 -0400 (EDT) Received: from APP-20 (unknown [10.50.14.244]) by mta-06.privateemail.com (Postfix) with ESMTPA; Mon, 16 Jun 2025 20:49:17 -0400 (EDT) Date: Mon, 16 Jun 2025 19:49:17 -0500 (CDT) From: Mark Linimon To: Alek Da man , freebsd-hackers@freebsd.org Message-ID: <1558357308.155492.1750121357324@privateemail.com> In-Reply-To: References: Subject: Re: How to enter SOC Porting? List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.6-Rev78 X-Originating-Client: open-xchange-appsuite X-Virus-Scanned: ClamAV using ClamSMTP X-Rspamd-Queue-Id: 4bLpD071DZz426Z X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:22612, ipnet:198.54.122.0/24, country:US] > I want to enter SOC Porting My guess that within FreeBSD, the source code is going to be your only reference, e.g.: https://cgit.freebsd.org/src/tree/sys/arm64 and all the files underneath that directory. It might be better if you tell us specifically what you are trying to accomplish. mcl From nobody Tue Jun 17 01:05:13 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLpZT758pz5Vk1x for ; Tue, 17 Jun 2025 01:05:21 +0000 (UTC) (envelope-from karl@denninger.net) Received: from colo1.denninger.net (colo1.denninger.net [104.236.120.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLpZS4YSYz4GWp for ; Tue, 17 Jun 2025 01:05:20 +0000 (UTC) (envelope-from karl@denninger.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of karl@denninger.net designates 104.236.120.189 as permitted sender) smtp.mailfrom=karl@denninger.net; dmarc=pass (policy=none) header.from=denninger.net Received: from denninger.net (unknown [162.81.131.136]) by colo1.denninger.net (Postfix) with ESMTP id 19ECFB11E6 for ; Mon, 16 Jun 2025 21:05:15 -0400 (EDT) Received: from [192.168.10.13] (D3.Denninger.Net [192.168.10.13]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by denninger.net (Postfix) with ESMTPSA id 95EDD4C835D for ; Mon, 16 Jun 2025 21:05:13 -0400 (EDT) Message-ID: Date: Mon, 16 Jun 2025 21:05:13 -0400 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: freebsd-hackers@freebsd.org From: Karl Denninger Subject: An idea for the EFI (LUA) loader.... Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-512; boundary="------------ms080703050309070505040206" X-Spamd-Result: default: False [-1.78 / 15.00]; SIGNED_SMIME(-2.00)[]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_HAM_SHORT(-0.98)[-0.981]; DMARC_POLICY_ALLOW(-0.50)[denninger.net,none]; MIME_GOOD(-0.20)[multipart/signed,multipart/alternative,text/plain]; R_SPF_ALLOW(-0.20)[+mx]; MIME_BASE64_TEXT(0.10)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:14061, ipnet:104.236.64.0/18, country:US]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:~]; FREEFALL_USER(0.00)[karl]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; HAS_ATTACHMENT(0.00)[] X-Rspamd-Queue-Id: 4bLpZS4YSYz4GWp X-Spamd-Bar: - This is a cryptographically signed message in MIME format. --------------ms080703050309070505040206 Content-Type: multipart/alternative; boundary="------------3H139n7VtK4cxaHAoJOZHh9g" --------------3H139n7VtK4cxaHAoJOZHh9g Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 SGVyZSdzIHRoZSBzY2VuYXJpbzogL1lvdSBoYXZlIGFuIGVtYmVkZGVkIHN5c3RlbSB0aGF0 IGJvb3RzIEVGSS7CoCBZb3UgDQpjYW4ndCBjb250cm9sIG90aGVyIHRoYW4gdGhlIG1lZGlh IHRoYXQncyBpbiB0aGUgYm94IHRoYXQgaXQgYm9vdHMgZnJvbSANCih3aGljaCBzb21lb25l IHN0aWNrcyBpbiB0aGVyZS4pwqAgVGhlcmUgbWlnaHQgYmUgb3RoZXIgbWVkaWEgaW4gdGhl cmUsIA0KYW5kIHRoZXJlIG1pZ2h0IG5vdC4vDQoNClJpZ2h0IG5vdyB0aGUgRnJlZUJTRCBF RkkgbG9hZGVyIHdpbGwgYm9vdCBmcm9tIHRoZSBmaXJzdCBib290YWJsZSANCiJ0aGluZyIg aXQgZmluZHMgdW5sZXNzIHRvbGQgb3RoZXJ3aXNlIChlLmcuICJyb290ZGV2PSIpDQoNClRo ZSBwcm9ibGVtIGlzIHRoYXQgaXQgd2FudHMgc29tZXRoaW5nIGxpa2UgInJvb3RkZXY9ZGlz azBzMWEiIC0tIGEgZnVsbCANCnNwZWNpZmljYXRpb24uDQoNCkJ1dCB3aGF0IGhhcHBlbnMg aWYgc29tZW9uZSBzdGlja3MgYW5vdGhlciBkZXZpY2UgaW4gdGhlcmUgL2FuZCB0aGUgRUZJ IA0KQklPUyBlbnVtZXJhdGVzIGl0IGZpcnN0Py/CoCBJdHMgbm90IGJvb3RhYmxlIChkb2Vz bid0IGhhdmUgYW4gRUZJIA0KcGFydGl0aW9uKSBzbyB0aGUgQklPUyBkb2Vzbid0IHRyeSB0 byBib290IGl0LCBidXQgaXQgL2RvZXMgL2VudW1lcmF0ZSANCml0IHNvIG5vdyB0aGUgZGlz ayBpcyAiZGlzazFzMWEiIC0tIGFuZCBpZiB5b3Ugc2V0IGRpc2swIHlvdSBhcmUgbm93IA0K c3R1Y2sgYXQgdGhlIGxvYWRlciBwcm9tcHQuDQoNCldoaWNoIGlzIG9rIGlmIHRoZXJlJ3Mg YSBjb25zb2xlIHlvdSBjYW4ga2V5IGluIHdoZXJlIHRvIGJvb3QgZnJvbSBhbmQgDQp0aGVu IGZpeCBsb2FkZXIuY29uZi7CoCBJZiB0aGUgbWFjaGluZSBpcyBoZWFkbGVzcy4uLi4uDQoN CklmIGxvYWRlci5lZmkgY291bGQgdGFrZSBhIHN5bnRheCAvd2l0aG91dCAvdGhlIGRpc2sg KGUuZy4gInMxYSIpIGFuZCwgDQppZiB0aGF0IHdhcyB3aGF0IHdhcyBzcGVjaWZpZWQgL2l0 IHdvdWxkIGxvb2sgb24gdGhlIGRldmljZSBsb2FkZXIuZWZpIA0Kd2FzIGxvYWRlZCBmcm9t IC90aGVuIGl0IHdvdWxkbid0IG1hdHRlciBpZiBzb21lb25lIGRpZCB0aGlzLsKgIE9uY2Ug dGhlIA0Ka2VybmVsIGlzIGxvYWRlZCBpdCBzaG91bGQgYmUgb2suDQoNCllvdSdkIHRoaW5r IHlvdSBjb3VsZCBkZXRlY3QgdGhpcyB3aXRoIGVpdGhlciBlZmlib290bWdyICh3aGF0IG9y ZGVyIA0Kd2lsbCBpdCBlbnVtZXJhdGUgaW4/KSBvciBmcm9tIHN5c2N0bCB0byBmaWd1cmUg b3V0IHdoZXJlIGl0IGJvb3RlZCANCmZyb20sIGJ1dCBub3BlIC0tIHdoYXQncyBpbiB0aGVy ZSBtYXkgbm90IG1hdGNoIGhvdyB0aGUgQklPUyBlbnVtZXJhdGVkIA0KaXQsIG5ldmVyIG1p bmQgdGhhdCBzb21lb25lIGNvdWxkIHVucGx1ZyBhIFVTQiBkZXZpY2UgKG9yIHB1bGwgYW4g blZNRSANCnN0aWNrKSBhbmQgY2hhbmdlIGl0LsKgIEkndmUgZ290IGEgbWFjaGluZSBoZXJl IHRoYXQgZGVtb25zdHJhdGVzIHRoaXM7IA0KaXQgU0FZUyBpdCBsb2FkZWQgb2ZmIGRpc2sw IGJ1dCB0aGUgQklPUyBzYXlzIHRoZSBib290IGRldmljZSBpcyBkaXNrMSANCmFuZCBpZiBJ IHB1dCBkaXNrMC4uLi4gaW4gbG9hZGVyLmNvbmYgaXQgdHJpZXMgdG8gYm9vdCB0aGUgblZN RSBkZXZpY2UgDQppbnN0ZWFkIG9mIHRoZSBVU0Igc3RpY2suDQoNCkEgbWluaW1hbCB3YXkg d291bGQgYmUgdG8gYmUgYWJsZSB0byBkaXNjZXJuIHdoYXQgdGhlIEJJT1Mgc2F3IGFzIHRo ZSANCmVudW1lcmF0ZWQgZGV2aWNlIGl0IGxvYWRlZCBmcm9tLCBidXQgZXZlbiBiZXR0ZXIs IEkgdGhpbmssIHdvdWxkIGJlIHRvIA0KYmUgYWJsZSB0byBzcGVjaWZ5IGp1c3QgdGhlIHBh cnRpdGlvbiBhbmQgc2xpY2UvZmlsZXN5c3RlbSBhbmQgaGF2ZSB0aGUgDQpkcml2ZSBkZWZh dWx0IHRvICJ3aGVyZSBsb2FkZXIuZWZpIGNhbWUgZnJvbSIgd2hpY2gsIEkgc3VzcGVjdCwg d291bGQgDQpyZXNvbHZlIGJvdGggcG9zc2liaWxpdGllcy4gT2J2aW91c2x5IGlmIHRoZSBC SU9TIGVudW1lcmF0ZXMgc29tZXRoaW5nIA0KdGhhdCBoYXMgYSB2YWxpZCBFRkkgcGFydGl0 aW9uIGl0IGNhbiBzdGlsbCBnZXQgaXQgd3JvbmcgYnV0IGlmIG5vdCB0aGF0IA0Kc2hvdWxk IHdvcmsgLS0geWVzPw0KDQpBbSBJIG51dHM/IDotKQ0KDQpQUzogSSd2ZSBnb3QgemVybyBl eHBlcmllbmNlIHdpdGggbHVhIGFzIGEgbGFuZ3VhZ2Ugc28gaWYgSSBzdGFydCANCmRpZ2dp bmcgaW50byB0aGlzIHRoZSBsZWFybmluZyBjdXJ2ZSBtaWdodCBiZSBwcmV0dHkgc3RlZXAg d2hlcmUgZm9yIA0Kc29tZW9uZSB3aG8ncyBjb2RlZCBpbiBsdWEgaXQgbWlnaHQgYmUgZml2 ZSBtaW51dGVzLi4uLi4gdW5sZXNzIEknbSANCndpbGRseSBvZmYtYmFzZSBoZXJlLg0KDQot LSANCkthcmwgRGVubmluZ2VyDQprYXJsQGRlbm5pbmdlci5uZXQNCi9UaGUgTWFya2V0IFRp Y2tlci8NCi9bUy9NSU1FIGVuY3J5cHRlZCBlbWFpbCBwcmVmZXJyZWRdLw0K --------------3H139n7VtK4cxaHAoJOZHh9g Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Here's the scenario: You have an embedded system that boots EFI.=C2=A0 You can't control other than the media that's in the b= ox that it boots from (which someone sticks in there.)=C2=A0 There m= ight be other media in there, and there might not.

Right now the FreeBSD EFI loader will boot from the first bootable "thing" it finds unless told otherwise (e.g. "rootdev=3D")=

The problem is that it wants something like "rootdev=3Ddisk0s1a" -= - a full specification.

But what happens if someone sticks another device in there and the EFI BIOS enumerates it first?=C2=A0 Its not bootable (doe= sn't have an EFI partition) so the BIOS doesn't try to boot it, but it does enumerate it so now the disk is "disk1s1a" -- and if you set disk0 you are now stuck at the loader prompt.

Which is ok if there's a console you can key in where to boot from and then fix loader.conf.=C2=A0 If the machine is headless....= =2E

If loader.efi could take a syntax without the disk (e.g. "s1a") and, if that was what was specified it would look on the device loader.efi was loaded from then it wouldn't matter if someone did this.=C2=A0 Once the kernel is loaded it shou= ld be ok.

You'd think you could detect this with either efibootmgr (what order will it enumerate in?) or from sysctl to figure out where it booted from, but nope -- what's in there may not match how the BIOS enumerated it, never mind that someone could unplug a USB device (or pull an nVME stick) and change it.=C2=A0 I've got a mach= ine here that demonstrates this; it SAYS it loaded off disk0 but the BIOS says the boot device is disk1 and if I put disk0.... in loader.conf it tries to boot the nVME device instead of the USB stick.

A minimal way would be to be able to discern what the BIOS saw as the enumerated device it loaded from, but even better, I think, would be to be able to specify just the partition and slice/filesystem and have the drive default to "where loader.efi came from" which, I suspect, would resolve both possibilities.=C2=A0= Obviously if the BIOS enumerates something that has a valid EFI partition it can still get it wrong but if not that should work -- yes?

Am I nuts? :-)

PS: I've got zero experience with lua as a language so if I start digging into this the learning curve might be pretty steep where for someone who's coded in lua it might be five minutes..... unless I'm wildly off-base here.

--
Karl Denninger
karl@denninger.net
The Market Ticker
[S/MIME encrypted email preferred]<= /div> --------------3H139n7VtK4cxaHAoJOZHh9g-- --------------ms080703050309070505040206 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC C4owggWZMIIDgaADAgECAhRZU8dKdMneRI1Vq5kv0k54Q5rQuDANBgkqhkiG9w0BAQsFADB2 MQswCQYDVQQGEwJVUzESMBAGA1UECAwJVGVubmVzc2VlMRYwFAYDVQQKDA1EZW5uaW5nZXIu TmV0MRcwFQYDVQQDDA5EZW5uaW5nZXIgUm9vdDEiMCAGCSqGSIb3DQEJARYTYWRtaW5AZGVu bmluZ2VyLm5ldDAeFw0yNDA1MDkyMTA4MDNaFw00NDA1MDQyMTA4MDNaMF0xCzAJBgNVBAYT AlVTMRIwEAYDVQQIDAlUZW5uZXNzZWUxFjAUBgNVBAoMDURlbm5pbmdlci5uZXQxIjAgBgNV BAMMGURlbm5pbmdlci5OZXQgU2lnbmluZyBJbnQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw ggEKAoIBAQDbR0tSiuLG5HPfo+cWtdeYQ8jc8Bjfuo0GTcNRT0glHnH1apUtInIktUknEZDH ohahInN+mMBdKg54FCHOiYZrJbyxBIo9FwX7hRmOc+spxmSYWnOd2E/YcGInMK4ZpjPzldzB Yt1n3zygkhx2bssxTJS3x4nv1qAXfLSZd1VwqoQufifEoPyTtymkkvHLv86vLgqAqooM/cXc 4LSIQ5u2uM308n42r8RkKtp7X1v9fJW8oRZN2XnFZtiUPH44YY2rHqyN2Hea9Y3+TXbldXjo xhPHTA+JYVFq8KTmbQBqU7YcMhlIG0cSxPeFLMxnP6pqPcIVTAlK+a6YGRFppfjZAgMBAAGj ggE2MIIBMjAdBgNVHQ4EFgQUH+VuxXhBxaJAQrvDekwkH91hBi4wgbMGA1UdIwSBqzCBqIAU RFYC4p6L6KITnEvrpx2cyt+PcMmheqR4MHYxCzAJBgNVBAYTAlVTMRIwEAYDVQQIDAlUZW5u ZXNzZWUxFjAUBgNVBAoMDURlbm5pbmdlci5OZXQxFzAVBgNVBAMMDkRlbm5pbmdlciBSb290 MSIwIAYJKoZIhvcNAQkBFhNhZG1pbkBkZW5uaW5nZXIubmV0ghQZE7NBItWtQsCouuwU6jZ+ HPPwnjAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjA6BgNVHR8EMzAxMC+gLaAr hilodHRwOi8vd3d3LmRlbm5pbmdlci5uZXQvcm9vdC1yZXZva2VkLmNybDANBgkqhkiG9w0B AQsFAAOCAgEAfFbhPc82AfhyUqONs7IccYD36w+OP4nQgwfC4IWf3y/aQAZ2Zk6IITzYqwf7 PFM0bJRT3zi7xyetolqHDhfMJvnOQWpITZiyM/FSKwIvuBsy/uJUqPuqui4XQMYoSbAA1qmI MW/z7VZZHwaRFoeWE40UirYcf0fNcooBZ72bmd+iBaVyjtZvky0Vgcz0eC6e6LR5kNb23yC6 TkyQIlGyQkK5/afXUYFzk49rOHVbVyxW3oXRfq8Ow6HCrpDGAS8p84S04MFwBVAUfbe4aXs3 bampaI2LzKgkVywyFP14LSvvdjCfLYfnLy1Z9hm2EHMqNHA2tCGdRhWp2d7aZC1MYFqng0ZS fjPJjqHrI1qPU0p6k9A1GxAtrQlL2v/IUzUnMZkiawFV3qlxMGZf/kTYTUOcJhx1KU4zSLHu 80qO7ldRpp5gHssCAGFbeTu2gp6LxfmaFhLPDBJ1VGfdPx9lUrU/9OcoHczcl5x2Rb8IUZyX 9elzP5WdAU8p5R/DLlOAq24VcabhFtYBCA2dOESLupSfWKNQuJCN/1gz7ysSc+mjnnPV77IO mpszJfkFFJEDNJlGIVKX1vwwygtC/9Ulox8frgbZlRAYAgDc/YbOBFxticVVre0Y3Ujx6Kzb tkgZRlgfdZWbT1W5smncqJxg5qAL8e/yTb3fCe2nJ0jhiP4wggXpMIIE0aADAgECAhMAmNFt CiCF3j+FwQLYtBTmGjzkMA0GCSqGSIb3DQEBCwUAMF0xCzAJBgNVBAYTAlVTMRIwEAYDVQQI DAlUZW5uZXNzZWUxFjAUBgNVBAoMDURlbm5pbmdlci5uZXQxIjAgBgNVBAMMGURlbm5pbmdl ci5OZXQgU2lnbmluZyBJbnQwHhcNMjQwNTEwMTkyNjU5WhcNMjkwNTA5MTkyNjU5WjBXMQsw CQYDVQQGEwJVUzESMBAGA1UECAwJVGVubmVzc2VlMRcwFQYDVQQKDA5LYXJsIERlbm5pbmdl cjEbMBkGA1UEAwwSa2FybEBkZW5uaW5nZXIubmV0MIICIjANBgkqhkiG9w0BAQEFAAOCAg8A MIICCgKCAgEAvh1UssVbSYctzobPjwBkbjv/w4WvQNepeRTwE6+sLnXvc41+X9pa5EclPL4Q l02Vu1m71mSqXGfK9HbWZoivbhefBHOoYb35MSc24PelhwcORbpneWoWc7giQ7QgFlvEe/yj fs8M0H9fgdzFS5m2lwBQbis8kioSjHB2yt/8I1GE4Mvt1Cur9kga6ML5FAQvo8TYN1stdhrE 13FEv/BWCF4FVT4H2Wa2ySW+R1jkKb74SC6Twg98bGCRTShD5bVylh0+0LXNhzaopIDcI/KK jm/j3mRjIlmqbGrSpvJsbjjhjhAYQKE1U8FB5TDU4OkFAibblhQit/KjgspPR2o/vOpVFPER uhZEV1oDGzUJtZlkREIcN2sYBi0p7Y4585ya+b7L10mEenPlyi3eSkGXEuiy/BR2DY6lShwW DPoQ5602TKmttCSwBdWGoLrQ4jEVEVNt4lku2wPbTHF3KpHJU0g7RbcWoUYn10SOxKathkir hF3v9U32+QhPELGwqRrH0sL9rWf0qalRtPDHUYl8TebZmYkFqNeSMlqHijl5f4SsQPSj7gx5 4F19Ntm9ZcvuWTmW8QQGWTKHeMuG+BYkVIUSPe6/ZQsbD/xDx7rkyGfNgWIa4W7Wm/B7kaNq H53tk3wFmNgZQOxMTPF0oTHfW0T2azU6JD0D1AlgoAnSAE0CAwEAAaOCAaYwggGiMDoGCCsG AQUFBwEBBC4wLDAqBggrBgEFBQcwAYYeaHR0cDovL29jc3AuZGVubmluZ2VyLm5ldDo3Nzc3 MAwGA1UdEwEB/wQCMAAwDgYDVR0PAQH/BAQDAgXgMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggr BgEFBQcDBDAzBglghkgBhvhCAQ0EJhYkT3BlblNTTCBHZW5lcmF0ZWQgQ2xpZW50IENlcnRp ZmljYXRlMB0GA1UdDgQWBBSxJZjVnlYLAT3uzvDYgc4742J6UTCBswYDVR0jBIGrMIGogBQf 5W7FeEHFokBCu8N6TCQf3WEGLqF6pHgwdjELMAkGA1UEBhMCVVMxEjAQBgNVBAgMCVRlbm5l c3NlZTEWMBQGA1UECgwNRGVubmluZ2VyLk5ldDEXMBUGA1UEAwwORGVubmluZ2VyIFJvb3Qx IjAgBgkqhkiG9w0BCQEWE2FkbWluQGRlbm5pbmdlci5uZXSCFFlTx0p0yd5EjVWrmS/STnhD mtC4MB0GA1UdEQQWMBSBEmthcmxAZGVubmluZ2VyLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEA TrQ45/tBN3SiuqItFv/V+CF3h7Hxe0YLsL+A/P+q9ZhxIscaNjaclgQhPA+rUr+l8DGoXJ/w yAl1E0SSBK+9phIc/9xFOBg3rCy4ngubzP+lHS1t03nMCBSUNsu5qPzqLBPiKaPabUu3Gr9o koRezSszgM3/zNJfr8cMO93csCK/fBccsMx5q+3nxB5XeT7UciicjfEzUA4m2mQxBmGk9SSU 147Gy8UmdSq57Tw82KqUrQ1pJ6IOzVPLREpwlqGbHykSU3MwtPYPtfQeFVjvO/XcWvoFQjbV UyhzAqMMYFudxoVLlJQiAgU38OScTLDgKxCO41h7VOjb2mss0zHndzGCBZUwggWRAgEBMHQw XTELMAkGA1UEBhMCVVMxEjAQBgNVBAgMCVRlbm5lc3NlZTEWMBQGA1UECgwNRGVubmluZ2Vy Lm5ldDEiMCAGA1UEAwwZRGVubmluZ2VyLk5ldCBTaWduaW5nIEludAITAJjRbQoghd4/hcEC 2LQU5ho85DANBglghkgBZQMEAgMFAKCCAvIwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAc BgkqhkiG9w0BCQUxDxcNMjUwNjE3MDEwNTEzWjBPBgkqhkiG9w0BCQQxQgRA7MD7NgANXtU5 X+M0Tl92hnISAZE9glzwf6yuQB9+gFULekFFk8Kt87LemCsTsKu0gDcEvZmAs3NGC1zevuoT 8TCBgwYJKwYBBAGCNxAEMXYwdDBdMQswCQYDVQQGEwJVUzESMBAGA1UECAwJVGVubmVzc2Vl MRYwFAYDVQQKDA1EZW5uaW5nZXIubmV0MSIwIAYDVQQDDBlEZW5uaW5nZXIuTmV0IFNpZ25p bmcgSW50AhMAmNFtCiCF3j+FwQLYtBTmGjzkMIGFBgsqhkiG9w0BCRACCzF2oHQwXTELMAkG A1UEBhMCVVMxEjAQBgNVBAgMCVRlbm5lc3NlZTEWMBQGA1UECgwNRGVubmluZ2VyLm5ldDEi MCAGA1UEAwwZRGVubmluZ2VyLk5ldCBTaWduaW5nIEludAITAJjRbQoghd4/hcEC2LQU5ho8 5DCCAVcGCSqGSIb3DQEJDzGCAUgwggFEMAsGCWCGSAFlAwQBKjALBglghkgBZQMEAQIwCgYI KoZIhvcNAwcwDQYIKoZIhvcNAwICAQUwDQYIKoZIhvcNAwICAQUwBwYFKw4DAgcwDQYIKoZI hvcNAwICAQUwBwYFKw4DAhowCwYJYIZIAWUDBAIBMAsGCWCGSAFlAwQCAjALBglghkgBZQME AgMwCwYJYIZIAWUDBAIEMAsGCWCGSAFlAwQCBzALBglghkgBZQMEAggwCwYJYIZIAWUDBAIJ MAsGCWCGSAFlAwQCCjALBgkqhkiG9w0BAQEwCwYJK4EFEIZIPwACMAgGBiuBBAELADAIBgYr gQQBCwEwCAYGK4EEAQsCMAgGBiuBBAELAzALBgkrgQUQhkg/AAMwCAYGK4EEAQ4AMAgGBiuB BAEOATAIBgYrgQQBDgIwCAYGK4EEAQ4DMA0GCSqGSIb3DQEBAQUABIICAJwZMr5GYfB0Qzre j4RAvgDbMPW8YPOrolkSo/Je42NiCpxW2UBaRL2+JHbdPQ1cCcSBYEhoAZfMY4LJzf1NF12O 5S0xNxNGc+nT4f4qVUILaEnS3ddmnMSM3Q/f2WL/uaj/MXY0i6bCvroRRNdJ9k7x/yo4J/8T C9qii7WRvg/qAeOs5qLDmVk2/RFJIHopMcNXGOH1dOoXZeJWCp5h/+cBhRhdIqXsztbUWI9k 37ummW1rndIMHadE788Cp61eNaf96tceRsV3r699/SmB9RUDq8JKuD19aKFhuSfZK+GdLj50 I+Cx7YvVVmD0nqQ1GkusZGEZdEW+pUg9QU9fEUwsbEHiB5kZOnkFr+d3zcTP8VFxmM0yZMc9 wITDprC452KcIY7NcTT4cL07WbwuGYBQhrbDRr4MfLCay5atWgMhbwBKRCQe7CMlVUeZiwkM xiN+AvWohAd0idJjJCI+EbVCvDG41Ch1Kzqbw1N5AAxETpHVbwLbJr0zd4We8m3gsrwQ8sqx tv+izuSo0LhDL35U1WEZIg+sht+XyxvVJ7LQFAN4Mtt8cVaowfqwgl3D/Nb3jwP8ybJgxMsB fIoKEER5iSfsqb1EyKQzmAE8XclQRVlT0qdUTVqYUh2Db4EE8g1RjxVO+7Lf59iMMQmcGKx8 9c5YaBj+LE1T1yXbksMKAAAAAAAA --------------ms080703050309070505040206-- From nobody Tue Jun 17 06:02:08 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLx9K3LB2z5ptF1 for ; Tue, 17 Jun 2025 06:02:29 +0000 (UTC) (envelope-from borjam@sarenet.es) Received: from cu01176b.smtpx.saremail.com (cu01176b.smtpx.saremail.com [195.16.151.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLx9J1cQRz47qS for ; Tue, 17 Jun 2025 06:02:28 +0000 (UTC) (envelope-from borjam@sarenet.es) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sarenet.es header.s=saremail header.b=o9Ds3w3F; spf=pass (mx1.freebsd.org: domain of borjam@sarenet.es designates 195.16.151.151 as permitted sender) smtp.mailfrom=borjam@sarenet.es; dmarc=pass (policy=reject) header.from=sarenet.es Received: from localhost (unknown [194.30.0.17]) by sieve-smtp-backend01.sarenet.es (Postfix) with ESMTP id 2B7DD60C45C; Tue, 17 Jun 2025 08:02:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sarenet.es; h= x-mailer:references:message-id:date:date:in-reply-to:from:from :subject:subject:mime-version:content-type:content-type:received :received:received:received; s=saremail; t=1750140140; bh=uJxrtR NSgHe71mqSKgRkLg/KayEFXYUH1jv1J64Flec=; b=o9Ds3w3Fz5AkpdAhM1bis2 1IYg/MZwndecM164AcCum9ZXU0af5K9fMu4/yk7xVXn5YQBCsGweSE03Af0VbF1U 0o7aMdyLE6686AGbwNqHlh2jJInUIOAhZHjklqhhB9z7Uw3srQ/Tdhkb/ECvo2n7 hpnNYIRLfW4gW3H59yDk8XZ41Y24d+4xp3y9s7M4oU03aWXwZ3WhocdJy3z9B8yX 8gdFJNEhup9KtOaG0eENBFH2yFYnh5bL5/Z6DKWqPchLogscQetWA2NC7gn3fF1Z cKC/QpPeCviQnFk1LKEEfUXRMh8emyb0L8NxQzfxOLEpE8WzaIEe7myRNf0zpl6w == Received: from sieve-smtp-backend01.sarenet.es ([194.30.0.65]) by localhost (dkim-disclaimer01.saremail.com [194.30.0.17]) (amavisd-new, port 10024) with ESMTP id mas6TDxk71S1; Tue, 17 Jun 2025 08:02:20 +0200 (CEST) Received: from localhost (unknown [194.30.0.17]) by sieve-smtp-backend01.sarenet.es (Postfix) with ESMTP id 18FCA60C412; Tue, 17 Jun 2025 08:02:20 +0200 (CEST) X-Amavis-Modified: Mail body modified (using disclaimer) - dkim-disclaimer01.saremail.com Received: from sieve-smtp-backend01.sarenet.es ([194.30.0.65]) by localhost (dkim-disclaimer01.saremail.com [194.30.0.17]) (amavisd-new, port 10023) with ESMTP id B6HDhgmzvcJ8; Tue, 17 Jun 2025 08:02:20 +0200 (CEST) Received: from smtpclient.apple (unknown [192.148.167.11]) AUTENTIFICADOSAREMAIL by sieve-smtp-backend01.sarenet.es (Postfix) with ESMTPA id 6CEDC60C402; Tue, 17 Jun 2025 08:02:19 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_A79BC85D-B991-4436-845D-81EBE375351E"; protocol="application/pgp-signature"; micalg=pgp-sha256 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: [Thought experiment] Bringing swift into an experimental branch? From: Borja Marcos In-Reply-To: <20250617013743.3b5108f0@rimwks.local> Date: Tue, 17 Jun 2025 08:02:08 +0200 Cc: Jordan Hubbard , freebsd-hackers@freebsd.org Message-Id: <1632F5EA-8DFC-4764-96E4-E2633BA0C2FF@sarenet.es> References: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> <20250617013743.3b5108f0@rimwks.local> To: Rozhuk Ivan X-Mailer: Apple Mail (2.3826.600.51.1.1) X-dominio-dkim: sarenet.es X-rutado-saremail: smtp1176 X-Saremail-UUID: 20250617060219.6CEDC60C402@sieve-smtp-backend01.sarenet.es X-Spamd-Result: default: False [-2.50 / 15.00]; SIGNED_PGP(-2.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-0.96)[-0.962]; NEURAL_SPAM_MEDIUM(0.71)[0.707]; NEURAL_HAM_SHORT(-0.65)[-0.648]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[sarenet.es,reject]; R_DKIM_ALLOW(-0.20)[sarenet.es:s=saremail]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_SPF_ALLOW(-0.20)[+ip4:195.16.151.0/24]; RCVD_COUNT_FIVE(0.00)[5]; RCVD_TLS_LAST(0.00)[]; RECEIVED_HELO_LOCALHOST(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DWL_DNSWL_NONE(0.00)[sarenet.es:dkim]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org]; HAS_ATTACHMENT(0.00)[]; DKIM_TRACE(0.00)[sarenet.es:+]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TAGGED_RCPT(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[194.30.0.65:received]; ASN(0.00)[asn:3262, ipnet:195.16.128.0/19, country:ES]; RCPT_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4bLx9J1cQRz47qS X-Spamd-Bar: -- --Apple-Mail=_A79BC85D-B991-4436-845D-81EBE375351E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 17 Jun 2025, at 00:37, Rozhuk Ivan wrote: >=20 > No modern language required, even C++ is to complex to learn it. > C just works, like it work 30-40 years ago. > All can be done on C. Well, if counting bytes is your thing, yes, everything can be done in C. = The fact that using a systems programming=20 language for applications is a bad idea has been proven beyond doubt. = ;) The problem is language stability as Jordan pointed out. I remember I = said something similar about Rust. Borja. --Apple-Mail=_A79BC85D-B991-4436-845D-81EBE375351E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIzBAEBCAAdFiEEdI6tVWByWBsp6szjBQN24FMZr2gFAmhRBOAACgkQBQN24FMZ r2h24g/9FwEBteej8RBoO+nrznWfmhaY+RY0M7br1dpYI4LGIIqDjFkvNM047Ges Y5KBPwCJXUcG/z8/ovbNxsETXFMQkzWqgAoUWgWhwX4dWYJcEVYZE0ZU2YFQdMv1 WYcreRnO9Z9VX3BfR30XZr2pmkDOQE/VJohqGPJ729Wwp/oq1GAO3Bx4y/6+D/JR uUTPnvIbg4ZJ3G0Vs2dp4HWHU+01fI5qHS01jbHkXNqjSesnnTQqQt/ej911p+5p x7ZHjzL7Y4/NJ3tw2gcmYXsnj/lwI2TQ6zBuLwZtxQqvxujxevar4jJICSElj1/E ytBjL/TZkbXUD8vb56RD99/1ByNALOd7dv0N+8XbYvwja1oEE3fSPkGtuX1EDf/v tlWaSs5ZNm42gtk2sRGhgcNeaEwvCUFdy2+YTAYiSb/oBbs48o0QDlF1F1Oxgcfb fHPqPzegnSqo20uvJsYi1JN/ir2y6Bzm20Z1LrYaMoHlZ3Bh0GDStDpz0YN3t73o BqAl6wSxp4U31RchhJQ6NeRh8ub/KVOs9gHnbJgIQ5bhbN9WO4X+D2eV/xf30nq9 VO8uJ9QUpGuhAqExvGpx4ObY3EolhnHzOO/ydK0knrkefzgJln+nEhAHlqJzMbCO jQjFedF2LaAnU6ErPGAk03y1LTy6JU1yqfdp/9j1PKgJW8E+Pps= =H3Es -----END PGP SIGNATURE----- --Apple-Mail=_A79BC85D-B991-4436-845D-81EBE375351E-- From nobody Tue Jun 17 06:12:45 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLxPM5DNcz5pv1S for ; Tue, 17 Jun 2025 06:12:55 +0000 (UTC) (envelope-from paulf2718@gmail.com) Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLxPL6YW8z4GMw for ; Tue, 17 Jun 2025 06:12:54 +0000 (UTC) (envelope-from paulf2718@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=ICrwLWJU; spf=pass (mx1.freebsd.org: domain of paulf2718@gmail.com designates 2a00:1450:4864:20::330 as permitted sender) smtp.mailfrom=paulf2718@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-450cb2ddd46so29313075e9.2 for ; Mon, 16 Jun 2025 23:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750140767; x=1750745567; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=JcvSuCltIK0KJBljb8uZjdRSbgbFg5nIc8YBFXuA/vQ=; b=ICrwLWJUB5XF7XJpA0fylzun+TVXIsTHRniGNb0/NaUDxPJiccEjaWQwfgL+ang9cv LUbAHexnAOg/B3Lo6df+LbbKomI0YuYRzBrC1vEilRLiwkizY03q5B2m29K6gnasQGlE USw9RHw7BxwIpLZEdOsI1lJrOEGEyMByDX6jQgIhC1rAyYrb06Q2yQ7wqhl2BqB25ICY PsIgrbXowYmC6596+UCLqRmL7ej9x5FShcukBqQkJxUOUJ61lnschJnALN0THHBLApR+ 6Dl+syIi43j1I5Z94K/mqZ+JKkSqiGve7W0rrI8Zx3zim55IcS/2Rmd/qo7HcgAc6UMO v7Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750140767; x=1750745567; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JcvSuCltIK0KJBljb8uZjdRSbgbFg5nIc8YBFXuA/vQ=; b=frdrdiGmhC9lS3/ldYlF2QI4A6v+O0udDlxPhJNPWTLvGaPVLwkKj3Far7NFVxxCgk ZwGUHTL3f8BosbFt+S++cRdxvZ2WOoLqsuMh5S3B5rZQwX/TnuJFEWkQAnbISIl4CvDs sUl30RCvsbP8eO0wrcOJ8fK4QrzGYEnis4q90twLt/l7fGfBFJBzucw8lAZYHBp4PRuj q5hFWPWFG3na5GiAfInTTGurAWYm2zf6AM2z8FIOSXsUptl/VsHu8WRTGFQk0ugnwdSo 8/tOjg2PDWu53AclB0jDjXu5dOW7mFp8HlmooqeQoLCDmG0KiL5xzNUgGF25r6WSzc9O HZQw== X-Gm-Message-State: AOJu0Yycnqj71BciGH53DGD0WKi1nE7JrycLMn/LA9EfIpmzXHjPQ5SX 1U4DJxyt5HUgWxWWjjmOB2X8F6UM3HQQK9Q07G/qiwrZApH9ri5KvbZOArfTTA== X-Gm-Gg: ASbGncsyJpG/LfYHHjc3YpuRUyDj+kr/3tr2rUiztQyp6ucFM6VOR4ZQROtDA+Laanv asv1aI0k0HiMUOUCFbIXJibnMGg1QrXEBw51G9v5q35abPH+grGW+CgAvmFBM7J934vsG97Sc60 MX9wsiK4B8uHMi+Ra8853s9hOV9gR70ou37HklEQ4gNgmygmCOibqNCHD/DZIM02nPhanJS8B8q nNvx6QgvNNvos54ApF4mNnCj1pukULKvrQKRuktmskuKNlJzTRDv2c1v9yNB13LiANnJ4Au7dCK oFrNXYUPfeJHghYa70+VwjhPdcloLwZNR+KJYHMa5B2bMbAjr1SR5H4Ov/q/dwSeyjD7tNd8poL SXWRFfMAUFrUXnsJ913SZ4JzeLIchKPC7CecTxQdV5Q== X-Google-Smtp-Source: AGHT+IHv9KcnELY4bbH19DKVSdpgTfbfFZuEKzxp5VD8SW7KJIH8/oZnuEOXXSqIFXU1Fg3cG7qg3Q== X-Received: by 2002:a05:600c:1f94:b0:442:f956:53f9 with SMTP id 5b1f17b1804b1-4533caa6567mr120305675e9.18.1750140766944; Mon, 16 Jun 2025 23:12:46 -0700 (PDT) Received: from ?IPV6:2a01:cb15:8545:7700:3bc0:5e46:d4:38c0? ([2a01:cb15:8545:7700:3bc0:5e46:d4:38c0]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4532e176d30sm162496575e9.37.2025.06.16.23.12.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Jun 2025 23:12:46 -0700 (PDT) Message-ID: <7ced7b14-0508-42f0-b432-0c609a6245a7@gmail.com> Date: Tue, 17 Jun 2025 08:12:45 +0200 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [Thought experiment] Bringing swift into an experimental branch? To: freebsd-hackers@freebsd.org References: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> <20250617013743.3b5108f0@rimwks.local> Content-Language: en-US From: Paul Floyd In-Reply-To: <20250617013743.3b5108f0@rimwks.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [1.00 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_SPAM_LONG(0.98)[0.979]; NEURAL_HAM_SHORT(-0.98)[-0.978]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[gmail.com:+]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::330:from]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4bLxPL6YW8z4GMw X-Spamd-Bar: + On 17/06/2025 00:37, Rozhuk Ivan wrote: > > No modern language required, even C++ is to complex to learn it. > C just works, like it work 30-40 years ago. > All can be done on C. > > All modern today become unmodern in 5-10 years and it will require many > man power to support it. I don't think that "do nothing" is a viable option. Until Trump came with slash and burn libertarian anti-regulation ideology the world was heading to much stronger regulation for safety and security. C is simply a basket case. It is hopelessly inadequate for ANY safety or security mitigations. I don't believe that the C standard will add anything that will change that significantly - there are some proposals but my view is that either they don't go far enough or they won't be accepted. The advantage with these "complex" languages (specifically Rust but also other languages like Swift, Zig, Hylo and C++) is that either they already have builtin safety or they have enough "meta" that they can be extended to add safety. That said, there's a lot more to safety and security than just the code. Rewriting millions of code of unsafe C that has been hardened by decades of work to plaster over the CVEs is just going to lead to a rash of new exploits and crashes. A+ Paul From nobody Tue Jun 17 06:47:36 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bLy9Y39zHz5pwwr for ; Tue, 17 Jun 2025 06:47:45 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (hermod.delphij.net [192.234.79.157]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "anubis.delphij.net", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bLy9X4x00z3HlB for ; Tue, 17 Jun 2025 06:47:44 +0000 (UTC) (envelope-from delphij@delphij.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=delphij.net header.s=y07n header.b=MrWzwXda; dkim=pass header.d=delphij.net header.s=w44o header.b=an61uMrN; spf=pass (mx1.freebsd.org: domain of delphij@delphij.net designates 192.234.79.157 as permitted sender) smtp.mailfrom=delphij@delphij.net; dmarc=pass (policy=reject) header.from=delphij.net DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=delphij.net; i=@delphij.net; q=dns/txt; s=y07n; t=1750142857; h=message-id : date : mime-version : reply-to : subject : to : references : from : in-reply-to : content-type : from; bh=r/VzVzHUXFE0ZujOoJCARYqCGZKHyHXW3r+DjPwJaAo=; b=MrWzwXdaVl/TBcM/5eaFMr6owmbOs+/5gka1FEpo7V3IjhRGskXJXEBdB3fsET7EpwtVb 7T86Ge5JxLjgO+rBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=delphij.net; i=@delphij.net; q=dns/txt; s=w44o; t=1750142857; h=message-id : date : mime-version : reply-to : subject : to : references : from : in-reply-to : content-type : from; bh=r/VzVzHUXFE0ZujOoJCARYqCGZKHyHXW3r+DjPwJaAo=; b=an61uMrNiyOOebdUQaQGRuWO9o/ukl7z0NkQOhS/HNY3WTlFyZsWQ17RJb6spNKEKCf3Y 9zwzgVG8R4vrtAF9oixDGWZGkWXIegeEuLgnrHivKe3XaGVoPPmjbMDaW6oRuCkrzwzdg8v dlJDoRseK/6NCoD06cLFv4ImaecFhpU/jz4giS2RXaQNmzAZMwCHP9vKvIxNxh2fD6UWDV9 2TbZPekn5OMruqpfAL7W5kV/N4UYhmaO5icRhnDmM4AMn7v/nr0RMKWBB97W5npH1RT4fie DE3tvROgVjnVvrqEJSbSk4f2tS2OXJKy/FucK3tHWQkWZQJW11NyVCvcO/DA== Received: by anubis.delphij.net (Postfix) with ESMTPSA id 7B55954E0; Mon, 16 Jun 2025 23:47:37 -0700 (PDT) Message-ID: <9c7f2953-2fb3-4c36-977c-41aa7fd55c5c@delphij.net> Date: Mon, 16 Jun 2025 23:47:36 -0700 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: d@delphij.net Subject: Re: An idea for the EFI (LUA) loader.... To: freebsd-hackers@freebsd.org References: Content-Language: en-US From: Xin Li Autocrypt: addr=delphij@delphij.net; keydata= xjMEZPbDoRYJKwYBBAHaRw8BAQdAsUNmxEWz6QiGdFbBrVVEpjNpgQV9FXjDWsLsY0UwRPvN HFhpbiBMSSA8ZGVscGhpakBkZWxwaGlqLm5ldD7ClgQTFgoAPhYhBLskk2pXNatsapeNzxED 4uuXWeTFBQJk9sRMAhsDBQkKBDXmBQsJCAcDBRUKCQgLBRYCAwEAAh4FAheAAAoJEBED4uuX WeTF6yIA/2Ls3Rb/qC8mQZ6D2S0UO5vblPghJfboFJLNJFw3i4GYAQCsTmQg3ahgbNEJu/vU xgtro2kTxa6kKnZ35IbqPqPcCc44BGT2w6ESCisGAQQBl1UBBQEBB0Cxji+sQgVPajLNA/Lw yHx0ogSalPQszdkfVgeg3iR3FAMBCAfCeAQYFgoAIBYhBLskk2pXNatsapeNzxED4uuXWeTF BQJk9sOhAhsMAAoJEBED4uuXWeTF3BQBAIx/gPCTFN2DPBrKLkE3oC/+j9EkmNLMUCGidlP/ Zb6HAP4nL1kStTsOldIGhi/3m1LvU7r3Kel3MnlIK8/9BlLPAg== In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------qsi8XxYgbNe104zY0FRWls5a" X-Spamd-Result: default: False [-1.06 / 15.00]; SIGNED_PGP(-2.00)[]; MIME_BASE64_TEXT_BOGUS(1.00)[]; NEURAL_SPAM_MEDIUM(0.83)[0.826]; NEURAL_HAM_SHORT(-0.70)[-0.695]; NEURAL_SPAM_LONG(0.61)[0.609]; DMARC_POLICY_ALLOW(-0.50)[delphij.net,reject]; R_DKIM_ALLOW(-0.20)[delphij.net:s=y07n,delphij.net:s=w44o]; ONCE_RECEIVED(0.20)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; MIME_BASE64_TEXT(0.10)[]; REPLYTO_DOM_EQ_FROM_DOM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[delphij.net:+]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_TLS_ALL(0.00)[]; ASN(0.00)[asn:394144, ipnet:192.234.79.0/24, country:US]; RCVD_COUNT_ONE(0.00)[1]; FREEFALL_USER(0.00)[delphij]; REPLYTO_DOM_NEQ_TO_DOM(0.00)[]; HAS_REPLYTO(0.00)[d@delphij.net]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4bLy9X4x00z3HlB X-Spamd-Bar: - This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------qsi8XxYgbNe104zY0FRWls5a Content-Type: multipart/mixed; boundary="------------cBYoARcH1sTyRCwK906v0Ssp"; protected-headers="v1" From: Xin Li Reply-To: d@delphij.net To: freebsd-hackers@freebsd.org Message-ID: <9c7f2953-2fb3-4c36-977c-41aa7fd55c5c@delphij.net> Subject: Re: An idea for the EFI (LUA) loader.... References: In-Reply-To: Autocrypt-Gossip: addr=d@delphij.net; keydata= xsFNBFuSR4oBEACvvEgwRIHs6IcSP/yaDtySF78Ji3rP29qdiQsxhMsOtvtffdbS56VApIWO UFb3/iN2gA8HwLvrmjijN0HEoLVX7na1WARmxRYzQMtApsZIUTtx7hnUYlsi2F5odZa6CDW9 a954DLRzYxiUwYDcu5Zjl9bglK1H8e/N9uC0Vuigr4teWfh86brzOyf819QzwFVYfMIK4ihw QGwMvTzbyVuCFy+LENkmcVYni70oQy6rZ5ktSuYbuOFvu7inRRfhSWPHziV7k+bW88sJ7xhv lBlegcnhkSudWX2M8tZ3MO1PJOcyys0CJlsBY5Weiog2lIPi05h/E9pZ9mc1Vud17iqDaL6w RaggOUhuPfDGCdO5ro82W4BZGeQMRnRF5Ntk+t2ShIH4nn3xRLV0E5nziCiKlgiMqOrz/ZTL QTVbHrCuiwD+fSK14y0oHbkOLYTYLlgh1JbwfY2Ty7elOYiWzyeJ7sJh2dF91NSEneWIOys3 mBpuvtU3nSzzTvAB48VV+Nbg1CpIOgNlPjj7uhIum/Z/VjUaJEyaLpTIRh0MVJVcbP7hXSqZ NA35EEZZVnWEOYdycm4CmEdeNPWkrAf2Ya77iR5VLGypwMlsUMQPh+sKVWDD38M8stFGBBNm d01Hi74Bsq5hKan654dOqMt5eYklrVj0ucMzFQtus7oE502UswARAQABzRZYaW4gTEkgPGRA ZGVscGhpai5uZXQ+wsGUBBMBCgA+FiEEceNg5NEMZIki80nQQHl/fJX0g08FAluSSJkCGwMF CQmuhAAFCwkIBwMFFQoJCAsFFgIDAQACHgECF4AACgkQQHl/fJX0g0+Utg/9ED4Mw4K82Asp 3vYnVeziDlXOAif9EAhEpU989DUfk++p7BV6OOWLU1EwdpLBxqcz1kSNJmAbZWoiH3E3tYit 2jP304+lZ0vtEDhu8MFrCAaFCQmerDP2pLI784/rwT6yZPLvFHqqa9gWH41LILhev/L9pNE2 ygQ+fnU7pT5xp5/ebNnAwDrgbFdFLXZi5e1TWnbaEanKBKHoXwzm1C4ERDJSIVvUpuQsXsPa AObnEIwScagJFKZoEywCe9+CwA3cXOPYtBThZdduM7yIjXgwOn4k/EOpP2AqpzAE+kK7llxu rNhm8dw3Pf5mIehl4BKxsZGmxau2CSPe695gqG9hdeJSxQ4FXvnAMObhaioPQntrcEajSop0 jb8vOJat6ZHeSvzqsMxPkT4cEIF6njUepCNiGebVUn2SALqBsve9n4Ur1Y7fkRDyIld+hz/l sD8/lEeYjnr5ft43OT+Y38SV/g+EwXpyptlZOTV9mQWrj8cd1ROSBZber2BRMlLWzVfsmX1w fFUrBMo6tupflcfvvIRtQyu1A6CAJ9veRRispNJ1tjo0WFpKRA1ou5hX2gHs0EjusV1wrD+Y WQDf0QP1PZHwW8V21gOZ4p7n8kTe/7vEFsARLQ4Weq7g5Kn7/qApXzona6nbj9J+PWD4l8eA 4O8wPCXZE61M/JyZwsfLuB7OwU0EW5JHigEQANiBmIFAfRNH3nzYNWC0yC+tfx3zsUwAsH1V aBM/cTib+yKtbBOSIlXWjJZWX3MHwoI/1LeGghB2mxkkX1L0pJ/vj1eXNR+sFZ320pYcl61F xg/5fioG4QDTM4i3i7NR5PxDnc6UVaynSlII93DedRhZ1ROtdn4vyMgzsDiqhbL7BthDOt5K xjqdRk4qRPSw7BovEqZLOcG5IJtf/zZUzRbM7SBljEbOAfekDGx1Br+RrYSD7/EfPwwzou9T 8315IpBpIHyQF/dZNk3iFiB9Ed5CA71ZRYV5YoLWE9lL0j9kxOLQ5vHnX3mVq7QZBc7nzwZ6 UhQgYmrG5+RWvuiPpGwvDRIsugJUGXucYkAQh5kuNblmkwpv6u9rNMjCNbzAylOaqdogra5E W+RUSbRz0b4iIr8nnZeAlh7BihCe7JjOwbDjoBEEEtSfVc4hD/LENqpcYVrChphfaOLB9YIX hnVDTVvMc9OklWT/81HzAaDQqOQCzEfY92199Ct9/CwRoQ2OpO8TO5+8A7b9Nb33nmxMn09m b48ruRacMrfHxCWbgU4w9SEfbip4GcS5wGG6yTC+hw55Iwnnwus40NrJ0GEr8a4rcdsLbkvl yoNHB8ZGgyJ4aFCQ1V4qE1BnlTk7Z8BYBUkJM1odPSkVvHpCnMUjVpJ3hEOC+73ZYH1dh7lZ ABEBAAHCwXYEGAEKACACGwwWIQRx42Dk0QxkiSLzSdBAeX98lfSDTwUCZPl6RwAKCRBAeX98 lfSDT1iFEACK+s6CnjVbEXn5I1s6HptCeXiwYxkOfSzSRDAZZDNWzUxu/2dwl/55Wf9AdJsI It08WOoH405nHSvyp4enicRUyk6tNi4C52qtU7lK9ESpKN8MlICgSd4bdnPxxGFbZE7nDgfF LWSaDmEjLDBDBFN+Oi7dRrWX8LZxUvHrYdO9BiYWVtFJC+hTpdFQbefJ3gLvrZhiwmDPhPq/ IVPPe+IFWcRPnwvSVFAg/hSjNRyRA05MaW7PuEWzciiXhw2oENddyLihZVqJlka0L2ceoDe4 Mf9PpOOmk1z73i42RfQ1Farfyl9MuxzA4DIUEXro0gutao1FVIwGK5cXDOu1vsARSYJ2Qz4M xeOWnObadCJEDLIuQM3XYo9FbCr44dhnwFK8tXSkHBw8NUpVlFIbofcs10qf2ZwbCHKjgISh PtxN9oYM42lNjnhaXtxtaxQagnDv6ynnLaQ2nxfD4ZClr1qUOmC79d67joY+FWncKtqqxNym KaETklfpmBG15tysTQY2MHlfUq9UiROTz+xcvmLZq5q09B/QfOyAt28ugm3MK37xdkPCpUeQ XktNLVlta74Eysucda7PBgqICp2AmrVdq1uKk4kj6IxqG5X3SPeSouU8LWpQSHSrsWKOSMif 0mUVLlzzSNbp5P/y0bXs/7Muw2bPLfLiofmULRXlbXvuhQ== --------------cBYoARcH1sTyRCwK906v0Ssp Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 T24gMjAyNS0wNi0xNiAxODowNSwgS2FybCBEZW5uaW5nZXIgd3JvdGU6DQo+IFRoZSBwcm9i bGVtIGlzIHRoYXQgaXQgd2FudHMgc29tZXRoaW5nIGxpa2UgInJvb3RkZXY9ZGlzazBzMWEi IC0tIGEgZnVsbCANCj4gc3BlY2lmaWNhdGlvbi4NCg0KSWYgWkZTIGlzIGFuIG9wdGlvbiwg eW91IGNhbiBzYXkgc29tZXRoaW5nIGxpa2U6DQoNCnJvb3RkZXY9emZzOm15ZGV2aWNlLWJv b3QvUk9PVC9kZWZhdWx0Og0KY3VycmRldj16ZnM6bXlkZXZpY2UtYm9vdC9ST09UL2RlZmF1 bHQ6DQoNCmluIEVGSSdzIEZyZWVCU0QvbG9hZGVyLmVudjsgWkZTIGhhdmUgbXVjaCBiZXR0 ZXIgd2F5IHRvIGZpbmQgb3V0IHRoZSANCnJpZ2h0IGRldmljZSBhbmQgZG9lcyBub3QgcmVs eSBvbiBwcm9iZSBvcmRlci4NCg0KQ2hlZXJzLA0K --------------cBYoARcH1sTyRCwK906v0Ssp-- --------------qsi8XxYgbNe104zY0FRWls5a Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature.asc" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQS7JJNqVzWrbGqXjc8RA+Lrl1nkxQUCaFEPiAUDAAAAAAAKCRARA+Lrl1nkxf8M AQC3tb7IcRq0/l4ViONrxY+98hd+sw8lFeNQpVwD2m+05wEAgXsHAfPsoh4Ytp92LUrGEB7+uYNQ LYmaI6bqZiepaQE= =J8L+ -----END PGP SIGNATURE----- --------------qsi8XxYgbNe104zY0FRWls5a-- From nobody Tue Jun 17 08:21:51 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bM0Gb1JYVz5q489 for ; Tue, 17 Jun 2025 08:22:15 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from fout-a8-smtp.messagingengine.com (fout-a8-smtp.messagingengine.com [103.168.172.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bM0GZ5t52z45vR for ; Tue, 17 Jun 2025 08:22:14 +0000 (UTC) (envelope-from dch@skunkwerks.at) Authentication-Results: mx1.freebsd.org; none Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfout.phl.internal (Postfix) with ESMTP id 62E681380109; Tue, 17 Jun 2025 04:22:13 -0400 (EDT) Received: from phl-imap-16 ([10.202.2.88]) by phl-compute-02.internal (MEProxy); Tue, 17 Jun 2025 04:22:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skunkwerks.at; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm2; t=1750148533; x=1750234933; bh=lbK5K64RL2aNdu3pYnUdO2FpQ6AcTNMo Afq+znrDOqc=; b=ZHmnS6JqfRM3afkktkPnzaMt1cMjTen0+F4HuvZYA3EmtVPj ODdT33ehMsJLH7t7KcjEwzPcd9ntPOhJBaU5hQYoclZPY6KjusujqJbCi+qGeEX5 Rom3x+iO8oSgIvFdkcuwx9qtFkCgENDBzAEmINzqsrllU+jUD4l4+zGMxr4FY7vI H7lqd/mZ/WB+S0Yyb7xAPFGvDQwfsXl9SfjF/pGVWxSlqZwjo9gXa5oFrBg33xwn IDvhvUNk8Dd45qmT/3y+VGAzxgkbIDis1BhV8WfmwPFi8JJkcR7QMXMlY83WeZ11 sMpDhFcMryDdeIyuFR1zHIJS8dN4lhn/ayR2Bg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1750148533; x= 1750234933; bh=lbK5K64RL2aNdu3pYnUdO2FpQ6AcTNMoAfq+znrDOqc=; b=H paiyL21AMwFEGuwQUIeHQi523cUfPa74fgnfCzSSH/A9DgcOic4O5i8iQOd9aAW2 40k9qGlD4nFqHnmqIhY53Oc0DwCaWoZm4nUnn64zxhtvE1zIr72qaGwSLDhOAyhA 2lB/0F4VPbFbAvu/J0vJLMWQzsfCzIWY4/HTqXKTS+9K1qKrLxolN4bdLSOAguBd Oe466xKlOQ2r10dNh6VRFzUkkOHlMi/pm3hYxEqufIIp8VrjbPyygmF8DFWZxG0j zROfzdWerxSG7QGpX8MvX2R8g6rHp2uD3kI1XI51JXDI8+2aWblT5Q1ikdeU+wTV SvhzuPSlXRYSBnULj9Vug== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugddvkeekiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefoggffhffvvefkjghfufgtgfesthejredtredt tdenucfhrhhomhepfdffrghvvgcuvehothhtlhgvhhhusggvrhdfuceouggthhesshhkuh hnkhifvghrkhhsrdgrtheqnecuggftrfgrthhtvghrnhepleduleffhefggfeugefhjefh vdefuedtjedtfeefiefhhfeugfejvefhieeffefhnecuffhomhgrihhnpeihohhuthhusg gvrdgtohhmpdhfrhgvvggsshgurdhorhhgpdgsihguohhuihhllhhishhtvgdrtghomhen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegutghhse hskhhunhhkfigvrhhkshdrrghtpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhp ohhuthdprhgtphhtthhopehfrhgvvggsshguqdhhrggtkhgvrhhssehfrhgvvggsshgurd horhhgpdhrtghpthhtoheprghlvghkshgrnhguvghrvhhiohhlihhnsehgmhgrihhlrdgt ohhm X-ME-Proxy: Feedback-ID: ic0e84090:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 95ECC2CC0081; Tue, 17 Jun 2025 04:22:12 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 X-ThreadId: Tf8d5dd1176fac7b7 Date: Tue, 17 Jun 2025 08:21:51 +0000 From: "Dave Cottlehuber" To: "Alek Da man" Cc: "FreeBSD Hackers" Message-Id: In-Reply-To: References: Subject: Re: How to enter SOC Porting? Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4bM0GZ5t52z45vR X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:151847, ipnet:103.168.172.0/24, country:AU] On Mon, 16 Jun 2025, at 22:54, Alek Da man wrote: > Hi, > > I want to enter SOC Porting but upon asking have gotten very abstract > material and am still not able to understand how it is done. > > I'm in search of a material or guide with end to end "handholding" on > how it's done. Any recommendations? > > // > Alek Welcome Alek. manu@ did a great talk on porting to a new board about 6 years ago: - https://www.youtube.com/watch?v=YoB5NknHWbk - https://papers.freebsd.org/2018/bsdcan/vadot-FreeBSD_ARM32_ARM64_Porting_to_a_new_board.files/vadot-FreeBSD_ARM32_ARM64_Porting_to_a_new_board.pdf Some of his earlier work may also still be useful - https://www.youtube.com/watch?v=eWhPfW9HdyA - https://www.bidouilliste.com/blog/2015/11/27/Porting-FreeBSD-to-a-new-ARM-Board-Part-1/tweb There is a reasonably active IRC channel on EFnet, called #bsdmips good for a chat. A+ Dave From nobody Tue Jun 17 08:35:31 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bM0Xl0L7dz5q58Z for ; Tue, 17 Jun 2025 08:34:31 +0000 (UTC) (envelope-from anthony.pankov@yahoo.com) Received: from sonic306-19.consmr.mail.ir2.yahoo.com (sonic306-19.consmr.mail.ir2.yahoo.com [77.238.176.205]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bM0Xk691Jz3D1D for ; Tue, 17 Jun 2025 08:34:30 +0000 (UTC) (envelope-from anthony.pankov@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1750149264; bh=MuXFEUtyzdlUE5ItysVFrc7KIWNHgG1j/cgInekDZfw=; h=Date:From:To:CC:Subject:In-Reply-To:References:From:Subject:Reply-To; b=O5cKpf0SRTWddhenorCu2qxjYlltbf1pEO66/u2hVqm3W60wRK3DvLba99hwQhyEuX6YyNzYmVZdd7iXWqlv6EiTitAK6e5BmozWKPThG5UfG5wmmW3q0r1cmwkseqTcKRhFxEgBX1J41lQt4qdVgwr4tPYV5H0kHxbc6eTp/uWjQ8BVnn1cvWfUBdn68EXcpcb3K67yDwFFr6LCOKcJKu7pw9yHaQ5dDntEkSPvkx6xHH0FJIhLw4ViEjIT/5bQPvmuAutPAnTveCP7h5ujf2cOwE5KqCn2EkeFBN+N8Utq7o5Jm0pqpHiLaGdXDwme+2w0qSo0YIzb9YIAW9Ebjg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1750149264; bh=7nSpEJTqh+sIxxPaHUCkp7etw0JYm+hL5lJxzMlgZE3=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=kMAPA5Bse2d/oSXpavatEV0XPh3PVdLdv1EcP5QWTl+Bp/jDZuPAtSYp6lFzSZdEPKESMYiTvAVQSXT6jwhdXXrYW/wpS3ECIU4AY6flCHJzDaDNHZiq09C4SxdCjY5Q8fPYWxF++9XNztwQk4828PCmHlidLPL2cKT3NvBl4GfkR9iW5XP02DCnWYNPcNdpBc7WXGG2ewTpH4HDqtP8j/lTkv+w3oGpxITprS5lJvWBMSXyI/pXi8q4+RwLTCXk+uIDYy14wAb6VRXoKPOebT1ajj9LiQnKv0W5gkiXgPmuXRaIgG4ovy+1VFnDu3DrRpkY7PXwJHDRuK2CYhibWg== X-YMail-OSG: OMepbAgVM1nicPLoOMDhlsLmrCZT94VgiLBPDDuKgPUQ7HG9WjhaBrXMPVMrs_. .DZvC69RRCM16SjeTnRdMrba8lO1lXwCsfff7ve0w0HH9rq78LU2p62byxFLsHCnAmEqOJZI5X2K cjx6.CulG11jxZc7fuq1D7BSbuIE3X5lHS94gkNG2a5QjZoJQw6zdlfhU0DNiGMr_jEUVrcUm..b me9kqS4pq7f4BLU66.qv_ioCd2t2dbNr.W_39DVBlpG2ybenDTNuLQcwq_wNgKxhJHhDDRPl9P3A .mJEC3rqKjG.W0Cm9_AM3j.OFU8YL.H0Uzd_xOV92Ws99jsFpgO0ZYRHCrAtbg1kLuEMtKugqhf9 UHOSxliAmTWBEJ8LM7if1nYwnh9BCrU81M4sKNaJrm._6J7ti8wFdMpOpGhv8qo.OVJhJewju6b9 6CvfAXX5E4l1oOLaC5ikxjo9Xt4jEQhG0LzB6zelf2eGOfeRkmi4dhz2IxykUXnILgTmaZslMDKK 21.3TxzeN5Q9riHaWo15PnswGfYhVpygDx59jzJ.IP._.ada9Xk2G6YsZRRFXcta850W_vsCqbuU ozL2ZrIS_5vsqi3yPQIoEUNv5ZgTD3FoxHzNedYs9MnHSX0EyYWkGM_5RIvAIMiimenZUYSRUDor 2gJYrimP.SPEpHLRsPOLrjC0xdA.81P0r2ozw_MqV9XlV3juYSpbiCOhSPu8NnFmB8rPPcxnVGwx 9lAxaHG81HeE966.ALWAhZiIBxFF6lqrxv6_9jVcIqVIpg1w_RIjOlrT85F0wqOilx4GRPm3FxA6 jVN2LEtjgBrolCq6Khwav_N91vqd5vYFIR9QN3YM1hjW4yLPKSpz.Sp2XTttceSVSjN94WN13xkb KvD2mGWYw6XQlRIadglftFCN8DN9j.cl3DIftA7DitjT7zVIL3HjPSynGIOboSfp9Qb1K_3cPBte ig0NV9jWki8roMCI2kvt1l4AD6JJe9xG_27okdt_80YmQWOsAhVzqTVcWpGbjeGU2VMxi3lNSeWx MtCSGV1tf4MPmvrRUx4KltH2M78UZJV04wzCcXVTILP9AXdBiyw8q8sik2QwJDQj18Jp4RY7MeW_ ot_IaGkwQadFEllQVP1WF5JgeOeA7G9wG0rXQUBNwS06xUNFwDa7WCDUIOWYxIVJgzr7cVoChZMX XwyCEVuxJ7dWDf0c4zxkJDB83GwTndh.0YyaIEzf2C3bEoPWaHiIArMGeQt.W4VRoTF0BYEGVynZ mLa_VXgzwx9rOhGW.GJkVQYfsPw6ihkzu7UHwUuhxmS50Il9ecirGfQITZYZPzyAP_gMLQtSWds9 qJK5VCzTVa8.jXKQ2Elhq4OWzFhnbrOYHTZZZXILGEbq.FrlNHiTxSG_aQZ5FjrLCVXqO6MxDksE r.hxM7RRAmrWPR0TSnJloGYwlQYMX8qUUHwin1_uB7L2_M_tqHsu1NAhEBlfplGS3.9xqbWM.BpX WPw3mAcx5Zxm80SToCOB.xIYYwXYCdBM0JpU4bIRjFd8xIIT192qCb_cyyF7YtdFkdKIrxb2LLSg ZA0LjzckQZvXhxKy_YqoXIs.CogMI5dcsYGzRobRE8B9j2DeYaSNZ1TJGmnhR1YivnqYBi._.VZO t_lhZLgfm9i2bOYVINHUuwmCgezpupNj0c5K7j1gUOH4IOJHkUBUks.7wT5BiM4lwdl.i7u7bDo0 kilu1DDr20VRoi58ca0Zi6q6fHj6bgb9GizAh4kRXQa3QzE3Nw4LucbUyF.P1__Wp0Ye.s8e6oLQ 9lih6oPZbbj_xsBiyChwOzCJl5Ag0gCHmshnLnUR8cN9ostOcbQrqjd0RoHGUuLVeUF30ajkspvK HU4vUz.5pWLhALyzq8PgNDkm0sQefmAXG0c7ZudzRnz7d8vAr6qrjCyfsi.hEsQHJ6qR9YWEQ6eD OYCSkLRr70YlykHG1GdO8V0eZPIB2fNJPMDEU1EcI._wyk141MiRZ2Ldp9UhTqpPp32SPV6ghm.p kUNG00WS5AISfuouD9XoNMa0dTAdRg9VcorpGDKH9I4teQlDxpW59UhapntTWZWuO2s4Uew_12X2 B_VqFbH4G9LMnZO7TZnESNs9bsjqcJwBVNjtLvEn6zYqF4N5G9DiFx9evxWdo5Vf2Coj3EwDdVbH PFUJBVz_JJxmR8rDEt3cG3gogY5Ho0BjYdcwTIxotfdmXpID6Ki_1FSh9k7dfaq0eU_Zyhwu9Kdc JIZGsrx.C6nYRR78CKMSAl2PrVGoE7u4- X-Sonic-MF: X-Sonic-ID: 24d1d0a6-099d-4ca3-aa2f-fa2929f4075d Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ir2.yahoo.com with HTTP; Tue, 17 Jun 2025 08:34:24 +0000 Received: by hermes--production-ir2-858bd4ff7b-rsjdf (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID e42c586765251fbf0363eb7fd62e096f; Tue, 17 Jun 2025 08:34:21 +0000 (UTC) Date: Tue, 17 Jun 2025 11:35:31 +0300 From: Anthony Pankov Message-ID: <1065468664.20250617113531@yahoo.com> To: "Rodney W. Grimes" , Julian Elischer CC: freebsd-hackers@FreeBSD.org Subject: Re: [maybe spam] Re: A modern programming language for FreeBSD: Swift In-Reply-To: <202506162355.55GNtQDW021064@gndrsh.dnsmgr.net> References: <71d166d8-0a5b-4cb4-87c8-ee292b50e81b@freebsd.org> <202506162355.55GNtQDW021064@gndrsh.dnsmgr.net> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.24021 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-Rspamd-Queue-Id: 4bM0Xk691Jz3D1D X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:34010, ipnet:77.238.176.0/22, country:GB] Hello, I think that modern, "safe", hyped language with transpiler to C will have no objection to include to the src base. May be this is the way. https://github.com/dbohdan/compilers-targeting-c Tuesday, June 17, 2025, 2:55:26 AM, you wrote: >> On 6/14/25 10:06 PM, Konstantin Belousov wrote: >> > On Sat, Jun 14, 2025 at 01:06:40PM +0000, Jordan Gordeev wrote: >> >> * support for dynamic linking (incl. to libc for isolating generated code from changes to the userland?kernel interface) >> > What specifically do you mean there? >> > >> > Does swift run over the C runtime, or like Go, it implements its own >> > runtime directly interacting with kernel syscalls? >> >> I have a Basic to C converter on my BSD web page..? I haven't changed >> it for? a couple of decade or so but it did run last I looked.. Maybe >> we can use it to maintain FreeBSD in basic!?? Only takes a few >> millisecs to covert a CBASIC program to C.?? Lets go for a language >> that isn't "fashionable", but really has history! >> >> https://en.wikipedia.org/wiki/CBASIC > As much as I like the simplistic idea of BASIC, having first learned > it in 1969, I would rather if we must retrograde lets pick something > with a "bit" more "bit handling" like PL/1? > > https://www.ibm.com/docs/en/SSY2V3_5.1.0/com.ibm.ent.pl1.zos.doc/lrm.pdf -- Best regards, Anthony From nobody Tue Jun 17 10:18:13 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bM2s247dGz5y6Yx for ; Tue, 17 Jun 2025 10:18:46 +0000 (UTC) (envelope-from karl@denninger.net) Received: from colo1.denninger.net (colo1.denninger.net [104.236.120.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bM2s12wzyz3q37 for ; Tue, 17 Jun 2025 10:18:45 +0000 (UTC) (envelope-from karl@denninger.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of karl@denninger.net designates 104.236.120.189 as permitted sender) smtp.mailfrom=karl@denninger.net; dmarc=pass (policy=none) header.from=denninger.net Received: from denninger.net (unknown [162.81.131.136]) by colo1.denninger.net (Postfix) with ESMTP id A55CEB11E6 for ; Tue, 17 Jun 2025 06:18:15 -0400 (EDT) Received: from [192.168.10.15] (D5.Denninger.Net [192.168.10.15]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by denninger.net (Postfix) with ESMTPSA id D305E4C8CED for ; Tue, 17 Jun 2025 06:18:13 -0400 (EDT) Message-ID: <009e52a1-4d6f-42b6-905f-53fbf1c69065@denninger.net> Date: Tue, 17 Jun 2025 06:18:13 -0400 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: An idea for the EFI (LUA) loader.... To: freebsd-hackers@freebsd.org References: <9c7f2953-2fb3-4c36-977c-41aa7fd55c5c@delphij.net> Content-Language: en-US From: Karl Denninger In-Reply-To: <9c7f2953-2fb3-4c36-977c-41aa7fd55c5c@delphij.net> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-512; boundary="------------ms090108030709050302030509" X-Spamd-Result: default: False [-1.39 / 15.00]; SIGNED_SMIME(-2.00)[]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_MEDIUM(1.00)[0.999]; NEURAL_HAM_SHORT(-0.59)[-0.586]; DMARC_POLICY_ALLOW(-0.50)[denninger.net,none]; MIME_GOOD(-0.20)[multipart/signed,multipart/alternative,text/plain]; R_SPF_ALLOW(-0.20)[+mx:c]; MIME_BASE64_TEXT(0.10)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:14061, ipnet:104.236.64.0/18, country:US]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:~]; FREEFALL_USER(0.00)[karl]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; HAS_ATTACHMENT(0.00)[] X-Rspamd-Queue-Id: 4bM2s12wzyz3q37 X-Spamd-Bar: - This is a cryptographically signed message in MIME format. --------------ms090108030709050302030509 Content-Type: multipart/alternative; boundary="------------fm9IaQV9WvqMSEvu7IhmyZOY" --------------fm9IaQV9WvqMSEvu7IhmyZOY Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 DQpPbiA2LzE3LzIwMjUgMDI6NDcsIFhpbiBMaSB3cm90ZToNCj4gT24gMjAyNS0wNi0xNiAx ODowNSwgS2FybCBEZW5uaW5nZXIgd3JvdGU6DQo+PiBUaGUgcHJvYmxlbSBpcyB0aGF0IGl0 IHdhbnRzIHNvbWV0aGluZyBsaWtlICJyb290ZGV2PWRpc2swczFhIiAtLSBhIA0KPj4gZnVs bCBzcGVjaWZpY2F0aW9uLg0KPg0KPiBJZiBaRlMgaXMgYW4gb3B0aW9uLCB5b3UgY2FuIHNh eSBzb21ldGhpbmcgbGlrZToNCj4NCj4gcm9vdGRldj16ZnM6bXlkZXZpY2UtYm9vdC9ST09U L2RlZmF1bHQ6DQo+IGN1cnJkZXY9emZzOm15ZGV2aWNlLWJvb3QvUk9PVC9kZWZhdWx0Og0K Pg0KPiBpbiBFRkkncyBGcmVlQlNEL2xvYWRlci5lbnY7IFpGUyBoYXZlIG11Y2ggYmV0dGVy IHdheSB0byBmaW5kIG91dCB0aGUgDQo+IHJpZ2h0IGRldmljZSBhbmQgZG9lcyBub3QgcmVs eSBvbiBwcm9iZSBvcmRlci4NCj4NCkJ1dCBpdCBpc24ndC4NCg0KVGhpcyBpcyBhbiAic29y dC1vZi1lbWJlZGRlZCIgZW52aXJvbm1lbnQuwqAgVGhlIGdvYWwgaXMgIm9uZSBtZWRpYSB0 aGF0IA0KYm9vdHMgdGhlbSBhbGwsIHByb3ZpZGVkIHdlIGhhdmUgdGhlIGRyaXZlcnMgZm9y IHlvdXIgbmV0d29yayBjYXJkIGFuZCANCml0cyBhbiBBTUQgY29tcGF0aWJsZSBDUFUuIg0K DQpUaHVzIGl0IGhhcyB0byBib290IGluIHNvbWV0aGluZyBsaWtlIGEgcGNFbmdpbmVzIGFw dTIgKHdoaWNoIGhhcyBubyANCmlkZWEgd2hhdCBFRkkgaXMsIGFuZCB3b24ndCBib290IGEg R1BUIFVTQiBzdGljayBlaXRoZXIpIGFuZCBhbHNvIGJlIA0KYWJsZSB0byBiZSBzdHVjayBp bnRvIHNvbWV0aGluZyBsaWtlIGEgR01LVGVrICJjdWJlIFBDIiB3aGljaCBoYXMgbm8gQ1NN IA0KbW9kZSAoRUZJIGJvb3Qgb25seS4pwqAgSSdsbCBsaXZlIHdpdGggdGhlIGNvbnN0cmFp bnQgdGhhdCBhbnkgb3RoZXIgDQptZWRpYSBpbiBvciBjb25uZWN0ZWQgdG8gaXQgKGUuZy4g b24gYSBVU0IgaW50ZXJmYWNlLCBldGMpIGVpdGhlciBjYW4ndCANCmJlIGJvb3RhYmxlIE9S IHlvdSBoYXZlIHNldCB0aGUgYm9vdCBvcmRlciBpbiB0aGUgQklPUyBzbyB0aGUgc3RpY2sg DQp0aGF0J3MgcGx1Z2dlZCBpbiBpcyB0aGUgZmlyc3QgdG8gYmUgY29uc2lkZXJlZC4NCg0K SSBidWlsZCB0aGVzZSB1c2luZyAibmFub2JzZCIgc28gdGhleSdyZSBwb3dlci1mYWlsIHNh ZmUgYW5kIHRoZSANCmNhcGFiaWxpdHkgdG8gcHVsbCB0aGUgc3RpY2sgaW4gdGhlIGV2ZW50 IG9mIGEgaGFyZHdhcmUgZmFpbHVyZSwgc2hvdmUgDQppdCBpbnRvIHNvbWV0aGluZyBlbHNl IGFuZCB3aXRoIGEgZGUtbWluaW11cyBzZXQgb2YgZWRpdHMgKGUuZy4gIndoYXQgDQphcmUg dGhlIGV0aGVybmV0IGludGVyZmFjZXMgY2FsbGVkIikgaWYgZGlmZmVyZW50IChlLmcuIGln YiAudnMuIGl4KSBpdCANCndpbGwgY29tZSB1cCBhbmQgcnVuLg0KDQpUaGluayBlZGdlIGdh dGV3YXkvZmlyZXdhbGwgYXBwbGlhbmNlLg0KDQpJIHRlbmQgdG8gc3RpY2sgdGhlc2UgaW1h Z2VzIG91dCB3aGVyZSBhbnlvbmUgY2FuIGdyYWIgYW5kIHVzZSB0aGVtIHdpdGggDQphIGRl Y2VudCBzZXQgb2Ygc29mdHdhcmUgaW5jbHVkZWQgKGUuZy4gU3Ryb25nc3dhbiwgZXRjLik7 IEkgdXNlZCB0byANCmJ1aWxkIHRoZW0gZm9yIHRoZSBwY0VuZ2luZXMgaW50ZXJuYWwgc2Qg Y2FyZCBzbG90IHdoaWNoIGNhbWUgdXAgYXMgDQoibW1jc2QwIiBidXQgdGhvc2UgZ3V5cyBh cmUgZ29uZSwgdGhleSdyZSBub3QgZmFzdCBlbm91Z2ggdG8gc2F0dXJhdGUgYSANCmZ1bGwg Z2lnYWJpdCBjb25uZWN0aW9uIGFueXdheSBhbmQsIGFzIGl0IHR1cm5zIG91dCwgYmFzaWNh bGx5IA0KZXZlcnl0aGluZyB0b2RheSB3aGVuIGl0IGJvb3RzIEZyZWVCU0QgaWRlbnRpZmll cyBhIFVTQiBzdGljayBhcyBhICJkYSIgDQpkZXZpY2UsIHNvIGlmIGl0cyB0aGUgb25seSBz dG9yYWdlIGRldmljZSBvbiBVU0IgaXQgd2lsbCBjb21lIHVwIGFzIA0KImRhMCIgd2hpY2gg d29ya3MgbmljZWx5IChhbmQgcXVpdGUgY29uc2lzdGVudGx5KSBvbmNlIHRoZSBrZXJuZWwg aXMgDQpsb2FkZWQuwqAgVGhlIGdvYWwgaXMgIm9uZSBpbWFnZSB0aGF0IHdpbGwgYm9vdCBh bmQgcnVuIG9uIG1vc3QsIGZyb20gb2xkIA0KYW5kIGNydXN0eSB0byBuZXcgYW5kIHNoaW55 LiINCg0KVGhlIGtleSBlbGVtZW50IHRoYXQgZHJpdmVzIHRoZSByZXF1ZXN0IGlzIHRoYXQg bmFub2JzZCBhbGxvd3Mgb25saW5lIA0KdXBkYXRpbmcgLS0gdGhhdCBpcywgdGhlcmUgYXJl IHR3byBzeXN0ZW0gcGFydGl0aW9ucyBhbmQgeW91IGNhbiB1cGRhdGUgDQp0aGUgb25lIHRo YXQgaXNuJ3QgcnVubmluZyB3aXRoIGEgImRkIiBhbmQgdGhlbiByZWJvb3QgdG8gYWN0aXZh dGUgaXQuwqAgDQpJIHJlc29sdmVkIHRoZSBpc3N1ZSBvZiBsb3NpbmcgdGhlIGRhdGEgcGFy dGl0aW9uIGluIHRoZSBuYW5vYnNkIGJ1aWxkIA0KaWYgeW91IGhhdmUgRUZJIGFzIGFuIG9w dGlvbiBidXQgdGhhdCBsZWF2ZXMgbWUgd2l0aCB0aGlzIHdoaWNoIEkndmUgbm90IA0KYmVl biBzdWNjZXNzZnVsIHNvcnRpbmcgb3V0IHJlbGlhYmx5IHdpdGggdGhlIHRvb2xzIGF2YWls YWJsZS4NCg0KLS0gDQpLYXJsIERlbm5pbmdlcg0Ka2FybEBkZW5uaW5nZXIubmV0DQovVGhl IE1hcmtldCBUaWNrZXIvDQovW1MvTUlNRSBlbmNyeXB0ZWQgZW1haWwgcHJlZmVycmVkXS8N Cg== --------------fm9IaQV9WvqMSEvu7IhmyZOY Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On 6/17/2025 02:47, Xin Li wrote:
On 2025-06-16 18:05, Karl Denninger wrote:
The problem is that it wants something like "rootdev=3Ddisk0s1a" -- a full specification.

If ZFS is an option, you can say something like:

rootdev=3Dzfs:mydevice-boot/ROOT/default:
currdev=3Dzfs:mydevice-boot/ROOT/default:

in EFI's FreeBSD/loader.env; ZFS have much better way to find out the right device and does not rely on probe order.

But it isn't.

This is an "sort-of-embedded" environment.=C2=A0 The goal is "one media that boots them all, provided we have the drivers for your network card and its an AMD compatible CPU."

Thus it has to boot in something like a pcEngines apu2 (which has no idea what EFI is, and won't boot a GPT USB stick either) and also be able to be stuck into something like a GMKTek "cube PC" which has no CSM mode (EFI boot only.)=C2=A0 I'll live with the constraint that any other media in or connected to it (e.g. on a USB interface, etc) either can't be bootable OR you have set the boot order in the BIOS so the stick that's plugged in is the first to be considered.

I build these using "nanobsd" so they're power-fail safe and the capability to pull the stick in the event of a hardware failure, shove it into something else and with a de-minimus set of edits (e.g. "what are the ethernet interfaces called") if different (e.g. igb .vs. ix) it will come up and run.

Think edge gateway/firewall appliance.

I tend to stick these images out where anyone can grab and use them with a decent set of software included (e.g. Strongswan, etc.); I used to build them for the pcEngines internal sd card slot which came up as "mmcsd0" but those guys are gone, they're not fast enough to saturate a full gigabit connection anyway and, as it turns out, basically everything today when it boots FreeBSD identifies a USB stick as a "da" device, so if its the only storage device on USB it will come up as "da0" which works nicely (and quite consistently) once the kernel is loaded.=C2=A0 The goal = is "one image that will boot and run on most, from old and crusty to new and shiny."

The key element that drives the request is that nanobsd allows online updating -- that is, there are two system partitions and you can update the one that isn't running with a "dd" and then reboot to activate it.=C2=A0 I resolved the issue of losing the dat= a partition in the nanobsd build if you have EFI as an option but that leaves me with this which I've not been successful sorting out reliably with the tools available.

--
Karl Denninger
karl@denninger.net
The Market Ticker
[S/MIME encrypted email preferred]<= /div> --------------fm9IaQV9WvqMSEvu7IhmyZOY-- --------------ms090108030709050302030509 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC C4owggWZMIIDgaADAgECAhRZU8dKdMneRI1Vq5kv0k54Q5rQuDANBgkqhkiG9w0BAQsFADB2 MQswCQYDVQQGEwJVUzESMBAGA1UECAwJVGVubmVzc2VlMRYwFAYDVQQKDA1EZW5uaW5nZXIu TmV0MRcwFQYDVQQDDA5EZW5uaW5nZXIgUm9vdDEiMCAGCSqGSIb3DQEJARYTYWRtaW5AZGVu bmluZ2VyLm5ldDAeFw0yNDA1MDkyMTA4MDNaFw00NDA1MDQyMTA4MDNaMF0xCzAJBgNVBAYT AlVTMRIwEAYDVQQIDAlUZW5uZXNzZWUxFjAUBgNVBAoMDURlbm5pbmdlci5uZXQxIjAgBgNV BAMMGURlbm5pbmdlci5OZXQgU2lnbmluZyBJbnQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw ggEKAoIBAQDbR0tSiuLG5HPfo+cWtdeYQ8jc8Bjfuo0GTcNRT0glHnH1apUtInIktUknEZDH ohahInN+mMBdKg54FCHOiYZrJbyxBIo9FwX7hRmOc+spxmSYWnOd2E/YcGInMK4ZpjPzldzB Yt1n3zygkhx2bssxTJS3x4nv1qAXfLSZd1VwqoQufifEoPyTtymkkvHLv86vLgqAqooM/cXc 4LSIQ5u2uM308n42r8RkKtp7X1v9fJW8oRZN2XnFZtiUPH44YY2rHqyN2Hea9Y3+TXbldXjo xhPHTA+JYVFq8KTmbQBqU7YcMhlIG0cSxPeFLMxnP6pqPcIVTAlK+a6YGRFppfjZAgMBAAGj ggE2MIIBMjAdBgNVHQ4EFgQUH+VuxXhBxaJAQrvDekwkH91hBi4wgbMGA1UdIwSBqzCBqIAU RFYC4p6L6KITnEvrpx2cyt+PcMmheqR4MHYxCzAJBgNVBAYTAlVTMRIwEAYDVQQIDAlUZW5u ZXNzZWUxFjAUBgNVBAoMDURlbm5pbmdlci5OZXQxFzAVBgNVBAMMDkRlbm5pbmdlciBSb290 MSIwIAYJKoZIhvcNAQkBFhNhZG1pbkBkZW5uaW5nZXIubmV0ghQZE7NBItWtQsCouuwU6jZ+ HPPwnjAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjA6BgNVHR8EMzAxMC+gLaAr hilodHRwOi8vd3d3LmRlbm5pbmdlci5uZXQvcm9vdC1yZXZva2VkLmNybDANBgkqhkiG9w0B AQsFAAOCAgEAfFbhPc82AfhyUqONs7IccYD36w+OP4nQgwfC4IWf3y/aQAZ2Zk6IITzYqwf7 PFM0bJRT3zi7xyetolqHDhfMJvnOQWpITZiyM/FSKwIvuBsy/uJUqPuqui4XQMYoSbAA1qmI MW/z7VZZHwaRFoeWE40UirYcf0fNcooBZ72bmd+iBaVyjtZvky0Vgcz0eC6e6LR5kNb23yC6 TkyQIlGyQkK5/afXUYFzk49rOHVbVyxW3oXRfq8Ow6HCrpDGAS8p84S04MFwBVAUfbe4aXs3 bampaI2LzKgkVywyFP14LSvvdjCfLYfnLy1Z9hm2EHMqNHA2tCGdRhWp2d7aZC1MYFqng0ZS fjPJjqHrI1qPU0p6k9A1GxAtrQlL2v/IUzUnMZkiawFV3qlxMGZf/kTYTUOcJhx1KU4zSLHu 80qO7ldRpp5gHssCAGFbeTu2gp6LxfmaFhLPDBJ1VGfdPx9lUrU/9OcoHczcl5x2Rb8IUZyX 9elzP5WdAU8p5R/DLlOAq24VcabhFtYBCA2dOESLupSfWKNQuJCN/1gz7ysSc+mjnnPV77IO mpszJfkFFJEDNJlGIVKX1vwwygtC/9Ulox8frgbZlRAYAgDc/YbOBFxticVVre0Y3Ujx6Kzb tkgZRlgfdZWbT1W5smncqJxg5qAL8e/yTb3fCe2nJ0jhiP4wggXpMIIE0aADAgECAhMAmNFt CiCF3j+FwQLYtBTmGjzkMA0GCSqGSIb3DQEBCwUAMF0xCzAJBgNVBAYTAlVTMRIwEAYDVQQI DAlUZW5uZXNzZWUxFjAUBgNVBAoMDURlbm5pbmdlci5uZXQxIjAgBgNVBAMMGURlbm5pbmdl ci5OZXQgU2lnbmluZyBJbnQwHhcNMjQwNTEwMTkyNjU5WhcNMjkwNTA5MTkyNjU5WjBXMQsw CQYDVQQGEwJVUzESMBAGA1UECAwJVGVubmVzc2VlMRcwFQYDVQQKDA5LYXJsIERlbm5pbmdl cjEbMBkGA1UEAwwSa2FybEBkZW5uaW5nZXIubmV0MIICIjANBgkqhkiG9w0BAQEFAAOCAg8A MIICCgKCAgEAvh1UssVbSYctzobPjwBkbjv/w4WvQNepeRTwE6+sLnXvc41+X9pa5EclPL4Q l02Vu1m71mSqXGfK9HbWZoivbhefBHOoYb35MSc24PelhwcORbpneWoWc7giQ7QgFlvEe/yj fs8M0H9fgdzFS5m2lwBQbis8kioSjHB2yt/8I1GE4Mvt1Cur9kga6ML5FAQvo8TYN1stdhrE 13FEv/BWCF4FVT4H2Wa2ySW+R1jkKb74SC6Twg98bGCRTShD5bVylh0+0LXNhzaopIDcI/KK jm/j3mRjIlmqbGrSpvJsbjjhjhAYQKE1U8FB5TDU4OkFAibblhQit/KjgspPR2o/vOpVFPER uhZEV1oDGzUJtZlkREIcN2sYBi0p7Y4585ya+b7L10mEenPlyi3eSkGXEuiy/BR2DY6lShwW DPoQ5602TKmttCSwBdWGoLrQ4jEVEVNt4lku2wPbTHF3KpHJU0g7RbcWoUYn10SOxKathkir hF3v9U32+QhPELGwqRrH0sL9rWf0qalRtPDHUYl8TebZmYkFqNeSMlqHijl5f4SsQPSj7gx5 4F19Ntm9ZcvuWTmW8QQGWTKHeMuG+BYkVIUSPe6/ZQsbD/xDx7rkyGfNgWIa4W7Wm/B7kaNq H53tk3wFmNgZQOxMTPF0oTHfW0T2azU6JD0D1AlgoAnSAE0CAwEAAaOCAaYwggGiMDoGCCsG AQUFBwEBBC4wLDAqBggrBgEFBQcwAYYeaHR0cDovL29jc3AuZGVubmluZ2VyLm5ldDo3Nzc3 MAwGA1UdEwEB/wQCMAAwDgYDVR0PAQH/BAQDAgXgMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggr BgEFBQcDBDAzBglghkgBhvhCAQ0EJhYkT3BlblNTTCBHZW5lcmF0ZWQgQ2xpZW50IENlcnRp ZmljYXRlMB0GA1UdDgQWBBSxJZjVnlYLAT3uzvDYgc4742J6UTCBswYDVR0jBIGrMIGogBQf 5W7FeEHFokBCu8N6TCQf3WEGLqF6pHgwdjELMAkGA1UEBhMCVVMxEjAQBgNVBAgMCVRlbm5l c3NlZTEWMBQGA1UECgwNRGVubmluZ2VyLk5ldDEXMBUGA1UEAwwORGVubmluZ2VyIFJvb3Qx IjAgBgkqhkiG9w0BCQEWE2FkbWluQGRlbm5pbmdlci5uZXSCFFlTx0p0yd5EjVWrmS/STnhD mtC4MB0GA1UdEQQWMBSBEmthcmxAZGVubmluZ2VyLm5ldDANBgkqhkiG9w0BAQsFAAOCAQEA TrQ45/tBN3SiuqItFv/V+CF3h7Hxe0YLsL+A/P+q9ZhxIscaNjaclgQhPA+rUr+l8DGoXJ/w yAl1E0SSBK+9phIc/9xFOBg3rCy4ngubzP+lHS1t03nMCBSUNsu5qPzqLBPiKaPabUu3Gr9o koRezSszgM3/zNJfr8cMO93csCK/fBccsMx5q+3nxB5XeT7UciicjfEzUA4m2mQxBmGk9SSU 147Gy8UmdSq57Tw82KqUrQ1pJ6IOzVPLREpwlqGbHykSU3MwtPYPtfQeFVjvO/XcWvoFQjbV UyhzAqMMYFudxoVLlJQiAgU38OScTLDgKxCO41h7VOjb2mss0zHndzGCBZUwggWRAgEBMHQw XTELMAkGA1UEBhMCVVMxEjAQBgNVBAgMCVRlbm5lc3NlZTEWMBQGA1UECgwNRGVubmluZ2Vy Lm5ldDEiMCAGA1UEAwwZRGVubmluZ2VyLk5ldCBTaWduaW5nIEludAITAJjRbQoghd4/hcEC 2LQU5ho85DANBglghkgBZQMEAgMFAKCCAvIwGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAc BgkqhkiG9w0BCQUxDxcNMjUwNjE3MTAxODEzWjBPBgkqhkiG9w0BCQQxQgRABD0rO03xZACK 0bjaRVGKk7I/oaxNBkMB0DC8hqJpv+QmoJ8XqFooBV8OCn2zd8XiV1o2iHkmKydrl3eXjl9+ 6TCBgwYJKwYBBAGCNxAEMXYwdDBdMQswCQYDVQQGEwJVUzESMBAGA1UECAwJVGVubmVzc2Vl MRYwFAYDVQQKDA1EZW5uaW5nZXIubmV0MSIwIAYDVQQDDBlEZW5uaW5nZXIuTmV0IFNpZ25p bmcgSW50AhMAmNFtCiCF3j+FwQLYtBTmGjzkMIGFBgsqhkiG9w0BCRACCzF2oHQwXTELMAkG A1UEBhMCVVMxEjAQBgNVBAgMCVRlbm5lc3NlZTEWMBQGA1UECgwNRGVubmluZ2VyLm5ldDEi MCAGA1UEAwwZRGVubmluZ2VyLk5ldCBTaWduaW5nIEludAITAJjRbQoghd4/hcEC2LQU5ho8 5DCCAVcGCSqGSIb3DQEJDzGCAUgwggFEMAsGCWCGSAFlAwQBKjALBglghkgBZQMEAQIwCgYI KoZIhvcNAwcwDQYIKoZIhvcNAwICAQUwDQYIKoZIhvcNAwICAQUwBwYFKw4DAgcwDQYIKoZI hvcNAwICAQUwBwYFKw4DAhowCwYJYIZIAWUDBAIBMAsGCWCGSAFlAwQCAjALBglghkgBZQME AgMwCwYJYIZIAWUDBAIEMAsGCWCGSAFlAwQCBzALBglghkgBZQMEAggwCwYJYIZIAWUDBAIJ MAsGCWCGSAFlAwQCCjALBgkqhkiG9w0BAQEwCwYJK4EFEIZIPwACMAgGBiuBBAELADAIBgYr gQQBCwEwCAYGK4EEAQsCMAgGBiuBBAELAzALBgkrgQUQhkg/AAMwCAYGK4EEAQ4AMAgGBiuB BAEOATAIBgYrgQQBDgIwCAYGK4EEAQ4DMA0GCSqGSIb3DQEBAQUABIICAJS0OQTi/tKf3Gs5 /4ExYcYrQ9kz9Jy9XYgz6p++TV3bs3mO9M3LgN2iFNZNBbipDN6yGM+Gc8ede8XSUPB30vUH SX4+ipquHe8ZD3lGXabRl8YPX2pdNQ4ELUj6FNQLBxV2R5zerhbkK0j9XM/3ylxKWNq56fra MwSZR4BYDTzOHGGMYot57cZ1eevb8Bv/jgFIYCKVfQoJBJ2yv1bYSDcK5u2O6+x8VzCXD3nC /oXz1DUpzIAP+wlrR/rmXPDQU/9aF5p1mBtM4HAzKuYg5iIrX4rpfpgo2vI6AG90IYdBfi6L BGRC7692RZO0ANhIPwo14kOZbuzOPqYfA+pai0u6JThlWi9jUXW5rzAP+Wopy0uNfhDAm5HJ 9i7Gqj3ED2Kq3CIVg4lpXKXz7S56+tCcHjoZ+j+wuNoqHeCBHLLOTnUz57AcK8Izin9ckAhE e40HM0d5A6eCCjPnJsjSck3XjtO0CngIbnnsYPWaTO6yXP2nW2/GVZmvaF0vyFcXtX9g3dQC 8pEAs6EQqjNqRcR/kBAtOymIr9Fc1ATOLd9RgSqfEsmpsSCAqamfvvgSTKXf89bfwTJ++tFn xaEyJrPsZHnq5ivnqBu3kruYE9cGEagy9yN5BtDMFYCIYKOlK3gvdCcHLXZBZOrGc1c+j9iQ ls6uqo2L96WinEqADhmYAAAAAAAA --------------ms090108030709050302030509-- From nobody Tue Jun 17 12:12:32 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bM5NQ3qClz5yFfM for ; Tue, 17 Jun 2025 12:12:38 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bM5NQ1XmXz3X5H for ; Tue, 17 Jun 2025 12:12:38 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-451dbe494d6so71964665e9.1 for ; Tue, 17 Jun 2025 05:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750162356; x=1750767156; darn=freebsd.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:date:from:from:to:cc:subject:date :message-id:reply-to; bh=nmHkDZ2Nxkyy6vdyWh+hTnism4IeBcv7P7joufbVxSI=; b=BQqtYWZqW6yp0yzVk5670YeJbECfCKf74pg6hhcAfvMz4/w2kPVnGZaA9w+e5FwqYr LmVRYrVDyuoDDW5uCj+c8suDMvfP/pw7pNgit+O1dSIJipDLonQIsVDpsKqHCVv2SJpx QvxsPLgRBctqH30rQ4dzB1TfCNNEhnLWAXsYVB+kJwqwx93AB4ahq3+zBJY0Yym0x69v uUBT5ZT3R5aq1IBoTDLq7n1c2zrLs0QVzB0Zd6ANW8lsdEBz1tEnsiHoHHAKJX69o9rd K0uUDfiidhcWlROu6buwnNRn6XRsou92I7yottOCnUraM8dFZiIXe52d+EVyRKAYXboZ nm0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750162356; x=1750767156; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nmHkDZ2Nxkyy6vdyWh+hTnism4IeBcv7P7joufbVxSI=; b=jOLXobazSON+SDen0P5APOvgmNatmom9CZ17Y0IwjunkbwSwc2uF1OK2AWaV1qftb6 wNchKZChxos8PuHXgmHpHNjydJYJiAM7YuGogWwEZeCwFjpEnUKN0zljfImtjhCKvTjg VsVj9sH11qCtVWGQLc5j6h3f1EYHjNTf6xy04qVd0RIl0enQdmduSpmukxLT80DTdPcj eoqoLBzDMVXOtfKE3FZll53TY0vArOW8Ek2Bfor/D4ORdv655A/FZa1/lr3NrN3/oLpj 8waEAGXrAjQ9MP7/VheQeTxceTldUCqDQIILJ7w+MCO4+7WQYT70r5FSL5QqAiBD5JcX tv0w== X-Forwarded-Encrypted: i=1; AJvYcCVLOjVDWCyjidMHzubLEJ5bVhcRHGQmB6tUV2xJdQsb1J93V6RLshWmUknwEMMZZBivVCl0DWPt5lzluXaGdLE=@freebsd.org X-Gm-Message-State: AOJu0Yyj4c0OpGf1Ckh223VqB1hQ9bJFd0q8w8Jp5AGHXMupb625J4JN wpTbc+hF4b3X0yUFRyxB9sG1gesWc3GfUNBmCKx7C+iRQZZ3nuR+rgqg X-Gm-Gg: ASbGnctDT8vvI2930HxZIEgYPjqH6FSfC8GsuPWeh0i7x/U++DHoKn16RfmV1e0UKOs zdJBUiaTrv5rUqEYwQBDj30mRkJvzC4gTvvhDk8xgtrSzKxvSXmWQdrc7V202dcHNJ41H73z6pK cJ+4tkQjsxfXtusFtIXJGP+JaVpBnF4l4fakIjr+pqA7NtngaL+ZvPHBN601t1FsKLwv7J+JLCE jPDKEAcvNaQMZBnO+7fG2Jr3YjzXR2bA1xVZwJvbVaeQB3ezx5ECuIAmdjdqfoE6dwGIWgzLmJD cHRBudHr6ZlkBzdm1U3yPTmTt68uPqDdvHLyeBR+PZJC5mZb647PfxIJk0DloOpdRA== X-Google-Smtp-Source: AGHT+IEpdFSmLW5m3f9zEuOxGvuNeGYSuZKc+zVFIvi1LGhuNbS6o/s9dDatIOlArE6Ax8Y4DilcQw== X-Received: by 2002:a05:600c:502b:b0:442:ccfa:fa with SMTP id 5b1f17b1804b1-4533cb0d71bmr116824635e9.27.1750162355476; Tue, 17 Jun 2025 05:12:35 -0700 (PDT) Received: from rimwks.local ([2001:470:1f1b:4dc:7883:6512:5e84:d972]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4532e169d90sm177120755e9.32.2025.06.17.05.12.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jun 2025 05:12:34 -0700 (PDT) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Tue, 17 Jun 2025 15:12:32 +0300 To: Borja Marcos Cc: Jordan Hubbard , freebsd-hackers@freebsd.org Subject: Re: [Thought experiment] Bringing swift into an experimental branch? Message-ID: <20250617151232.76a895f4@rimwks.local> In-Reply-To: <1632F5EA-8DFC-4764-96E4-E2633BA0C2FF@sarenet.es> References: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> <20250617013743.3b5108f0@rimwks.local> <1632F5EA-8DFC-4764-96E4-E2633BA0C2FF@sarenet.es> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.49; amd64-portbld-freebsd14.3) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4bM5NQ1XmXz3X5H X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] On Tue, 17 Jun 2025 08:02:08 +0200 Borja Marcos wrote: > > On 17 Jun 2025, at 00:37, Rozhuk Ivan wrote: > > > > No modern language required, even C++ is to complex to learn it. > > C just works, like it work 30-40 years ago. > > All can be done on C. > > Well, if counting bytes is your thing, yes, everything can be done in > C. The fact that using a systems programming language for > applications is a bad idea has been proven beyond doubt. ;) > > The problem is language stability as Jordan pointed out. I remember I > said something similar about Rust. > "systems programming language" - does not exist. OS have no complex applications, even assembler can be used, Colibry OS as example. From nobody Tue Jun 17 15:17:32 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bM9Tx6Zkpz5yRnj for ; Tue, 17 Jun 2025 15:17:41 +0000 (UTC) (envelope-from jrm@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bM9Tx5vShz3YqT for ; Tue, 17 Jun 2025 15:17:41 +0000 (UTC) (envelope-from jrm@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750173461; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=/nISIwLVZhrg3bK4SMbjHlhZ7OvIo3ZvePhmHPX2Bl4=; b=F1FHjCn1+fYLfvbg5Ieg+HlNJX1eJab5Jp9wNNubnY5J9sHFL82nKOILnQkeHbLrjKIXnJ I0Qx20cBfFsszObXTfP4aYD05QSBkoCrSe8YbZ+AfdnwTCAopz4sJ6OIGoBQ9VQQI87HhM Pdotl4OLgXkpaoUX3Vy/jVBGOlJj5H8fcKgCYDey1uBDFaP/4S+INYcLbqbrBkQ2S/hHXw arnH6OGF5igmU1a+MSWqOX6fD1xGnPIaPaP5nWeANo8HOkFhv8Zl6Cch4wrHBBli2LvLaS u3thERJ+xViMz8s+hlZUZvuXf3Xodjq3X6IgbLj+cEVjjtt5gLoVexFzqtqBgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750173461; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=/nISIwLVZhrg3bK4SMbjHlhZ7OvIo3ZvePhmHPX2Bl4=; b=XI09dlnfp+vJU9GTrV9CJIe6eFzjB+g8bkxnUogfhLR/829UBuoOes1PLZylPfCUm7YInw k0mTWf3fL42h/F/2A82therqCXpdTaMdnw2dFi75fxZ96uPYSUHuRANf631qNlXM1TK/YI 7wXDeDV7N7QQwH6rv+QtAdSdpHsp5XXTKx8XWBc4ObINZpG7yDUjWzefnMqD4cFmIm9bEV O9T69XSs8xilwXnN6ruW3k16q1SNAzQGCmEr9+1rePshrSgZbW+gMzXr2iSj/tLDUV2tDT 7r55L1gHxnj9MpJWeAOu+UTIDBGDGPTw+nTvakoWNtgFG1VqPr9SdBCc9diUrg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750173461; a=rsa-sha256; cv=none; b=AzXEFahPEzzTSu31ubBslbAZ61rVURdwLgy8eJ6ESvbaEYx2xBoRHdttoP5FSesDzGrzsl udcxJrZm7LfDCeMIpr8joCEz+WJjalQlY/VKkivXcFFsHn+r4tGIsexCWaP918qlHD5iUA 9m/woW7MJL7SrJTTaojnxMnQwK1FsmOCjSkYgzbPHdwsVEbLRFepZSVQQg5Qjn/asPqYTQ j/zX+LxiKp9w6A3aG0PVGbYRECIp5mj2yx4O6AVk8TXns0eyRvx9PHgKLXhVC/aDswvSRD slc7qSonHwz8v0q77r/HVYbLFi7TJPV504w5g9N7TsoMtwn4f3zbT3XgYnqRXA== Received: from asn.ftfl.ca.ftfl.ca (unknown [208.72.125.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: jrm/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4bM9Tx4gn7z2tF for ; Tue, 17 Jun 2025 15:17:41 +0000 (UTC) (envelope-from jrm@freebsd.org) From: Joseph Mingrone To: hackers@Freebsd.org Subject: Notes on improving the installer User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 Date: Tue, 17 Jun 2025 11:17:32 -0400 Message-ID: <8634byieib.fsf@asn.ftfl.ca> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Yesterday at the Kitchener-Waterloo hackathon, we spent a few hours reviewing the FreeBSD installer and identifying areas for improvement. We've documented our observations and suggestions on the wiki: https://wiki.freebsd.org/ImproveInstaller Feedback and contributions are welcome. Joe --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKkBAEBCgCOFiEEVbCTpybDiFVxIrrVNqQMg7DW754FAmhRhw1fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU1 QjA5M0E3MjZDMzg4NTU3MTIyQkFENTM2QTQwQzgzQjBENkVGOUUQHGpybUBmcmVl YnNkLm9yZwAKCRA2pAyDsNbvngPHEACThcSuPw7CvOHpAxUHRQuB7HWzW8jzPwNC p39WWe0gsopfG7R6bT6DHsA3GyfTWeTGow2s+SOW3urIZ16HyPhsRCeaSIun2tGK CHwuWvdeMTI0pFUubTPWLfSETUCPotDZWA8x6wQ1wFtFm60f9GCsQMQ4i9UinUhR B035AWU9h8OOT/ZfLPnvPJ34iNtUtfhnkNVTsi0QhwVyZ5b30f7R3b9JnL8AX9AQ t45bT+NHXrolAQybpRRs8jmjOqIwyVOmanO5+R5hCZHv6cgFAcfWHfqyk51kMGo7 j5oboNVolx9bfYmwhQ/73/hh3PvxWj7iR2lmwJdC6QBER/puDUno4GlYz3Ytkl4B H1U/R5dxBeR3jpQGQMcQnwc0jM70bggbUrPcbB5QziWin/YpidUog9rt5EzJVQRD JnkHC7JzZKgwpyL4UqnDEF3Wk28cYQG2e5VGc8S+9iBG642V4yn0dxzAss6NqdNe X5eoujT3/Xng2ecNUH3ar3Xe4Wj+k9hp7R6mockW7t29cXNP5VitII93/JwC443c GDtZZj8lrJ8RnI93Gy8GA8WLXM1/Rqu4KQHwFk34FwLA34zNllQAeclosFQo1Qt1 m44xhx3tqfJEzflMszhcDKc4PTdqTqiHbAUT/62MPkXKE6fiWtyyY/cAA1V/Sm9G fE66nHrB2g== =P/Xx -----END PGP SIGNATURE----- --=-=-=-- From nobody Tue Jun 17 15:26:46 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bM9hS4QcKz5ySb6 for ; Tue, 17 Jun 2025 15:26:48 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bM9hS2wvgz3dvx for ; Tue, 17 Jun 2025 15:26:48 +0000 (UTC) (envelope-from kevans@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750174008; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=csKvbxoRly5HhlMYqxOmlph6Ga0zTzfaDOQsCti2m5E=; b=EDg35t9x7pn6g9yUGNuMdjEnuYKGoCHmmNgXLuXNlPBBp1Vc3likWtm40dHpPdhcprqW8I IXel8kX3FvMW1oToTrAmZ+t5KF56Rbsb/gv5taWFwBSDDEZ+EbOdWKJgarI7NN7yusjc+D HRrV6mRcuqpebzZa2svsYAs0bRqo7oZS8hXaiLv7dFxq4ntGeY+USWTuuj2B9q7/AA/jWh A8sMhfHS4r1LY5zHv2ciVodROtOjoJObzDbihpNNsbCw37K+YUNraj+zJai3h0A4n3U1tX LDZdhORYqK0EUToxnFMry8/aPYkfNMkj6SmWYhf9yVaTxxYAaIxlmWEI6lIx9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750174008; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=csKvbxoRly5HhlMYqxOmlph6Ga0zTzfaDOQsCti2m5E=; b=i/nMfVfZCfFMOMH1uQ8wjbShlxtzJKp9BVhqW7l1/SWjfTSlHv+Cut5k1MUe4gn5FoS/Rz 2kqAiFo/SQmNAdUTdweAnqqTboYXEhwySR4UpMz4QHbGgescL3TIVKhzzPRxgdDg1oViU2 r301xBaCO+c23cbuuG98gnHuTE+BKMMKi8ZawOOhNE2WC/PCfPcUvqI4CcNfWI6mBviKff C+g32IUKJB1lm0Bokeop6Dw5/e6ct3gSYXGFBFGNhqgLQthaL9vfEBiV9Ipigw4876l6TC XNXXTJQmjzs1acaGxZd7ZZaZd0Yo7uT8xWlGhLQ0sGSyag4YZ2jPtIpqQp8XEg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750174008; a=rsa-sha256; cv=none; b=Mv+zNP4RQ2jreAhV1AsWcvnVb9TZha4Z4cc5D/ojRaNpqIjTKyzgnLc3+U4sqCLB5ZMaRl dwhbVqaMNpEGWV6mZOMHL0ZlK4tdGeVyM/GOUA93YTj1+2BWmHTxLYBMYGzcYsI8W/xrmk lYMAGbvDZrJ3PBGbdfPFMMrE8tGpjjtuZCzOf/aLatMs03wQRQ9m/DS53+Ad4Xjg+Hz8OJ Z66zTjENvVXUf1hNX9I6YWfhg3BHj7bT7iV/kDoO80QSfwbcn5RxE0cAtsFneEnqh7Gpow 34fJyqb7VRys55p4n7b0X/aXz6Qd1zen9VSDh5PFc6w///ObYGV5shrWoquA8Q== Received: from [10.9.4.95] (unknown [209.182.120.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: kevans/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4bM9hS0hVxz1m0 for ; Tue, 17 Jun 2025 15:26:48 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Message-ID: <91bc7e6e-e3b4-4771-a3e5-d9276829c630@FreeBSD.org> Date: Tue, 17 Jun 2025 10:26:46 -0500 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Notes on improving the installer To: freebsd-hackers@freebsd.org References: <8634byieib.fsf@asn.ftfl.ca> Content-Language: en-US From: Kyle Evans In-Reply-To: <8634byieib.fsf@asn.ftfl.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/17/25 10:17, Joseph Mingrone wrote: > Yesterday at the Kitchener-Waterloo hackathon, we spent a few hours > reviewing the FreeBSD installer and identifying areas for improvement. > We've documented our observations and suggestions on the wiki: > > https://wiki.freebsd.org/ImproveInstaller > > Feedback and contributions are welcome. > > Joe I added some notes for the loader-related entries, adding a new brand for the installer would be relatively easy -- someone just needs to design the art for it, ideally both ascii and a .png. Thanks, Kyle Evans From nobody Tue Jun 17 16:50:22 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMCY64H3Fz5yXqg for ; Tue, 17 Jun 2025 16:50:34 +0000 (UTC) (envelope-from theraven@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMCY63QSzz4F0j; Tue, 17 Jun 2025 16:50:34 +0000 (UTC) (envelope-from theraven@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750179034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=94vjnoJKtxpZO7vXU5SIvvGU6ePas5phFgo8wEdwUu4=; b=SDF8Tks2RPzfX1D9kHK4b5YroYN5Kdqx/CiONU0qiS9eTYFe7PIT9Ocl0WbAr6XrfyMknr V57sEhYOiSkZ1F2r1htLB2XcCMWekHssSGupDSx/W2K6niE1rU+LsiyjgMA860jQwLCkmX VZeIwlRBEb6T+Wju967MPtAgS9pwzFcnq4wv3KikqDHDFoF5XJMZzMiutpI1ElSsR2aOJN 8pHo9piI+ADLqxjRjDV0JIJk1lblH9G2aTLNBTx8ztvs/DY5ZomJSSEVusRf1puJUmQB4a vCKzOFk7cmhIwuk6E0xNQZ6edrsxzvlUcQjU0XTmd2et4kUrqiQ0aWzws41B8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750179034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=94vjnoJKtxpZO7vXU5SIvvGU6ePas5phFgo8wEdwUu4=; b=UJE1v8gzzdI6YTuRQFUaInt1AZ79AenD3O2emxFORlPqLFRChU0CC5yCfL3qDrmianN9Kc wsVMXbcOppWG7/KAKimScfWN9/Rvd1qVGIIOhVitEDXq1yRPPOckYY0D6vdU262NOwPiCO y0Upub3Jg9jzWz/VdnwVoDnLdhHqe6fZXO6v8BuuSejNws+VEpukQg/jRBR09ILXEOIhAd VgSFNxj0m+yZLj+xelXjNuhJEbO75PQcvIwEumcm9sOhSoj2JT75spZYWxL/srvlgXKeDx zgyQEL6Eijd/9VcrGxkQ1sq+4GcshDFtqNTY7jYf+ZOZ4egOscdUkMYVQ93s2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750179034; a=rsa-sha256; cv=none; b=tIkthAcUEgsNz/q9ZjCjecHa/6Rx8hET8hwzeYqOGgolReAGTXteIp2lDUh2dYmppHbVd0 zdOYAsGy1/eYn5xhCfCVTJuaWqCVzMqAyM/Hwirrai7veJVyxGuAzdbgNBM3tNuhGHN0/P x2uwGZkfzZARmbb0QZnQh3LI+IFP/9F/Sh+HLAM3SqsZM0snaGfSuE3tpUX78+kVUvkeQx W4lpXhoFs41cF5E2e/yRxoUsUhBIqXuFkf2VmarXP8Klos8rd6LRbkHWxTEdSOFZ4oFeOo MVUjc5zdkaAr2KHny/kIRKJOuZ08r1jaEIaMYIwk2SBrKc5hYdNkeMg4ruDRXw== Received: from smtp.theravensnest.org (smtp.theravensnest.org [45.77.103.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: theraven) by smtp.freebsd.org (Postfix) with ESMTPSA id 4bMCY60wx3z4Jc; Tue, 17 Jun 2025 16:50:34 +0000 (UTC) (envelope-from theraven@freebsd.org) Received: from smtpclient.apple (host86-143-41-189.range86-143.btcentralplus.com [86.143.41.189]) by smtp.theravensnest.org (Postfix) with ESMTPSA id 98A22111E9; Tue, 17 Jun 2025 17:50:33 +0100 (BST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: David Chisnall List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 (1.0) Subject: Re: Notes on improving the installer Date: Tue, 17 Jun 2025 17:50:22 +0100 Message-Id: <69D0FE56-6D3E-4B49-9AD0-68752172FDC6@freebsd.org> References: <8634byieib.fsf@asn.ftfl.ca> Cc: hackers@freebsd.org In-Reply-To: <8634byieib.fsf@asn.ftfl.ca> To: Joseph Mingrone X-Mailer: iPad Mail (22F76) I recently used the installer for the first time in ages (most of my FreeBSD= installs have been around for many years) and was quite surprised that ther= e is absolutely no support for non-trivial ZFS installs. If you want to part= ition the disks yourself and then use ZFS, you have to: - Drop to the console. - Manually create the partitions. - Manually create each dataset (the list of the ones you need from the wiki= is stale). I would expect to be able to create the partitions in the partitions GUI, te= ll the installer the kind of ZFS pool to create (mirror, strip, RAID-Z[2]), a= nd then have it create all of the datasets for the install. It took me four a= ttempts to get this right (well, rightish. I missed a dataset and needed to c= reate it and shuffle files around later). Ideally, if you are partitioning multiple disks. It would be nice if there w= ere some way of saying =E2=80=98this partition map on all disks please=E2=80= =99. Creating the same partition layout on every disk in a RAID set is tedio= us. On top of this, there is no support (in the installer or, as far as I can te= ll, in freebsd-upgrade or pkgbase) for putting a UEFI partition on *each* di= sk and keeping them all up to date. It=E2=80=99s not so useful having a RAID= -Z or strip set if the bootloader isn=E2=80=99t mirrored (can gmirror manage= this transparently?). If you enable encrypted swap in the installer, it creates fstab entries that= create the GELI devices. It does not label the partitions (swap0, swap1, or= something useful) but uses the raw device nodes. Nothing in the system appe= ars to check the underlying partition type when enabling swap on these devic= es, so if you plug in another device and things are renumbered then swapping= will write nonsense over a different partition (I was fortunate that, when t= his happened to me, the destroyed partition was one I was planning to delete= anyway). I think I have filed bugs about all of these issues. It would be great if fo= lks looking to improve the installer could consider some of them. David > On 17 Jun 2025, at 16:17, Joseph Mingrone wrote: >=20 > =EF=BB=BFYesterday at the Kitchener-Waterloo hackathon, we spent a few hou= rs > reviewing the FreeBSD installer and identifying areas for improvement. > We've documented our observations and suggestions on the wiki: >=20 > https://wiki.freebsd.org/ImproveInstaller >=20 > Feedback and contributions are welcome. >=20 > Joe > From nobody Tue Jun 17 17:17:26 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMD8S6hFxz5VdgV for ; Tue, 17 Jun 2025 17:17:44 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMD8S5rrzz3F9C for ; Tue, 17 Jun 2025 17:17:44 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-70f94fe1e40so75309687b3.1 for ; Tue, 17 Jun 2025 10:17:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1750180659; x=1750785459; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=AM6RH9deHougPmkJsTplCTKO8VIVkEy0X23Gxz/ty9I=; b=KkzN/13crKEUO8zR8D035mUEMV+QDbcdS/lNy6ErqI4DeWIwKQV17Gq+sKRfYXY7Z1 Ru/Jdorhn9eZ5E9LRv1ETbJypYnf5EO5sA5pRS8ckVsDJ0IPSQ2G9V7ZkaKSLQzw8Cxm bd7W5ZyH7v/0poZSnLYO2EMu95xjxFXi3GIf8fqVnqEGNzdIwpm1nH9UGzsTJqFG+BRc bVDveRGy9EB2CGCwn5evU5jgjkB598+rmpjQdlcFV0imEpdZUa+75Ho1VYBZNpHvWBDP KCunNHFdu8+Qfla961YWNVS94HJpHXkabVYahXzWFy76nuLAPUYT/etaDcfs5nD9cXlY /gtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750180659; x=1750785459; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AM6RH9deHougPmkJsTplCTKO8VIVkEy0X23Gxz/ty9I=; b=jJJ3+mjVJW8RgK1j7SuroT+LWTiUoF6wLPhW9YrrWvuucUyQfrNuV8eZF1TFJfjQon GJ+7UUn30VRXOf6dQwo/TslvMVuuRk5XrtN+uXPB4oI/YfREMAb3FtsdrK0lEKxPQHrX gVc/EmBJjL9s7BjmiqVuyokcYRt2GAKxLze3/eo4955En+W2Ugpcb1Y2s5gGGzTgnK1t imd1Y1WGHng5f8A1GXZo09fTK2e5x+958yKZzlx7PD8RyhjxwX5PuXGuleucvsHs739E Y9tIssfJnkPes9I+xSxspkQkYHUMgv2/ujN1W7K8e9iguaaKINS7+6XitU6OyZd12GA9 Ejzg== X-Gm-Message-State: AOJu0Yx8iL9ghn6ZSGHTr30iXBUkWm9WGOaeONhP0dM/DNBPLfgowaXu iMbRpPIkpU4L2BMCLtgjZXuBkS74oO9mV+xYNRR2Oo5Xcy0SH4RDBEskGf7zdgOkMg== X-Gm-Gg: ASbGnct47dVHjmnJZ3gmqS+KRhFZJdU/4Zn5TU4HPb5cnSzMuCjyhWCJMFNDiazyBkI ac4A9pu6Z6zcQ4XReKHO7R9oO9pzcEpMRT/qPzeEKZgSHMwq9xCGnRSSpQlqg/mLP7c5/U9Ae4u Wp9L2ZjlWmWg5brrOpX/xJALSzYHI+Ytkjal10/aoryhPCtyIZ5lZg5f98vQ8iHD5rB9n/NfK4I Ur45RRfLAzxPC6Sh47ssH+rDDFkj+EqVwSfk4aPWFGKw/FwEx3gET1VDDx5MXbA4JMkhWToql34 P289z8Ap3cDDNOaP2yO+sfuw8CvUMJEfunsCIyrTNiHRWlEx4nrqjnNXcVBjirfb9FO07786zP/ vYKw9Jrk+i4JeRmp/CZsEkrCgOtAQEuSyJQ== X-Google-Smtp-Source: AGHT+IFAzQDbNKnS04x4Le2mbyKCd+UEX+1QrpkLJwfjJLsETj/lTan23UL2P3Q0aEz5IIrUoWW+Hg== X-Received: by 2002:a05:690c:1a:b0:710:e5ae:a61 with SMTP id 00721157ae682-7117493df8cmr204444137b3.14.1750180658859; Tue, 17 Jun 2025 10:17:38 -0700 (PDT) Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com. [209.85.128.172]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7119f0b2ba9sm6024797b3.38.2025.06.17.10.17.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Jun 2025 10:17:38 -0700 (PDT) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-70f94fe1e40so75309367b3.1; Tue, 17 Jun 2025 10:17:38 -0700 (PDT) X-Received: by 2002:a05:690c:4d89:b0:70e:2daa:65b7 with SMTP id 00721157ae682-711a58b7c8fmr51349847b3.12.1750180657641; Tue, 17 Jun 2025 10:17:37 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <8634byieib.fsf@asn.ftfl.ca> In-Reply-To: <8634byieib.fsf@asn.ftfl.ca> From: Tomek CEDRO Date: Tue, 17 Jun 2025 19:17:26 +0200 X-Gmail-Original-Message-ID: X-Gm-Features: AX0GCFvC2YxyLDv1tbk4eprX9XD6k3NtJhVGU6KYROeqFbGgEVH0qXDEIO-uXZA Message-ID: Subject: Re: Notes on improving the installer To: Joseph Mingrone Cc: hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4bMD8S5rrzz3F9C X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] On Tue, Jun 17, 2025 at 5:18=E2=80=AFPM Joseph Mingrone w= rote: > Yesterday at the Kitchener-Waterloo hackathon, we spent a few hours > reviewing the FreeBSD installer and identifying areas for improvement. > We've documented our observations and suggestions on the wiki: > https://wiki.freebsd.org/ImproveInstaller > Feedback and contributions are welcome. > Joe Hey Joe! Its totally unfriendly to (side)install FreeBSD on a drive with existing operating systems everything needs to be done by hand in that case while this is probably most common scenario for new users :-) I reported this on bugzilla as feature request some time ago.. should I add note on wiki too? :-) https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241296 Thanks :-) Tomek --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Tue Jun 17 17:48:35 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMDr735Hxz5VgLd for ; Tue, 17 Jun 2025 17:48:39 +0000 (UTC) (envelope-from linimon@portsmon.org) Received: from MTA-08-4.privateemail.com (mta-08-4.privateemail.com [198.54.122.147]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMDr71DHRz3W10; Tue, 17 Jun 2025 17:48:39 +0000 (UTC) (envelope-from linimon@portsmon.org) Authentication-Results: mx1.freebsd.org; none Received: from mta-08.privateemail.com (localhost [127.0.0.1]) by mta-08.privateemail.com (Postfix) with ESMTP id 4bMDr52nf1z3hhVZ; Tue, 17 Jun 2025 13:48:37 -0400 (EDT) Received: from APP-02 (unknown [10.50.14.152]) by mta-08.privateemail.com (Postfix) with ESMTPA; Tue, 17 Jun 2025 13:48:35 -0400 (EDT) Date: Tue, 17 Jun 2025 12:48:35 -0500 (CDT) From: Mark Linimon To: Tomek CEDRO , Joseph Mingrone Cc: hackers@freebsd.org Message-ID: <378485616.288261.1750182515245@privateemail.com> In-Reply-To: References: <8634byieib.fsf@asn.ftfl.ca> Subject: Re: Notes on improving the installer List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.6-Rev78 X-Originating-Client: open-xchange-appsuite X-Virus-Scanned: ClamAV using ClamSMTP X-Rspamd-Queue-Id: 4bMDr71DHRz3W10 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:22612, ipnet:198.54.122.0/24, country:US] > should I add note on wiki too? :-) I plan to xref the Bugzilla PRs into the wiki page in a bit. mcl From nobody Tue Jun 17 17:49:44 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMDsm501lz5VfnV for ; Tue, 17 Jun 2025 17:50:04 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMDsm2qygz3WyW for ; Tue, 17 Jun 2025 17:50:04 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-70f862dbeaeso60501307b3.1 for ; Tue, 17 Jun 2025 10:50:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1750182598; x=1750787398; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=lIrDYb2KuMBb4RQD2HEh0Q1e7vKQy1HPSBmAEhh4gQA=; b=grB+KOOCPYqCxVCoZLXAdmeWuCF0BG51HGw9PXEX8FP8vUNaaDJ8ppgzMF8WQPvZqy /UwC6VM6TaQdV3eGVF/KKqQW4pVF7fZEW+Pndxdtl7Grw1Np8N22iu2368mBm/CcCzxL H7rnBgOQGXykVsJLTbQroW5MAEDN16Tf1192b6Mu4yJrS8nl34OCOHBjnnmbJpRsYtgj md+5LwTil44auG1DFoCn8zR6/k8VkvDIC5P4LwzSuYUw+HzsMlNnsYYT9N/bK/GgrTBC HIa1VJ/JgFsAP6F3aECT4/6KYFe7FO9VS9KGM/HRtIrBxTDOn64kJBRuGo3cCgfIoDZO mCwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750182598; x=1750787398; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lIrDYb2KuMBb4RQD2HEh0Q1e7vKQy1HPSBmAEhh4gQA=; b=MpQkw3ddlNoRO8zcOINhltK5T+KjSQEu8OPGUKEtZd/SdR8oApH3Kj3QVZa9MC/Jv2 hefElBDvuzvJWbzBFY/0UopH2feFCDZ8djWuZZpSKcAm4arKQA1BCZG7M3+wqHeQiuOO uvXoIuZJun5Z/bvB7f6L15kGqH5WxiaTzT3m+Y+ldM0OQN5tVeColyecRmgHZ9+8bU+5 oykA/JXZsQF1g+f5jACouaAcODUy/VOsTwSOLGRmUXtoW+7I4YGC4VQ1CsfjiunhSeyG vKLat2opjKY2R5cMv4bU9mLLRkCXnISFiCkhqLbN7zh1A2q3BE2n0Gaa68fxLUHBaSPl P3Gw== X-Forwarded-Encrypted: i=1; AJvYcCXdQKG1r4RGJBPjBaN+423ofEDMSlYel53n9JkMYM4+ybvNIyihzfMRLOz4VL6d3TMWEub/sBUx@freebsd.org X-Gm-Message-State: AOJu0YwHx2KnEQF/2KOW6bWGecWrjqvCozZTAVF4h1Yh9hspPWcgUIBw Lwce3mGCT+Lwb+ucdFz+6sAw++SM/vGUIuRq6yZKkJIJS1r0+qyCVVv9YQVqkhZQ7Q== X-Gm-Gg: ASbGnctAoFG7hQXuBZZiI/nIrGTxDZ91pn0WfQEVqiLC0+oMYsukjAdtqY37xKvrNiO MCkNUQLZP8CSjAVmqA6cY4spH8yntsw1bVYTjC5R7IXBcWR/Sk6ZZjWv/8Wszl4vn3rK2kGcCAa i4duQ2HeNJgzLiiplHA8zujcuej9AHODdcMsHPLQPv0l9ctlhN5YhKdqeoE7C7vjDamocYsRiG0 sVdScIxA8VKDW/ULYdIgmN6IbSSwGWvFFZNe3XOXwK74aIikCnhimJTDaz2RUmWcB/89/PuLCNu 4Ai8BjfCMebRxpD7JYdmGzRYtIEKXnN1snftz9kz5ulZrTbiAS+LVUa+tWWsLGD1TSxPXlxeIXX 63e5pRYk9ac21Ed38LwSgA0+S3Gsv9f9Xlg== X-Google-Smtp-Source: AGHT+IG5aWYfPXPH3FKw5Rkb8qunRhMt7Fqd/O2sy2NKfOjYbrIp4K5ITEqNGWTat20UUIaqz5JCUQ== X-Received: by 2002:a05:690c:83:b0:710:e4c4:a938 with SMTP id 00721157ae682-71175463265mr188714977b3.38.1750182598399; Tue, 17 Jun 2025 10:49:58 -0700 (PDT) Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com. [209.85.128.182]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7118d4e0bb4sm10506547b3.113.2025.06.17.10.49.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Jun 2025 10:49:57 -0700 (PDT) Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-70f862dbeaeso60501087b3.1; Tue, 17 Jun 2025 10:49:57 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUOAyFheUR5b67EnlBDEBGzXU9OR3RbGj054O1eZ5XN3CJcPQS54XOh5hVTxaZAmAEVRmGn@freebsd.org, AJvYcCX8GdiHqMy/wViXQOuLc32HERmBt4rHlxjNwy4Ugh+tvaBZGOuqJqqm7RuOQzHimiUB8OFmExpw@freebsd.org X-Received: by 2002:a05:690c:670a:b0:70e:1771:c165 with SMTP id 00721157ae682-71175440978mr199453937b3.29.1750182597456; Tue, 17 Jun 2025 10:49:57 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <8634byieib.fsf@asn.ftfl.ca> <378485616.288261.1750182515245@privateemail.com> In-Reply-To: <378485616.288261.1750182515245@privateemail.com> From: Tomek CEDRO Date: Tue, 17 Jun 2025 19:49:44 +0200 X-Gmail-Original-Message-ID: X-Gm-Features: AX0GCFsOnCjOM7Vok5dgZqduBl2kQcRWYWPGOXKFZ5Eiy9W4DdQyADGxy3KB39Q Message-ID: Subject: Re: Notes on improving the installer To: Mark Linimon Cc: Tomek CEDRO , Joseph Mingrone , hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4bMDsm2qygz3WyW X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] On Tue, Jun 17, 2025 at 7:48=E2=80=AFPM Mark Linimon = wrote: > > should I add note on wiki too? :-) > I plan to xref the Bugzilla PRs into the wiki page in a bit. > mcl TANK U SIR =3D) --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Tue Jun 17 18:37:17 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMFwM3zDPz5VmrH for ; Tue, 17 Jun 2025 18:37:23 +0000 (UTC) (envelope-from jrm@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMFwL6nmFz3bGg; Tue, 17 Jun 2025 18:37:22 +0000 (UTC) (envelope-from jrm@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750185443; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lwnL9AqrJEJ/ysg29PtDpu3q/fr5zpn7NmwL1OfP3xo=; b=EL3P9wxvhf8vzaixD5FlSnIhVG3MdY2dWoGgd+iF+SX0BeIE0RzeRe/38T9jnJfSGqqwUg GNP7YEhO1ilrJSSzbTCEpKzhieKZdjkQuruj6jbrMZhQIVotyOEDDN2gU+PIArE9CGv5mf HMiNZ9khR8IuYAHnlflm8whGAiSU3TY87Mt+0Da+s0N6wz06Dx9nea8/MDOczsRjdEYxQ0 hqDt0XzdZFVpFDxX2FKz1+j5rxK7jxHJsk6hBstwyaMUhPhPvBF0uBjDi6Jpjh9QWNZf8h SfqCYuK6m3UcDG/nL/WnJOhzEA/XDaZil+TmmZQHIzFwbFYvtZIbWzz0ZX9lzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750185442; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lwnL9AqrJEJ/ysg29PtDpu3q/fr5zpn7NmwL1OfP3xo=; b=baRXfz16REMSE/73fzpPL9vo4cHr18cyDY5uvfArQAXHK9Nt8kBxh4Anz90XQfGK+ttW65 33ETaqCShP98URKmYN246J8YTraOz3Iyx49iI7+uY0+42UZofsg1qWXjgfTnxDERz/xcBj 9Xmi2kCiOOC/p0B8rfqBOvOJHMeeoLWr9C7ulLElguGmdvTOdtAPiTob8ysmkpU80RU+dB bznlraFSrCxMzrkKQ9ZLC2qpNXDD4Pwg0I5ca6JjcCNyoQy9O52F1ydQYqem2TdZjXg335 nMJfaxtYGyKYZi/jGJtds02BB/qNa9yG+yQbRnyGZElM5ueJXRyCSYqkGVO5fQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750185443; a=rsa-sha256; cv=none; b=JpDxLxgPyXOJ/OjWlPK4lHecmdF3VbvRDUuCzs44tJIcueYSzt0k0pBUTQHinjt0BjIpAR JKO4HGxHOX1SIys85PBQ8WGaEgiYNqa1mpXTPRvXvv/IWXuJajTnMQi4nCKLWBztPSTM4M WJ6TdOaHkX+xhZ0LQxF0ac/dHvVgNSyvnktCJ4qawrqOzu6w7CP6kQ5QRCI4uetrWrtA44 df4WCxCcZIa+Km/TNfZtxaLDb3/fZn5HBWl44zBw6/DI9gD5f0/lnhNditQUeqlcgJ9XpD qzEkHGqV2FiRfHY8towRb8wyGqmvjU0E8KQnbvFURLK3MigGrLoPhKIikLVbEw== Received: from asn.ftfl.ca.ftfl.ca (unknown [208.72.125.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: jrm/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4bMFwL55bQz6rW; Tue, 17 Jun 2025 18:37:22 +0000 (UTC) (envelope-from jrm@freebsd.org) From: Joseph Mingrone To: Tomek CEDRO Cc: hackers@freebsd.org Subject: Re: Notes on improving the installer In-Reply-To: References: <8634byieib.fsf@asn.ftfl.ca> Date: Tue, 17 Jun 2025 14:37:17 -0400 Message-ID: <86zfe6qko2.fsf@asn.ftfl.ca> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, 2025-06-17 at 19:17, Tomek CEDRO wrote: > On Tue, Jun 17, 2025 at 5:18=E2=80=AFPM Joseph Mingrone = wrote: >> Yesterday at the Kitchener-Waterloo hackathon, we spent a few hours >> reviewing the FreeBSD installer and identifying areas for improvement. >> We've documented our observations and suggestions on the wiki: >> https://wiki.freebsd.org/ImproveInstaller >> Feedback and contributions are welcome. >> Joe > Hey Joe! Its totally unfriendly to (side)install FreeBSD on a drive > with existing operating systems everything needs to be done by hand in > that case while this is probably most common scenario for new users > :-) > I reported this on bugzilla as feature request some time ago.. should > I add note on wiki too? :-) > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241296 > Thanks :-) > Tomek Hi Tomek, Yes, if you're up for adding your and David's thoughts to the wiki page that would be helpful. There is a GSoC project that /could/ solve some of these problems if that work could be integrated into the installer. Joe --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKkBAEBCgCOFiEEVbCTpybDiFVxIrrVNqQMg7DW754FAmhRtd1fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU1 QjA5M0E3MjZDMzg4NTU3MTIyQkFENTM2QTQwQzgzQjBENkVGOUUQHGpybUBmcmVl YnNkLm9yZwAKCRA2pAyDsNbvnnJED/9ZucNvuIssaVOuBAgZm95/wK4gaN5j8jzC iYVjmu6qtPFdGUvHvEytlm1r+Xlm0/TXWeHL9E3pbnLamQ1hWmoCU8TA7hR/8nT6 oxjEHl4BAwUPF6i9N/FCK64jsVT47q05bdV2cUNfllDX3ihIFoT3NtFAa/daiqQZ xDGT+wlXJ7YCtCLTP3pVe3Smeu+DWinp0Y+I1ay8magwli+tSYVbftHU+w7tEL4I zsYseqC8EmHTF3Qgbx/BYSOsCxIdXC2jHXUoXN/MKxUi0Vv6ruC26kLd13Cqe67X BUmNEc6TYRIsd007Rt31mTnTjK8IG6NFYRXQ0cgc+AUX9kCQzhsRmyElEojY4d/K gqrGujyoLd+QbkfI+D9BSw5AnqtzqOVCQ+5H8zRSYoLiBOuQrQ29CVbuSEKm8prq kmpAA5T+Y0U7FuZFJPmePXJ37yco3/Z13KI+cozcnsb6bThBDc+XfgXd4fX8lsuR qxP7yjt7khi4OGv5yq8RLR9WfbyqF34CgjWsspOfQFy14pMExkmy+DFkQH7PdCuA UKqc3YiRPIlNpjvdyy69IS3b3f8YLmyGU/HkvF5wISg2plRG4QlFfJxQKVbSCt5W XEXpRDQD6pBaRDQPXqeOHx1BgU/V4ThtN8yjPLvgUFUel3bDBRb2bN+guNtiwUKb qCvLDsyC1A== =fqX2 -----END PGP SIGNATURE----- --=-=-=-- From nobody Tue Jun 17 19:11:34 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMGh0029gz5Vpqp for ; Tue, 17 Jun 2025 19:11:44 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMGgz1Gvpz3vrl for ; Tue, 17 Jun 2025 19:11:43 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-451d3f72391so68905455e9.3 for ; Tue, 17 Jun 2025 12:11:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750187497; x=1750792297; darn=freebsd.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:date:from:from:to:cc:subject:date :message-id:reply-to; bh=wRy3qWjCu9L6gdsB8eNzbbk0gtKOQxsTTeN09z1a69s=; b=hHF75kp5ZGccwLjNmQX37eZgQfaaDFaUD/UgG+OsyNqKUweYxQBNJWkYvPoddlC5Pr 9aVUQkREYERfLnbIZRSa3UcvoOBHOWTAZp2tOzLmexI8rWWGTj8nzjzjNdGSxK6tZKYR HDwX4BDfj7lv81KeJMD02DetFDAsnH4rTR4tk0YA7EhtloNQFJR2rQPJBioiGM8hHLP3 wI8A0dTEaT5gGMADA4sAxcSdcioY7YsQyO2EgRlsW03rgdVLJ43R7/uhx5Xni3y8Nlm/ 6iMCo+EdLih9QqeeWKW3zotimsQlFCHWXUpuXu56XzZeq+DxnsRCmf/pyFMZ6/m5NhP5 EwXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750187497; x=1750792297; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wRy3qWjCu9L6gdsB8eNzbbk0gtKOQxsTTeN09z1a69s=; b=DekDwqSwgmk3iVJfMFOkm2cddWGRaC23r8RUV9vRCRkmTbXHfxXox1JC71mlWmaD2H 4qUBEGHffeJ+vx70o/5Vqc2XUfH3ak5IVxEw+x5xJ5IqghhQIIjuOeCAdYOSRZ11ydhY 54S6lL5ySPZlsK41cv+SWgfnIUVtg5xKiaJmUr1MvIZ7fosQ4PHgqKhbZT3fapRfwxke yEXQ1AwiyECHUzE3AuGHy/H1hkQv2PpWzTTehfHgtAe9ZuEdFSK8epDfpQXBm3W/JX9P QIb/noqVCz7xzm/9kAar6+4HAhobhqRxrec1AN8fE0RlT9ZrWqiXUCHwBHfjm4s0CTNc D+Kg== X-Gm-Message-State: AOJu0YzCjEphZaj6GdbxKxx3OTZjj+YeV8a3+70tf37xdWiSulYy8cjI WLLTOOHTdxjaChFppdeAXYq4mjshlxRefedUUiFm8CQ8X8o5VnNGNkJp X-Gm-Gg: ASbGnct6iqnj6FxKYMELdaxBTIank5e4Ytt8R6FyMIxbmeWVZn2JuEQ9pcz6524+Ppx 48CiQKCfZfLckftYkldS3IwZ1Y3xzYcC4XQNuL0m7UFZZltL/5EkBxac2l60sSQAlPtl5Rl0Ntu +4JZt2PPZIc/ODeruGJVovkXo2jZ7KsKkMq/4HivwQFrOquUSdpSEnjxfsVjSkANkGHzYJedOgQ AXufCOJKa12ciJKEvHFo43LpNk5GFStbtkz5ZF8vhuZCxV4bWxZEyEo/OhynjuWsbN+Wu4wnYac ZQ+CK8zVAoAwXfnmVpPznrJ5YxpVule2Y7vDuCj/I+xE8SsjconQy4jCnku1SJvMpw== X-Google-Smtp-Source: AGHT+IGTZNS/8PkEqxgR3QILsC49KVdkhDKxMknwKHAhuOuCak4BbpDSTahJ896POKH2I85Y+tOz3Q== X-Received: by 2002:a05:600c:3e19:b0:439:9424:1b70 with SMTP id 5b1f17b1804b1-4533cadf928mr138790465e9.30.1750187496529; Tue, 17 Jun 2025 12:11:36 -0700 (PDT) Received: from rimwks.local ([2001:470:1f1b:4dc:bddd:1185:7447:9995]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a568b087a9sm15030322f8f.55.2025.06.17.12.11.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jun 2025 12:11:35 -0700 (PDT) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Tue, 17 Jun 2025 22:11:34 +0300 To: Paul Floyd Cc: freebsd-hackers@freebsd.org Subject: Re: [Thought experiment] Bringing swift into an experimental branch? Message-ID: <20250617221134.616f464f@rimwks.local> In-Reply-To: <7ced7b14-0508-42f0-b432-0c609a6245a7@gmail.com> References: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> <20250617013743.3b5108f0@rimwks.local> <7ced7b14-0508-42f0-b432-0c609a6245a7@gmail.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.49; amd64-portbld-freebsd14.3) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4bMGgz1Gvpz3vrl X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] On Tue, 17 Jun 2025 08:12:45 +0200 Paul Floyd wrote: > That said, there's a lot more to safety and security than just the > code. Rewriting millions of code of unsafe C that has been hardened > by decades of work to plaster over the CVEs is just going to lead to > a rash of new exploits and crashes. > Safety is a modern bull shit ideology. Most cryticall things have recovery procedures, so no matter crash or exploit will happen. For real safety we have a guns and other real world things. From nobody Tue Jun 17 19:44:03 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMHPf1YLhz5pgQN for ; Tue, 17 Jun 2025 19:44:22 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMHPd6JN6z3HSt for ; Tue, 17 Jun 2025 19:44:21 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-e82596e88c4so2193388276.1 for ; Tue, 17 Jun 2025 12:44:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1750189456; x=1750794256; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Glju0JS3oaG0iy7QukSVh4rCzF6ltOyNebbs4mcT6+0=; b=QBfiCKZyLWtbVp4hT/y/h1UIH2L62nJ6wY5MOuW9/Kw0SLKJPZPuL0RT6ymv4/59W5 Ovl84seJZmfyqRmW1+o2a4uB6x7CRoomGIh7sDQKPiwKC/l2IRzg7wPtqHYfXiUK4TDv JKF47vyrDsaiYlBa2koT2ltSkm2f3042mcKn8nrQwdZxbZ67Y2UHSQFCCKG3FzFgtiRd +nQAfEW2vJwtq1oQcjoaQJ+1Xx495VyolOV7LXXd/8FzsMKKMpf75SV94YXQ8PF1bpVf S746KLbLjLhigNNJRecbxuRnFnX2Tm67vyV2AQAZ4HUnNaxOsiu22DuvqyQcLYD/Ymlf wOmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750189456; x=1750794256; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Glju0JS3oaG0iy7QukSVh4rCzF6ltOyNebbs4mcT6+0=; b=RC+w4Xh29I+toKK2rm0/bpgX+g/SfXZcmY8yXwH+FjNvJve+/XW4xjJZTXbyy60h02 cTETCXJuUFuZ33wj8GZSJ5Opk44TfL7pnzIruOYNJ1eSlb4x9lJYM9t2N/aYydPbdOce RL/9J5O6tBS+coGGyqIiv92xjaiX8ZNnDxXOhVXfOGaVZMuvvzv8jn8mvn2iV4M1aR9T rWx7DMz0vk7ONgZrPhqMikopafQpTH6vVfxZpKnk34l4TzSrjBMIq+BoP1Fq461BectU 8EpzcVOxXqldz58MSkJiBNnF7z0c3Negb7PO2SEa8fJdRz3tYSNj3dOmcS+Ydvc7AA4k NNow== X-Gm-Message-State: AOJu0YxcrXVAocWLr5xyGm4Lk760wUfhSuuU0kaE16xBGev4BYTbG67K FkhZnz+ZLdiDxWQr/K7z7Rk40k8EGCyoajCbMt5N3SzQ5JTEJjt9JeT/ZT2EAsDWkw== X-Gm-Gg: ASbGncsAw0HN+3YJQ71rGGdr7XwGTZxT02+mXRAzL+cdgMOHOVa2g4oKiwwm624oG77 RTGiIrZs3S/1+d9QStbg2/gcFd+KaOJx2UUlDtvdMcbQZY6gDgZSCYWxS3bCxzZUvRhsQ1bb2Hn 13TTJOVjmqz9k56t4Y4vFxtmEG/PerhQr5zIvFvpWkwtwphf1IZQK4ZqCMmIIvcuHIt2NFkaCWR bRbxQHbgWQh4RJtXvg1QwpLFs4+tuIQsmMm+KOIqwJ5c0q7hFryky+YXBxKkjJPEMwuCCoRyhxj uNe5vsc9tbbAjOLQetntpiUxMpX3JAbuoaWlG+EfKaIlj7Raa3LLSrErpHeETW6IJFYZgIYrJVG hdAhMi3oI9Mq+bEpFrGGRHEU= X-Google-Smtp-Source: AGHT+IE3cNiT7zP71E9JWkKvMC2gvHaLG9z2yq0br3sD3IDv3sIblti5mAM9p+q0ELmmHefZSFRNsQ== X-Received: by 2002:a05:6902:2803:b0:e81:81f8:9edb with SMTP id 3f1490d57ef6-e822ad90167mr19582032276.36.1750189455899; Tue, 17 Jun 2025 12:44:15 -0700 (PDT) Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com. [209.85.128.179]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e820e3160acsm3770349276.43.2025.06.17.12.44.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Jun 2025 12:44:15 -0700 (PDT) Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-711d4689084so10489737b3.0; Tue, 17 Jun 2025 12:44:15 -0700 (PDT) X-Received: by 2002:a05:690c:4a0c:b0:70e:73ae:76a5 with SMTP id 00721157ae682-7117544b8c4mr212112617b3.24.1750189454650; Tue, 17 Jun 2025 12:44:14 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <8634byieib.fsf@asn.ftfl.ca> <86zfe6qko2.fsf@asn.ftfl.ca> In-Reply-To: <86zfe6qko2.fsf@asn.ftfl.ca> From: Tomek CEDRO Date: Tue, 17 Jun 2025 21:44:03 +0200 X-Gmail-Original-Message-ID: X-Gm-Features: AX0GCFterzbIJaFTWlLrRde1vaMMS0YCWnYadEj37DaA7c62lZCzRm4Znun4h9o Message-ID: Subject: Re: Notes on improving the installer To: Joseph Mingrone Cc: hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4bMHPd6JN6z3HSt X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] On Tue, Jun 17, 2025 at 8:37=E2=80=AFPM Joseph Mingrone w= rote: > > On Tue, 2025-06-17 at 19:17, Tomek CEDRO wrote: > > > On Tue, Jun 17, 2025 at 5:18=E2=80=AFPM Joseph Mingrone wrote: > >> Yesterday at the Kitchener-Waterloo hackathon, we spent a few hours > >> reviewing the FreeBSD installer and identifying areas for improvement. > >> We've documented our observations and suggestions on the wiki: > >> https://wiki.freebsd.org/ImproveInstaller > >> Feedback and contributions are welcome. > >> Joe > > > Hey Joe! Its totally unfriendly to (side)install FreeBSD on a drive > > with existing operating systems everything needs to be done by hand in > > that case while this is probably most common scenario for new users > > :-) > > > I reported this on bugzilla as feature request some time ago.. should > > I add note on wiki too? :-) > > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241296 > > > Thanks :-) > > Tomek > > Hi Tomek, > > Yes, if you're up for adding your and David's thoughts to the wiki page > that would be helpful. > > There is a GSoC project that /could/ solve some of these problems if > that work could be integrated into the installer. > > Joe Notes added thanks :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Tue Jun 17 20:19:12 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMJ9h3ysjz5pjWv for ; Tue, 17 Jun 2025 20:19:04 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mail.digiware.nl (smtp.digiware.nl [IPv6:2001:4cb8:90:ffff::3]) by mx1.freebsd.org (Postfix) with ESMTP id 4bMJ9h0HTpz3fQ1; Tue, 17 Jun 2025 20:19:03 +0000 (UTC) (envelope-from wjw@digiware.nl) Authentication-Results: mx1.freebsd.org; none Received: from [IPV6:2001:4cb8:3:1:cc9c:c6b1:4d11:355f] (unknown [IPv6:2001:4cb8:3:1:cc9c:c6b1:4d11:355f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mail.digiware.nl (Postfix) with ESMTPSA id 244CA80071; Tue, 17 Jun 2025 22:18:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=digiware.nl; s=medusa-2017; t=1750191531; bh=rttrFopUIqulv3q6dyAX7W/Teec+EmAraRoRoKn0TsE=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=mCg4JMAMqO07Wysg4mCqJkUuA5TxUa0+I9/qPsIW6HJUQYO6njZX+e48hhHsOatRw YteHTlEQDXmLN2WD0BsWA6lE6HqfCgT1gX+yKbMvkQXmhW+VvyL1clymS/ZErmUHe0 T4bnvHx0TBiClL/OCUkwvJUpSj+dnTs0iVeRmJZSXk77+UkroEpfMJ0vHgVXJNn+HA AZK6lGe+TQ2lccAr8gGPnSrWRX7KDvRizNfv97r2aHOB0Ryci69FfKLHq3DUogrU7L uGnf86MYrCK0i/NCnChqLjYfWP50MoaIXY6u0YB8g5cOaBP08otXDEsKtyydizwQ/A KD9DtR+EQtX4g== Message-ID: <775a3d24-6c21-4dcf-9657-5a3e89f6ab6d@digiware.nl> Date: Tue, 17 Jun 2025 22:19:12 +0200 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Notes on improving the installer To: David Chisnall , Joseph Mingrone Cc: hackers@freebsd.org References: <8634byieib.fsf@asn.ftfl.ca> <69D0FE56-6D3E-4B49-9AD0-68752172FDC6@freebsd.org> Content-Language: nl From: Willem Jan Withagen In-Reply-To: <69D0FE56-6D3E-4B49-9AD0-68752172FDC6@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Server: router10G.digiware.nl X-Rspamd-Action: no action X-Rspamd-Queue-Id: 4bMJ9h0HTpz3fQ1 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:39700, ipnet:2001:4cb8:90::/48, country:NL] On 17-6-2025 18:50, David Chisnall wrote: > I recently used the installer for the first time in ages (most of my FreeBSD installs have been around for many years) and was quite surprised that there is absolutely no support for non-trivial ZFS installs. If you want to partition the disks yourself and then use ZFS, you have to: > > - Drop to the console. > - Manually create the partitions. > - Manually create each dataset (the list of the ones you need from the wiki is stale). > > I would expect to be able to create the partitions in the partitions GUI, tell the installer the kind of ZFS pool to create (mirror, strip, RAID-Z[2]), and then have it create all of the datasets for the install. It took me four attempts to get this right (well, rightish. I missed a dataset and needed to create it and shuffle files around later). Long time since, but once I got so fed up with this typical problem. That I did create a patch that allows to actually size the first boot partition that BSD-install creates. That allows you to do all the other partitions after the install. I did submit the patch through bugzilla. Maybe it is still there. But like I said, quite some time since. Perhaps I can still dig it up someware. What I remember is that hackking at BSD-install is not the most enjoyable things. --WjW > Ideally, if you are partitioning multiple disks. It would be nice if there were some way of saying ‘this partition map on all disks please’. Creating the same partition layout on every disk in a RAID set is tedious. > > On top of this, there is no support (in the installer or, as far as I can tell, in freebsd-upgrade or pkgbase) for putting a UEFI partition on *each* disk and keeping them all up to date. It’s not so useful having a RAID-Z or strip set if the bootloader isn’t mirrored (can gmirror manage this transparently?). > > If you enable encrypted swap in the installer, it creates fstab entries that create the GELI devices. It does not label the partitions (swap0, swap1, or something useful) but uses the raw device nodes. Nothing in the system appears to check the underlying partition type when enabling swap on these devices, so if you plug in another device and things are renumbered then swapping will write nonsense over a different partition (I was fortunate that, when this happened to me, the destroyed partition was one I was planning to delete anyway). > > I think I have filed bugs about all of these issues. It would be great if folks looking to improve the installer could consider some of them. > > David > >> On 17 Jun 2025, at 16:17, Joseph Mingrone wrote: >> >> Yesterday at the Kitchener-Waterloo hackathon, we spent a few hours >> reviewing the FreeBSD installer and identifying areas for improvement. >> We've documented our observations and suggestions on the wiki: >> >> https://wiki.freebsd.org/ImproveInstaller >> >> Feedback and contributions are welcome. >> >> Joe >> From nobody Tue Jun 17 20:22:26 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMJFK3VGMz5pjfP for ; Tue, 17 Jun 2025 20:22:13 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mail.digiware.nl (smtp.digiware.nl [176.74.240.9]) by mx1.freebsd.org (Postfix) with ESMTP id 4bMJFK05wCz3jDT; Tue, 17 Jun 2025 20:22:13 +0000 (UTC) (envelope-from wjw@digiware.nl) Authentication-Results: mx1.freebsd.org; none Received: from [IPV6:2001:4cb8:3:1:cc9c:c6b1:4d11:355f] (unknown [IPv6:2001:4cb8:3:1:cc9c:c6b1:4d11:355f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mail.digiware.nl (Postfix) with ESMTPSA id A2CB95FF7C; Tue, 17 Jun 2025 22:22:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=digiware.nl; s=medusa-2017; t=1750191725; bh=xN/Q5iZ/BPM7+FeZYjpXIedHxAo0JcG3fTWETaqFfKY=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=NxvYtCnzV6A+4Z0K8NBQpwZyHkKSRvzMbmMg1prw82wJwKKBoAUngdQmFuWrHEtNO 2C9IFw8Ebn5e39vRiy1KT3THJCKn7CvkcOSVwGEy9anS/8sKvbiA/wJ+HIEE+YZGYv Y4BISZH6TPdDCkvFFEN96BhZxZ2vZhuoaNhz1mYuV1qSezJrpEC1glISzK5mi2nDPt /n0SWYpuB60tddUah06EqfrKacVdl5qKjrJ8UjUy+Hk2i+usKuiEBCMMFce57Li50r qrD/72lnDeHOvP09zLvjptpA8TXpx1GBRAZt+EC5GMewioaeWo3uT+nEfixXsVT2aS wWWThNk72ks1w== Message-ID: <13699776-a1a0-48ee-be1f-2f4e03912dc7@digiware.nl> Date: Tue, 17 Jun 2025 22:22:26 +0200 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Notes on improving the installer To: David Chisnall , Joseph Mingrone Cc: hackers@freebsd.org References: <8634byieib.fsf@asn.ftfl.ca> <69D0FE56-6D3E-4B49-9AD0-68752172FDC6@freebsd.org> Content-Language: nl From: Willem Jan Withagen In-Reply-To: <69D0FE56-6D3E-4B49-9AD0-68752172FDC6@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Server: router10G.digiware.nl X-Rspamd-Action: no action X-Rspamd-Queue-Id: 4bMJFK05wCz3jDT X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:28878, ipnet:176.74.224.0/19, country:NL] On 17-6-2025 18:50, David Chisnall wrote: > I recently used the installer for the first time in ages (most of my FreeBSD installs have been around for many years) and was quite surprised that there is absolutely no support for non-trivial ZFS installs. If you want to partition the disks yourself and then use ZFS, you have to: > > - Drop to the console. > - Manually create the partitions. > - Manually create each dataset (the list of the ones you need from the wiki is stale). > > I would expect to be able to create the partitions in the partitions GUI, tell the installer the kind of ZFS pool to create (mirror, strip, RAID-Z[2]), and then have it create all of the datasets for the install. It took me four attempts to get this right (well, rightish. I missed a dataset and needed to create it and shuffle files around later). So check for     https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242983 to be able to set at least the first ZFS zroot partition. --WjW > Ideally, if you are partitioning multiple disks. It would be nice if there were some way of saying ‘this partition map on all disks please’. Creating the same partition layout on every disk in a RAID set is tedious. > > On top of this, there is no support (in the installer or, as far as I can tell, in freebsd-upgrade or pkgbase) for putting a UEFI partition on *each* disk and keeping them all up to date. It’s not so useful having a RAID-Z or strip set if the bootloader isn’t mirrored (can gmirror manage this transparently?). > > If you enable encrypted swap in the installer, it creates fstab entries that create the GELI devices. It does not label the partitions (swap0, swap1, or something useful) but uses the raw device nodes. Nothing in the system appears to check the underlying partition type when enabling swap on these devices, so if you plug in another device and things are renumbered then swapping will write nonsense over a different partition (I was fortunate that, when this happened to me, the destroyed partition was one I was planning to delete anyway). > > I think I have filed bugs about all of these issues. It would be great if folks looking to improve the installer could consider some of them. > > David > >> On 17 Jun 2025, at 16:17, Joseph Mingrone wrote: >> >> Yesterday at the Kitchener-Waterloo hackathon, we spent a few hours >> reviewing the FreeBSD installer and identifying areas for improvement. >> We've documented our observations and suggestions on the wiki: >> >> https://wiki.freebsd.org/ImproveInstaller >> >> Feedback and contributions are welcome. >> >> Joe >> From nobody Tue Jun 17 20:41:12 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMJgW2SFKz5plBW for ; Tue, 17 Jun 2025 20:41:27 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMJgW0D09z3tdg for ; Tue, 17 Jun 2025 20:41:26 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-af6a315b491so5671688a12.1 for ; Tue, 17 Jun 2025 13:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1750192884; x=1750797684; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=EvsVQhOES0lcV2y4vqrUWWoDNfN0EZeAGQp/jUK0N/o=; b=htcnZRes0kQFyBVsEjgx345g3ZJSaTGkRs2zVGBbvUJQ+pHDvsoEKC89yiqVWqc1YD Dft5B2SXpi9rsJSSJhaCZFBOrk/6t2QKUNulF0MJiq7ZfZBnlxQ3Z4MGj+GoMeIQ9UEN d+Y88YKPIvMfu+G3HMxTdxWGPm9KpGp8PeaysoDgBvzt8sIzyBw9funvNJvBCxIwItY+ H0Lfhjy/pfxJFN2w/8DlhLFxiIIUjjaWQYon68F98Q1akNirtKLAn/1Q1eBiV4pPFXCw EIN+RbB7O1vC1I9b5rtWmuvnCgXLbdSIt8gsJHGbQ1cRrtEGE+O7RhpzwOIVgxTc4Iq/ oFrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750192884; x=1750797684; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EvsVQhOES0lcV2y4vqrUWWoDNfN0EZeAGQp/jUK0N/o=; b=fHHIK0PBbm8vDVpyve2ysFnNIb06wyr6udn8EWpw6HB0g8uY1mbbVCOZ5O6dSIJX4Q 92SNoHz97trf0Pa2Kf1uAqKKvFmGnAStAn8WW52F8L1TEYrUzELE8p3XCoYunvHXKqki sN+X2B6/xGf8zDqTZzNXB0Fse6EnmhbFK7+CwGC02zx8oXeWVdEbxU8Hbes/w8Igo60p 0ip7tjbCFkAAz6sP+mrj5awqoi9BVhRmDnmQj5fI7IzqiybKX7pDBQIvgUQSsP1HANK/ iyH74IDRa1vLV69YqoAS4ataBbrkrOPC/qVyD0lfPOS6KlwcyhuYmS4Ya9jUWrGT/CpF RvNA== X-Forwarded-Encrypted: i=1; AJvYcCWZFT3/YOJ2jhNPGd70SVXRT/Kc8YKKlqsXbvNOs1rd0guz8BOXJOLtZvsulIWBI2yweDn9rpkA@freebsd.org X-Gm-Message-State: AOJu0Yx9S+rfAPZqRzNkYwIqjiPqghZySjrnqCzb+Zz6GcsOk1qaLk+7 BRlNwIVtRpe0aCKUwhuRy+Io1RNjgBVYhaJ2noKBX86x0L8/C0i0dDvQbbMsotUqt2CbbE1E2cX lmINhgBV6PSZgLs+j+rwzDSIhV6gqDqZLTXdiysmsVw== X-Gm-Gg: ASbGncvr8w+PUaJZ12FUmxucHGqP4gI0uhMxZIqQaSop832eDGxrqnEwFnhEMweH9r1 e/J4jIo/CftVe5jcn64vXE4UaX7TJjDaObJD3qJoDsGTnBVc2Wy6YJN5GjeybkAM25Xf6s24fYH oC62qQA6r5X3Ezw0Dk10xEOhz16mnbLsUtLuLmjTen8vI0W7YMbS/TsA== X-Google-Smtp-Source: AGHT+IEHgNOn3GT7aeFNkP5iGzkGuy3gVX6Vlq8MJzegE9gmIkkNNNNrxm1N3ncZ4hRp+Ir+cy+FSoh0q2YCz4q6+y0= X-Received: by 2002:a05:6a20:d049:b0:1f5:8a1d:3904 with SMTP id adf61e73a8af0-21fbd459503mr24373760637.7.1750192883819; Tue, 17 Jun 2025 13:41:23 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <8634byieib.fsf@asn.ftfl.ca> <69D0FE56-6D3E-4B49-9AD0-68752172FDC6@freebsd.org> <13699776-a1a0-48ee-be1f-2f4e03912dc7@digiware.nl> In-Reply-To: <13699776-a1a0-48ee-be1f-2f4e03912dc7@digiware.nl> From: Warner Losh Date: Tue, 17 Jun 2025 14:41:12 -0600 X-Gm-Features: AX0GCFsaBLv68MkLlDG-lHztkrvXrR8qWeFdFCC5I4bSkajXUx2BUTeWNjt9CUQ Message-ID: Subject: Re: Notes on improving the installer To: Willem Jan Withagen Cc: David Chisnall , Joseph Mingrone , hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4bMJgW0D09z3tdg X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] We've had this https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262770 for a while now. There's also https://reviews.freebsd.org/D42150 which is a good starting point, but IIRC there were a few nits that needed defuzzing. Warner On Tue, Jun 17, 2025 at 2:22=E2=80=AFPM Willem Jan Withagen wrote: > > On 17-6-2025 18:50, David Chisnall wrote: > > I recently used the installer for the first time in ages (most of my Fr= eeBSD installs have been around for many years) and was quite surprised tha= t there is absolutely no support for non-trivial ZFS installs. If you want = to partition the disks yourself and then use ZFS, you have to: > > > > - Drop to the console. > > - Manually create the partitions. > > - Manually create each dataset (the list of the ones you need from th= e wiki is stale). > > > > I would expect to be able to create the partitions in the partitions GU= I, tell the installer the kind of ZFS pool to create (mirror, strip, RAID-Z= [2]), and then have it create all of the datasets for the install. It took = me four attempts to get this right (well, rightish. I missed a dataset and = needed to create it and shuffle files around later). > So check for > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242983 > to be able to set at least the first ZFS zroot partition. > > --WjW > > > Ideally, if you are partitioning multiple disks. It would be nice if th= ere were some way of saying =E2=80=98this partition map on all disks please= =E2=80=99. Creating the same partition layout on every disk in a RAID set i= s tedious. > > > > On top of this, there is no support (in the installer or, as far as I c= an tell, in freebsd-upgrade or pkgbase) for putting a UEFI partition on *ea= ch* disk and keeping them all up to date. It=E2=80=99s not so useful having= a RAID-Z or strip set if the bootloader isn=E2=80=99t mirrored (can gmirro= r manage this transparently?). > > > > If you enable encrypted swap in the installer, it creates fstab entries= that create the GELI devices. It does not label the partitions (swap0, swa= p1, or something useful) but uses the raw device nodes. Nothing in the syst= em appears to check the underlying partition type when enabling swap on the= se devices, so if you plug in another device and things are renumbered then= swapping will write nonsense over a different partition (I was fortunate t= hat, when this happened to me, the destroyed partition was one I was planni= ng to delete anyway). > > > > I think I have filed bugs about all of these issues. It would be great = if folks looking to improve the installer could consider some of them. > > > > David > > > >> On 17 Jun 2025, at 16:17, Joseph Mingrone wrote: > >> > >> =EF=BB=BFYesterday at the Kitchener-Waterloo hackathon, we spent a few= hours > >> reviewing the FreeBSD installer and identifying areas for improvement. > >> We've documented our observations and suggestions on the wiki: > >> > >> https://wiki.freebsd.org/ImproveInstaller > >> > >> Feedback and contributions are welcome. > >> > >> Joe > >> > > From nobody Tue Jun 17 20:43:12 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMJjs5RhYz5plD5 for ; Tue, 17 Jun 2025 20:43:29 +0000 (UTC) (envelope-from paulf2718@gmail.com) Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMJjs0hXjz3w3n for ; Tue, 17 Jun 2025 20:43:29 +0000 (UTC) (envelope-from paulf2718@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=lGkEOoS2; spf=pass (mx1.freebsd.org: domain of paulf2718@gmail.com designates 2a00:1450:4864:20::332 as permitted sender) smtp.mailfrom=paulf2718@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-450cfb6a794so37138195e9.1 for ; Tue, 17 Jun 2025 13:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750193002; x=1750797802; darn=freebsd.org; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=DIUF4ylyWX98brO5oQkc58OMz7YWX7lmY/gZHbb+D/4=; b=lGkEOoS2r/n0p7jSItHTcT0Or7Hz9+BMKSCKqSCX0h6oQCDIcx1jyo1yhmkoYeeoL+ g46XxG20iVdy6+oJsIbs6BQ/QykbVFyPxZgrrJpq1BlxEBLN3cqFo5aeAtY2F3f3WcjS 8DW6v89y92S64qaZEbz4SeKjKP8+BC2fIqISHScjy04y7DzTNxvbLpRtN/Gmc93zvCXR E7xjoLrZTgiTsHDoJN3BFgdTvLM/rrJmkKqskyJ8Ywir/vd1BntJrUnslI/izdl/tdO4 8BeLxW5DBK/PXlMgQnTAvA/y8PQ1kApPFXL0R7drGEyj9VGyftrzOc7Epbv3GW1LjX7v +4fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750193002; x=1750797802; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DIUF4ylyWX98brO5oQkc58OMz7YWX7lmY/gZHbb+D/4=; b=Kzn7h3kJ60Pt6LG4U36DPcJgLUQ0181qLuGTnGFLPCowPll4zKC1h8Up+zAjnUrmG8 4ukcQAjlRsOAvd3ljAMPE021Hj+7Hljum05tlTwUi5hWpxurLQW64PRfYNdCbY3m/Ey2 xXULzNkCwA606x99/KuaTSF8sfi6ajpyn4Nln07MMe2HzUD0q1mAhj+7qX7CMxpCRQHT e6MDXAxKKZ+qpNUgAvT11Hltn/n77mWkiVXPp/UH3IIcHSJrp02+ptWUH+Lj+JfI3Wtr 7qEmMsgHctst5MwR+MU5RQL66iw0WQ57PwmtX/GHAb01Hj/dLFRSEF2+9qlMRuFLl4zq k6Jw== X-Gm-Message-State: AOJu0Yy/YRNmL0XxA+qN3Ka5knrVqXV+ZfPGNPtbNlMOSXuWNMAFD+Sp B4mENUxjkplVyVYYSkrB3ulDXSqFZuftVGBB/fNJzv6auUfEzsvLUGsFC3blow== X-Gm-Gg: ASbGnculDq4UCF6QWpvODsfKWSj9VIpjoaDuAnzZyRFtmblyys/Cw7ERLj7Qgt9jB0y xoaokIt3CHSEXyU76C6aIsd71R88qfgUkJeAhS+0afqWJZeb7QrDTslYYbsuilpJLfdfO8LC3xr pdHLqxR4Xcl17ZQ/wkqbC5YUzxDN5WiRmBBBCaAKZI68ZdCF75fnHZ7jVdpelDrkAaCvoa9nzZx 8bcGL/vsr/Pmi4c2Kj1O7KKcRYErSuQtvxC2bSY2PQGQqufKyncJfd2GSONevBzeMAqQqkEx5hT 2691mCIyMAooZcNfEy6ST385VdFsnxI4667XBY4mgWweYgWDCYBZtm6pq4agAb12Lx/Y9fwgmrc FcZBKplqJdalkmtL9aHAI67Zi X-Google-Smtp-Source: AGHT+IGJXu7121SySjOYbbSdgfFmyCZrd5q2rTkD09C9eYZS7H4oooMAwp0xEB5PqJjWCVZJyOiySg== X-Received: by 2002:a05:600c:3e0f:b0:442:d9f2:ded8 with SMTP id 5b1f17b1804b1-4533ca6e93fmr161261125e9.15.1750193002290; Tue, 17 Jun 2025 13:43:22 -0700 (PDT) Received: from smtpclient.apple ([2a01:cb15:8545:7700:acb7:c5cc:5c7c:c26d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a568b79f45sm14908859f8f.101.2025.06.17.13.43.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jun 2025 13:43:21 -0700 (PDT) From: Paul Floyd Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6.1.11\)) Subject: Re: [Thought experiment] Bringing swift into an experimental branch? Date: Tue, 17 Jun 2025 22:43:12 +0200 References: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> <20250617013743.3b5108f0@rimwks.local> <7ced7b14-0508-42f0-b432-0c609a6245a7@gmail.com> <20250617221134.616f464f@rimwks.local> To: Freebsd hackers list In-Reply-To: <20250617221134.616f464f@rimwks.local> Message-Id: <1A6E4DCB-20C0-42D7-B06F-8427D49BD6BA@gmail.com> X-Mailer: Apple Mail (2.3731.700.6.1.11) X-Spamd-Result: default: False [2.49 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_SPAM_SHORT(0.98)[0.977]; NEURAL_SPAM_LONG(0.81)[0.811]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_SPAM_MEDIUM(0.20)[0.201]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::332:from]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4bMJjs0hXjz3w3n X-Spamd-Bar: ++ > On 17 Jun 2025, at 21:11, Rozhuk Ivan wrote: >>=20 >=20 > Safety is a modern bull shit ideology. Oh for the good old days when you could sell all manner of deathtraps = without all that pesky regulation. > Most cryticall things have recovery procedures, so no matter crash or = exploit will happen. Critical applications like health, aerospace, automotive, railways and = industrial control usually go to great lengths to avoid crashes. They have their own standards that have to be met. I do wonder what insurance companies will make of it all. Will they be = willing to insure safety critical products built using memory unsafe = software? > For real safety we have a guns and other real world things. If the local nuclear reactor goes into meltdown because of yet another C = buffer overrun you=E2=80=99re going to shoot it to protect yourself? A+ Paul From nobody Tue Jun 17 21:49:57 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMLBv6QP4z5pnXt for ; Tue, 17 Jun 2025 21:50:15 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMLBv3xQxz3LBJ for ; Tue, 17 Jun 2025 21:50:15 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-b2c4331c50eso4981556a12.3 for ; Tue, 17 Jun 2025 14:50:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1750197008; x=1750801808; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=g5MLB1nlkNH7tpPiBAoqkYxH1M8ZxdRWUEhDsrX8urw=; b=lojrjx334lGvUe3nJa4DiTSLxcSNcdSfhJL17lvssMmcrNbkBXC4i2mwd7L55HP33+ IcOkKuKOk49ha9lHRrROJTK3xKRw4/XG4qHbMT8BxSIYbpzLeSrofxBgGctPl5mTe3+u 5Frm3YNjqzYp1BtRdAI7X2+4gMfYU0aPvqFrJzOf+au3e6P08XknNGPWhWOhhAAxxHkn 4M0RNqfSJ2t/lh/bdICqHBh03r6EskOICKdxF1loPsKiw17JGgehNs2Qb10hnTdMU7Su qHe89W8iWL5FIZRjrKgXt/XzXI4dRDt93kQYigyA5pMwbADUhBKh73huXKeQzxXtH463 5e9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750197008; x=1750801808; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g5MLB1nlkNH7tpPiBAoqkYxH1M8ZxdRWUEhDsrX8urw=; b=W2uGMea/gcZK/lB4BWpME/xMJz9kBvknMmkS/QZ93i1ppMQ9YsU/Y54GjyTMLCtp85 QNJUnORKrbGw1ZQR2LdkjdhQemVxd2hqFN+EaPQ4x7MEpJQ4Yd59axzHmm3h1GxgflJ/ Qqy/Sy130W+y+yttHNvuy7DIizc6NkcKDRZlcsOroONMYwgzLvqeIvhYzY5c7P1u1Z3J EVNPxLdhkYlsYoenyOmzyIv/B7RheBgII4Rn4duX10pueMCC8I2IK3lVu47/7k15403L trYsf3zNLxlZPpNl3fLQWnGZIuLyaPbd0uWTDUOldM7Su7jeLpHq5dyTJULa72q+Zai0 2QsA== X-Gm-Message-State: AOJu0YzxxlXrxK/gzwQK5aSnU2x2M24ngYCMPuxr6n1EFYctVHPfnjfW dKiBviseDDW5Zn2J4GQb+qz9FZNztiAzD3InpJRGWY0nje6u7I2WgoFUgDWnsD5baAZ/jfgF8wO I8vO9arGuEeH8/+oQZGjE2g8c5uGzzzmrmdSUFcEapF4HMJORZgGS32eGHQ== X-Gm-Gg: ASbGnctxE8yl04wtj/K+arFAoIoduEkvISLw4xz8v1j1KuCO8jASIbGhK1rpcfpOrgx mZG5r/wOhjx5eO6D8XIIglzihSdSdaf5z5oY171D/jjheGPliDnWIeAwmi7UOMcL6e+iZE7mgwE SzDNHX+ZLkgZ7WQjXwX/IG5LnjsaDRXqAqdHfaaH8ZFWg= X-Google-Smtp-Source: AGHT+IFj5lrFgLhK2FW7NnG1rfbXjQGl010nHd1qdkgGXrNqO4sAOsqqEGjino7+ZHH1tZ5/g2tyQVm698WEN13Oc7w= X-Received: by 2002:a05:6a00:6c89:b0:748:e1e4:71ec with SMTP id d2e1a72fcca58-748e1e477e3mr2331860b3a.12.1750197008189; Tue, 17 Jun 2025 14:50:08 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <9c7f2953-2fb3-4c36-977c-41aa7fd55c5c@delphij.net> <009e52a1-4d6f-42b6-905f-53fbf1c69065@denninger.net> In-Reply-To: <009e52a1-4d6f-42b6-905f-53fbf1c69065@denninger.net> From: Warner Losh Date: Tue, 17 Jun 2025 15:49:57 -0600 X-Gm-Features: AX0GCFt48OvCb7fr4QvoS_uYi3TPmIqpWB3HTCl8YPnbctIvVLEj4obb7yCBx1I Message-ID: Subject: Re: An idea for the EFI (LUA) loader.... To: Karl Denninger Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4bMLBv3xQxz3LBJ X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] On Tue, Jun 17, 2025 at 4:19=E2=80=AFAM Karl Denninger = wrote: > > > On 6/17/2025 02:47, Xin Li wrote: > > On 2025-06-16 18:05, Karl Denninger wrote: > > The problem is that it wants something like "rootdev=3Ddisk0s1a" -- a ful= l specification. > > > If ZFS is an option, you can say something like: > > rootdev=3Dzfs:mydevice-boot/ROOT/default: > currdev=3Dzfs:mydevice-boot/ROOT/default: > > in EFI's FreeBSD/loader.env; ZFS have much better way to find out the rig= ht device and does not rely on probe order. > > But it isn't. > > This is an "sort-of-embedded" environment. The goal is "one media that b= oots them all, provided we have the drivers for your network card and its a= n AMD compatible CPU." > > Thus it has to boot in something like a pcEngines apu2 (which has no idea= what EFI is, and won't boot a GPT USB stick either) and also be able to be= stuck into something like a GMKTek "cube PC" which has no CSM mode (EFI bo= ot only.) I'll live with the constraint that any other media in or connect= ed to it (e.g. on a USB interface, etc) either can't be bootable OR you hav= e set the boot order in the BIOS so the stick that's plugged in is the firs= t to be considered. > > I build these using "nanobsd" so they're power-fail safe and the capabili= ty to pull the stick in the event of a hardware failure, shove it into some= thing else and with a de-minimus set of edits (e.g. "what are the ethernet = interfaces called") if different (e.g. igb .vs. ix) it will come up and run= . > > Think edge gateway/firewall appliance. > > I tend to stick these images out where anyone can grab and use them with = a decent set of software included (e.g. Strongswan, etc.); I used to build = them for the pcEngines internal sd card slot which came up as "mmcsd0" but = those guys are gone, they're not fast enough to saturate a full gigabit con= nection anyway and, as it turns out, basically everything today when it boo= ts FreeBSD identifies a USB stick as a "da" device, so if its the only stor= age device on USB it will come up as "da0" which works nicely (and quite co= nsistently) once the kernel is loaded. The goal is "one image that will bo= ot and run on most, from old and crusty to new and shiny." > > The key element that drives the request is that nanobsd allows online upd= ating -- that is, there are two system partitions and you can update the on= e that isn't running with a "dd" and then reboot to activate it. I resolve= d the issue of losing the data partition in the nanobsd build if you have E= FI as an option but that leaves me with this which I've not been successful= sorting out reliably with the tools available. So we don't care about MBR in EFI-land. Sure, it kinda works, but this has been a problem for years and nobody has fixed it. We have code that will figure it out based on a number of heuristics for GPT disks no problem. Millions of people use it. We don't have similar code for MBR, so you have to do your rootdev=3Ddisk3s3a: hacks. One thing we need to do is fix that, I think. This would help us find the root partition better, which would obviate the need for this silly hack (though when there's two partitions we're ping-ponging between, we're back to needing a better solution). There's also some patches somewhere (Phab or github) that adds label:foo: as a disk that's valid for a partition labelled foo. Not sure if it handles MBR + BSDLABEL or not though. It could expand for that too, I guess. So that would be one way to do it. making rootdev=3Ds1a: is hard. But a variation on the label idea we could have something like rootdev=3Defi:s1a: and that would expand to 'the volume you loaded the boot loader from, slice 1, bsdlabel partition a.' It's possible to write that code, at least, though I don't have that in my pocket. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D149803 has a really old patch that could be updated. That bit of parsing code changed a bit, so some tweaking likely is needed. I just never got around to looking at it since I didn't have a fire burning under my !@#%# to motivate me. The other issue you haven't mentioned is that the BIOS picks some random disks sometimes to boot off of and the BIOS disk enumeration code isn't 100% standardized so sometimes the right answer is disk4s1a for reasons that are mysterious.... Warner From nobody Tue Jun 17 22:17:01 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMLp8138Kz5pr0n for ; Tue, 17 Jun 2025 22:17:20 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMLp75Njxz3bq2 for ; Tue, 17 Jun 2025 22:17:19 +0000 (UTC) (envelope-from delphij@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-b31bca0a32bso827741a12.2 for ; Tue, 17 Jun 2025 15:17:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750198633; x=1750803433; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tUr0xFwke5jOeIZYKnIYGj7hm41qFRXkyi1NPuAs+1U=; b=UyKFIZ3rrX/HgF0Kqtt4pVKRH6RAlYkxP3Eb0Byv5YuGTlpGQcj14ljSpJm3MKALts k/KqpjdMtEFNPTDEu1UXFGOPew+2KL4Z7w9NsQDp2srjrXC1bxCyGyMwqqjw/YRc0/gZ N2NcgGk08VAUjLhDYaKLvvw5jTlNsWYZh4TcECzqrRX4fHD1bd/KVtWosEv4xHNNp06L 2nILjsnp5KKqrj1ADcDU8EAWSrnSvU1jZ944ldsfknEPSoXdwgoxQQvECSrLgDZHOm0x 89zf6yT1zop6MXe4y9d0lPm2WNyhs03kuMX5iNbqcOVK84rxwT+gb04fp2D0SsQhPuM+ ll+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750198633; x=1750803433; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tUr0xFwke5jOeIZYKnIYGj7hm41qFRXkyi1NPuAs+1U=; b=UC8ddrq5FZ3EHMZhtScNJGSCOmNHAenN18whOvsw/BGkNjVMVshpeU/lmhAOGIg41u FU8snnFoCzqZsA1pIFXuy/Yghe3S2vFTgfN+15MlJv5h3B0hTDVOywD5tnwzRevknixm zusrrxo5vtc4bLqDDi1L9ubPvGV3zYUzB4rv9H0ZldE6eBRxaKtXlBiIg6tS4flMV1Ju sUnqGzP/dGDILuJY0oLlNbujHC66uA31MXnDlgt5eDjaKHvgrpx4brL66bg/rR69AC+4 meVzAdQZZA9XMAfMYZs5I1iVAUJ1M+tS5Z2jQCT75H4nlig6VM2M5GlCko60IJGFUO+7 cP5Q== X-Forwarded-Encrypted: i=1; AJvYcCXQ1+PoUnFPV2ti0HaW+9aY87Dz5418hrHwQ34OxWzgPW9IFMHC2xb71GeOG+sv6eZ0ZUqbFQwmD0xtQjdpE5k=@freebsd.org X-Gm-Message-State: AOJu0YxXZFhkhk2JBak3yXfA7CdpQaacEcro+SDHDOYHcYFX9C+GrrHe vcOyKqPcYa2/Bcj0qmxvozZgMsGsTITDeK8hrL+3iWyNLYtv4Re4XRDeDSv55HHKS+a3DcNpkt7 WDiXX7UqcbBG+XK45uF/UnDV/iGYFqPZb5i4I X-Gm-Gg: ASbGncsFfmlSw3QCBN5jqUNuNgrJwtwxoedRizUo7mFwhhZl/rl+yFLfhcQ5+0vkOsl /RqltxVPiX9e/RAot8fjLbc9JfJR4N8WU2bgsZ+VyvIAACc+7CQOL4+o8y21S2GE8uInyypIApK zj9xn7a242cJBuA9g0ptSiLhovs6VubuEClkQCSSySkXpD6L3KfGcCVedl58eROocvyOoelH3Nq g== X-Google-Smtp-Source: AGHT+IF8md8boPkrQmphk6oxLKWR7sKxaVJiFQppJTebgDVuOi4OktC20D61xTX7R/Vz4zZpqYPdTFkAnHcpcrcpqWc= X-Received: by 2002:a17:90b:1f8d:b0:312:db8:dbdd with SMTP id 98e67ed59e1d1-313f1ce3cbbmr21655985a91.28.1750198633185; Tue, 17 Jun 2025 15:17:13 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <9c7f2953-2fb3-4c36-977c-41aa7fd55c5c@delphij.net> <009e52a1-4d6f-42b6-905f-53fbf1c69065@denninger.net> In-Reply-To: From: Xin LI Date: Tue, 17 Jun 2025 15:17:01 -0700 X-Gm-Features: AX0GCFseSRoT3Sjdzk3p7puxO7kNX7MGcHGJLNehZSvdyV5q8VOGdYxlw3mBUyI Message-ID: Subject: Re: An idea for the EFI (LUA) loader.... To: Warner Losh Cc: Karl Denninger , freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="000000000000d147ca0637cbdff8" X-Rspamd-Queue-Id: 4bMLp75Njxz3bq2 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] --000000000000d147ca0637cbdff8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jun 17, 2025 at 2:51=E2=80=AFPM Warner Losh wrote: > There's also some patches somewhere (Phab or github) that adds > label:foo: as a disk that's valid for a partition labelled foo. Not > That's good to hear, I think you are referring to https://reviews.freebsd.org/D49355 . > sure if it handles MBR + BSDLABEL or not though. It could expand for > Not in the current version, but supporting the GPT label is still a great improvement IMO... > that too, I guess. So that would be one way to do it. > Cheers, --000000000000d147ca0637cbdff8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, Jun 1= 7, 2025 at 2:51=E2=80=AFPM Warner Losh <imp@bsdimp.com> wrote:
There's also some patches somewhere (Phab or github) th= at adds
label:foo: as a disk that's valid for a partition labelled foo. Not
=

That's good to hear, I think you are refer= ring to https://reviews.free= bsd.org/D49355 .
=C2=A0
sure if it handles MBR + BSDLABEL or not though. It could expand for

Not in the current version, but supporting the G= PT label is still a great improvement=C2=A0IMO...
=C2=A0
that too, I guess. So that would be one way to do it.
=
Cheers,
--000000000000d147ca0637cbdff8-- From nobody Wed Jun 18 00:05:34 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMPC90pmNz5pxdy for ; Wed, 18 Jun 2025 00:05:41 +0000 (UTC) (envelope-from linimon@portsmon.org) Received: from MTA-07-3.privateemail.com (mta-07-3.privateemail.com [198.54.118.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMPC842GVz3gxB; Wed, 18 Jun 2025 00:05:40 +0000 (UTC) (envelope-from linimon@portsmon.org) Authentication-Results: mx1.freebsd.org; none Received: from mta-07.privateemail.com (localhost [127.0.0.1]) by mta-07.privateemail.com (Postfix) with ESMTP id 4bMPC534B6z3hhVQ; Tue, 17 Jun 2025 20:05:37 -0400 (EDT) Received: from APP-02 (unknown [10.50.14.152]) by mta-07.privateemail.com (Postfix) with ESMTPA; Tue, 17 Jun 2025 20:05:34 -0400 (EDT) Date: Tue, 17 Jun 2025 19:05:34 -0500 (CDT) From: Mark Linimon To: Willem Jan Withagen , David Chisnall , Joseph Mingrone Cc: hackers@freebsd.org Message-ID: <1915578406.315953.1750205134283@privateemail.com> In-Reply-To: <775a3d24-6c21-4dcf-9657-5a3e89f6ab6d@digiware.nl> References: <8634byieib.fsf@asn.ftfl.ca> <69D0FE56-6D3E-4B49-9AD0-68752172FDC6@freebsd.org> <775a3d24-6c21-4dcf-9657-5a3e89f6ab6d@digiware.nl> Subject: Re: Notes on improving the installer List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.6-Rev78 X-Originating-Client: open-xchange-appsuite X-Virus-Scanned: ClamAV using ClamSMTP X-Rspamd-Queue-Id: 4bMPC842GVz3gxB X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:22612, ipnet:198.54.118.0/24, country:US] > On 06/17/2025 3:19 PM CDT Willem Jan Withagen wrote: > I did submit the patch through bugzilla. Maybe it is still there. Perhaps https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242983 ? I recently rebased the patch, so it shows up in the "recently modified" list. mcl From nobody Wed Jun 18 08:13:18 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMc1d3s8wz5yQp6 for ; Wed, 18 Jun 2025 08:13:09 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mail.digiware.nl (smtp.digiware.nl [IPv6:2001:4cb8:90:ffff::3]) by mx1.freebsd.org (Postfix) with ESMTP id 4bMc1d1hHDz3bWT; Wed, 18 Jun 2025 08:13:09 +0000 (UTC) (envelope-from wjw@digiware.nl) Authentication-Results: mx1.freebsd.org; none Received: from [IPV6:2001:4cb8:3:1:e94c:6c62:20fb:b1b2] (unknown [IPv6:2001:4cb8:3:1:e94c:6c62:20fb:b1b2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mail.digiware.nl (Postfix) with ESMTPSA id 5602D80840; Wed, 18 Jun 2025 10:12:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=digiware.nl; s=medusa-2017; t=1750234377; bh=KcmNyWlj0mQRmhRE5pSc4Wb7lABcC3LeLlLY0NSrEzc=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=omxBuRghWOF5WtSE50mYmPz0lUJpJ2cA+IHDwyeNhJMcs4yMfI9OHHuEBF3KfH+G2 TOAbZ6/xQ2eVcQ+vBpq+hNljWjxBqzbZoMnfCjK7zk37T8MNMGTTGwRBexdW7oLayr KMH73g0awckbHuXrVrKieQKO5puEUGm+KaledHPHl1j7RXJRdfIJDqK0XenC3yQhPN a3rPKSU1xQtkEQGI4ABIvMMtLJ5AVub/3fLFnbcZtdB4AC0XNyGasiHPveGb7FpIBs FUr1PV85wuPoNI5YONr/ivYMD68pNkTXvwWUvmk15SYv/JXV65QCK+CnI3bdNjdVxk ODblrp+Bt2Y/g== Content-Type: multipart/alternative; boundary="------------EmyV0Bg7qFFfI0TSO8hoabCp" Message-ID: <2c5bf9f3-2802-405d-b259-4c98aa7c362b@digiware.nl> Date: Wed, 18 Jun 2025 10:13:18 +0200 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Notes on improving the installer To: Mark Linimon , David Chisnall , Joseph Mingrone Cc: hackers@freebsd.org References: <8634byieib.fsf@asn.ftfl.ca> <69D0FE56-6D3E-4B49-9AD0-68752172FDC6@freebsd.org> <775a3d24-6c21-4dcf-9657-5a3e89f6ab6d@digiware.nl> <1915578406.315953.1750205134283@privateemail.com> Content-Language: nl From: Willem Jan Withagen In-Reply-To: <1915578406.315953.1750205134283@privateemail.com> X-Rspamd-Server: router10G.digiware.nl X-Rspamd-Action: no action X-Rspamd-Queue-Id: 4bMc1d1hHDz3bWT X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:39700, ipnet:2001:4cb8:90::/48, country:NL] This is a multi-part message in MIME format. --------------EmyV0Bg7qFFfI0TSO8hoabCp Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 18-6-2025 02:05, Mark Linimon wrote: >> On 06/17/2025 3:19 PM CDT Willem Jan Withagen wrote: >> I did submit the patch through bugzilla. Maybe it is still there. > Perhapshttps://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242983 ? > > I recently rebased the patch, so it shows up in the "recently modified" > list. So if you rebased the patch, it is still applicable and working?? Phabricator show it as buildable, but that was when the patch was submitted. Anything I can do here? --WjW --------------EmyV0Bg7qFFfI0TSO8hoabCp Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
On 18-6-2025 02:05, Mark Linimon wrote:
On 06/17/2025 3:19 PM CDT Willem Jan Withagen <wjw@digiware.nl> wrote:
I did submit the patch through bugzilla. Maybe it is still there.
Perhaps https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242983 ?

I recently rebased the patch, so it shows up in the "recently modified"
list.
So if you rebased the patch, it is still applicable and working??
Phabricator show it as buildable, but that was when the patch was submitted.

Anything I can do here?

--WjW

--------------EmyV0Bg7qFFfI0TSO8hoabCp-- From nobody Wed Jun 18 15:09:03 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMnFc5p0fz5pkCJ for ; Wed, 18 Jun 2025 15:09:08 +0000 (UTC) (envelope-from linimon@portsmon.org) Received: from MTA-11-4.privateemail.com (mta-11-4.privateemail.com [198.54.127.104]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMnFc3ftPz3TbR; Wed, 18 Jun 2025 15:09:08 +0000 (UTC) (envelope-from linimon@portsmon.org) Authentication-Results: mx1.freebsd.org; none Received: from mta-11.privateemail.com (localhost [127.0.0.1]) by mta-11.privateemail.com (Postfix) with ESMTP id 4bMnFZ3t5Mz3hhWt; Wed, 18 Jun 2025 11:09:06 -0400 (EDT) Received: from APP-02 (unknown [10.50.14.152]) by mta-11.privateemail.com (Postfix) with ESMTPA; Wed, 18 Jun 2025 11:09:03 -0400 (EDT) Date: Wed, 18 Jun 2025 10:09:03 -0500 (CDT) From: Mark Linimon To: Willem Jan Withagen , David Chisnall , Joseph Mingrone Cc: hackers@freebsd.org Message-ID: <764471588.398905.1750259343391@privateemail.com> In-Reply-To: <2c5bf9f3-2802-405d-b259-4c98aa7c362b@digiware.nl> References: <8634byieib.fsf@asn.ftfl.ca> <69D0FE56-6D3E-4B49-9AD0-68752172FDC6@freebsd.org> <775a3d24-6c21-4dcf-9657-5a3e89f6ab6d@digiware.nl> <1915578406.315953.1750205134283@privateemail.com> <2c5bf9f3-2802-405d-b259-4c98aa7c362b@digiware.nl> Subject: Re: Notes on improving the installer List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.6-Rev78 X-Originating-Client: open-xchange-appsuite X-Virus-Scanned: ClamAV using ClamSMTP X-Rspamd-Queue-Id: 4bMnFc3ftPz3TbR X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:22612, ipnet:198.54.127.0/24, country:US] > So if you rebased the patch, it is still applicable and working?? Applicable yes, tested/working no. I'm just trying to get the patches in Bugzilla to the point where we can handle them via automation. mcl From nobody Wed Jun 18 15:30:32 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMnkQ31LGz5plbD for ; Wed, 18 Jun 2025 15:30:38 +0000 (UTC) (envelope-from jordan.hubbard@gmail.com) Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMnkP2gjwz3d34 for ; Wed, 18 Jun 2025 15:30:37 +0000 (UTC) (envelope-from jordan.hubbard@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b="Jpp/iKd7"; spf=pass (mx1.freebsd.org: domain of jordan.hubbard@gmail.com designates 2607:f8b0:4864:20::32c as permitted sender) smtp.mailfrom=jordan.hubbard@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ot1-x32c.google.com with SMTP id 46e09a7af769-72c14138668so1829452a34.2 for ; Wed, 18 Jun 2025 08:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750260635; x=1750865435; darn=freebsd.org; h=mime-version:msip_labels:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=mL7svvv8GIpu/FvLJsNrA37k4+TX0QSP19sHk5qn7aw=; b=Jpp/iKd7T1EBzYrdhU675cT05lPlEnhEv7l+ZQ+oVyQv35Sa5Mn/n0REcd9Nnxca/4 b+/wq2VyUxDEkbtseG1w1spvukBktqYFmtYjnBJ54RxaPbHDrk85YVzJQYj+Y/GSk7vJ 50wqBLSdTsaWaNIuf+k3bm3LA3tSz7wfFz8/n5kdGcpmdqhhQCBu/ZK6jg6Lgzkneeqf THqZb31LDeiQfgSOLC55lZ7+uNYeYIDPs+XxIlG3OHpXyq190dtVDZGmx3slfB+CTOEs N+6wlm0OToxkoys2tR2maW0G+G3gykzNBTCUziTVD3cRS/SZx8wDXCvp19Ay7CYi5duJ /PCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750260635; x=1750865435; h=mime-version:msip_labels:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=mL7svvv8GIpu/FvLJsNrA37k4+TX0QSP19sHk5qn7aw=; b=h01UzuFNO6PZYaf2e0icjFaR0qZBC7HoH9sMGIbu8am54PaLnBVT2UjVpavHvUDlh1 msGM1TbYbtQrnf62Ylj9RvSQxHYxrA/uN2je9e4n7b1aYpRT4N6dn+Mf1hekDN5fBrRw QfHkkllxrc1AY8dQMs28euft3taWoUzPjj9bX+GMSlgT1Yw2eTLoOgJ1uqdlxcROgGGU jBNH4u8Bug7r7R1LLC7AXsS+IMOey23/9dyjDjILkzZTNl2hWh6Cmcxab2C3ffF5f8mo Oh49bGl8oaBeP1M81hpJKZH7Eigz/AlNuW5ckX8wuwZIDagZyBpMdl/2FfGKA8cy0Seu T/2w== X-Gm-Message-State: AOJu0YyNSuxM+DmPG3GP5JAdaaRGFlSI1s25Ff71LRID6RBOV7clHuwb ipmNJyxhrQ94FHjYujRdSpAa203sVhxKVakhyRtPhBEDGs38yDPcIfZO2khu5A== X-Gm-Gg: ASbGncuaq9JNjUuzQNptaLNEWV5PKLoaen4PES81kTfIEg32IhU8r1Rn58sFhEDH3A1 EMZUeSK24GzcHX5gH4fSJSn2vsNM+G/o/46NyiRpVd/DWEX5bB7HLnV8+0DNd1B9MuzgppXzPtn oXbS2nECpI2KoK7u70xEgLo3nlRvkagdmoUgjjvGavPPhhw9qvIl8MQd2GD+qNxH3Qs/2k9lSFb G5Qo0BsDKtjmPhtJigaDcVxb0xV3y2rKOatJXn92z3B65oOS/9B8xN1CYNieXc2Q3AhCfpyG2OP fMl9Z9aBr2vYVzfXnioOCqOiUw27vw/8W+K+1WE/fXNwhpLQxIFLnar4GoG+PAOrl3vncF3kO3l uYNOocDcrrrnrpWKoxIS7flr5eJ7I/NuRV1xFL7O/0h/SUBBZ+VxJJg== X-Google-Smtp-Source: AGHT+IHFUQ+TxFKDmKW+JOXCkth6sJtu2PUuo833tpRvTWaEKrWi8buu1iiFyWJaDNIZ2Slzjt5z4Q== X-Received: by 2002:a05:6830:730c:b0:739:fcb4:db2b with SMTP id 46e09a7af769-73a36274e40mr12817521a34.3.1750260633963; Wed, 18 Jun 2025 08:30:33 -0700 (PDT) Received: from SA0PR02MB7498.namprd02.prod.outlook.com ([2603:1036:305:3872::5]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-73a28535739sm1970974a34.58.2025.06.18.08.30.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jun 2025 08:30:33 -0700 (PDT) From: Jordan Hubbard To: Rozhuk Ivan , Borja Marcos CC: "freebsd-hackers@freebsd.org" Subject: Re: [Thought experiment] Bringing swift into an experimental branch? Thread-Topic: [Thought experiment] Bringing swift into an experimental branch? Thread-Index: ATFDMzRFElGDhc/uwXmeooSkxMvgLjAxLjMxRjNFNEE0OC4xMc/lfcHr X-MS-Exchange-MessageSentRepresentingType: 1 Date: Wed, 18 Jun 2025 15:30:32 +0000 Message-ID: References: <7344B44E-0AED-44CA-903D-B8DFC2D56311@gmail.com> <20250617013743.3b5108f0@rimwks.local> <1632F5EA-8DFC-4764-96E4-E2633BA0C2FF@sarenet.es> <20250617151232.76a895f4@rimwks.local> In-Reply-To: <20250617151232.76a895f4@rimwks.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-Exchange-Organization-SCL: -1 X-MS-TNEF-Correlator: X-MS-Exchange-Organization-RecordReviewCfmType: 0 msip_labels: Content-Type: multipart/alternative; boundary="_000_SA0PR02MB7498B9C2C90969B2A9279B6CA372ASA0PR02MB7498namp_" List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 X-Spamd-Result: default: False [1.01 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_MEDIUM(1.00)[0.998]; NEURAL_HAM_SHORT(-0.98)[-0.984]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FREEMAIL_FROM(0.00)[gmail.com]; TAGGED_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_TO(0.00)[gmail.com,sarenet.es]; TO_DN_EQ_ADDR_SOME(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::32c:from]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; TAGGED_RCPT(0.00)[]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4bMnkP2gjwz3d34 X-Spamd-Bar: + --_000_SA0PR02MB7498B9C2C90969B2A9279B6CA372ASA0PR02MB7498namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Upon reflection, and given Warner's reply, perhaps I asked the wrong questi= on. This idea of "pluggable toolchains" is interesting. If you zoom up and look at *BSD from a purely architectural perspective, yo= u have the kernel + essential base utilities as "ring zero" - everything re= quired to support FreeBSD on anything from a thumb drive on a Raspberry Pi = to a massive server system, or at least that should be the goal. That's yo= ur bootstrap. However, *creating* that ball of bits for X number of targets - that raspb= erry PI or that x86 server system in my example - requires a toolchain. To= day, that toolchain is clang + llvm + binutils + lldb + make etc and so on,= what linux calls the "build-essentials" package. Ignoring whether it can = cross-compile or not for the moment, that's your second piece of the puzzle= and also in "ring zero" since, without it, you can't do anything but admir= e the source code. Mmmm. Source code! Furthermore, since FreeBSD has always been "integrated" and has that lovely= "make world" target, we can assume that a toolchain selection somewhere in= a configuration file will automatically scope over everything in ring zero= . If the end-user / customer decides they need another supported toolchain= , they simply specify it in that configuration file and boom - it's now par= t of ring zero for them - the entire project does not have to commit to any= thing other than making that pluggable toolchain compile with all of its de= pendencies. One can also imagine parts of "base" growing a toolchain_required field. I= f the toolchain they need is not there, they either freak out and stop the = compilation process or they are simply skipped. Ports takes care of everything else. It is still ring 1, though to this da= y I rather wish I had figured out some way of combining all of that into on= e multi-tiered system but meh, that ship has sailed, it's fine. * Jordan ________________________________ From: Rozhuk Ivan Sent: Tuesday, June 17, 2025 5:12 AM To: Borja Marcos Cc: Jordan Hubbard ; freebsd-hackers@freebsd.org = Subject: Re: [Thought experiment] Bringing swift into an experimental branc= h? On Tue, 17 Jun 2025 08:02:08 +0200 Borja Marcos wrote: > > On 17 Jun 2025, at 00:37, Rozhuk Ivan wrote: > > > > No modern language required, even C++ is to complex to learn it. > > C just works, like it work 30-40 years ago. > > All can be done on C. > > Well, if counting bytes is your thing, yes, everything can be done in > C. The fact that using a systems programming language for > applications is a bad idea has been proven beyond doubt. ;) > > The problem is language stability as Jordan pointed out. I remember I > said something similar about Rust. > "systems programming language" - does not exist. OS have no complex applications, even assembler can be used, Colibry OS as = example. --_000_SA0PR02MB7498B9C2C90969B2A9279B6CA372ASA0PR02MB7498namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Upon reflection, and given Warner's reply, perhaps I asked the wrong questi= on.

This idea of "pluggable toolchains" is interesting.

If you zoom up and look at *BSD from a purely architectural perspective, yo= u have the kernel + essential base utilities as "ring zero" - eve= rything required to support FreeBSD on anything from a thumb drive on a Ras= pberry Pi to a massive server system, or at least that should be the goal.  That's your bootstrap.

However, *creating* that ball of bits for X number of targets  - that = raspberry PI or that x86 server system in my example - requires a toolchain= .  Today, that toolchain is clang + llvm + binutils + lldb + make etc = and so on, what linux calls the "build-essentials" package.  Ignoring whether it can cross-compile or not for the moment= , that's your second piece of the puzzle and also in "ring zero" = since, without it, you can't do anything but admire the source code.  = Mmmm.  Source code!

Furthermore, since FreeBSD has always been "integrated" and has t= hat lovely "make world" target, we can assume that a toolchain se= lection somewhere in a configuration file will automatically scope over eve= rything in ring zero.  If the end-user / customer decides they need another supported toolchain, they simply specify it = in that configuration file and boom - it's now part of ring zero for them - the entire project does not have to commit to anythi= ng other than making that pluggable toolchain compile with all of its depen= dencies.

One can also imagine parts of "base" growing a toolchain_required= field.  If the toolchain they need is not there, they either freak ou= t and stop the compilation process or they are simply skipped.

Ports takes care of everything else.  It is still ring 1, though to th= is day I rather wish I had figured out some way of combining all of that in= to one multi-tiered system but meh, that ship has sailed, it's fine.

  • Jordan

From: Rozhuk Ivan <rozhu= k.im@gmail.com>
Sent: Tuesday, June 17, 2025 5:12 AM
To: Borja Marcos <borjam@sarenet.es>
Cc: Jordan Hubbard <jordan.hubbard@gmail.com>; freebsd-hackers= @freebsd.org <freebsd-hackers@freebsd.org>
Subject: Re: [Thought experiment] Bringing swift into an experimenta= l branch?
 
On Tue, 17 Jun 2025 08:02:08 +0200
Borja Marcos <borjam@sarenet.es> wrote:

> > On 17 Jun 2025, at 00:37, Rozhuk Ivan <rozhuk.im@gmail.com>= wrote:
> >
> > No modern language required, even C++ is to complex to learn it.<= br> > > C just works, like it work 30-40 years ago.
> > All can be done on C. 
>
> Well, if counting bytes is your thing, yes, everything can be done in<= br> > C. The fact that using a systems programming language for
> applications is a bad idea has been proven beyond doubt.  ;)
>
> The problem is language stability as Jordan pointed out. I remember I<= br> > said something similar about Rust.
>

"systems programming language" - does not exist.

OS have no complex applications, even assembler can be used, Colibry OS as = example.
--_000_SA0PR02MB7498B9C2C90969B2A9279B6CA372ASA0PR02MB7498namp_-- From nobody Wed Jun 18 21:27:21 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bMxfP1xyFz5y5WM for ; Wed, 18 Jun 2025 21:27:41 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMxfN2QgTz49Yr for ; Wed, 18 Jun 2025 21:27:40 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=Yq7sdahD; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::b35) smtp.mailfrom=tomek@cedro.info; dmarc=none Received: by mail-yb1-xb35.google.com with SMTP id 3f1490d57ef6-e81f8679957so173274276.2 for ; Wed, 18 Jun 2025 14:27:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1750282054; x=1750886854; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=rbv3Qro2Y+rcB4d/TFbflEfxEktxBeKvP8X+yfsRImg=; b=Yq7sdahDVoZDvafvl4Y0/GX5J2prJfxomlP25Flg8hr4uN6EiitI6AEzjPpG0TtQUM KG6pVarNHU0OmyDUS+6vAGWTapq1KfIBPaAdb38Rr9Z1TKFU40/GtPm4msVK0pq4D6/9 lRH1RkhdRtdr5YT6yrBtTqdn6XDZdezu+PUTOSX7ESlDPSj7463hGcH4Dp3HritMrWVT OLNZ5Giw7VJYXPMlBWHFOzcNL3ZRvqp3KsskgPWZje7x5AYQe3Epgt1QQSDqUW1gkBIT drFI/eWzRuVlaCaKmTUsItRDzgexBtnFVM3U540zYn7+/xaq0/DvrMsjXG+18h7FbPvo eZAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750282054; x=1750886854; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rbv3Qro2Y+rcB4d/TFbflEfxEktxBeKvP8X+yfsRImg=; b=Wyga0FeMdG3EKUaWjEhShWXZZYCXgkljxtug2ScbNfAe19qpHEPBlnpRImCspeqXSc kqM/2tO3DImZLAxvBVLQpG4avTBGRLxPbQii4ZNYeYBlro4mG6Tjoe7wWZvLwUh7CwT8 FUpTCfXl9RYRe5OK5Efx42OA+bJ9JcXrJCUJrgBubl+n0CVpKfJSCa33aRRsA2IZs+tN xBEI5MtT02mdxRvg4jzMT8U2/mzJu1Rx+B9CueoGKBsRMIYVApb5VZJxMEDp9lpU2J3m s1DWYN5+BTt02dmA3+WSgoL7VJvG7YnY8clGNTQrhCTWdIe0Bn9gPpMN6UIuGWM2tKb9 Aw5w== X-Gm-Message-State: AOJu0YwXplu5J4m2ovcO3YdWRnKEOiw7e++agj1s70xo4az/va59gVEh mYLPk13cTpLvTJkHLF8bTn681QB6Akjp9F+GxwpdABm2Ei/bWn0187HwqvvfinnUEU8yz8u9EjG 0YWc= X-Gm-Gg: ASbGnctBafX87IkxfkPmj8YHqZH538+jVtPovEVB5SC8NlHBpztFS7gcbRDI7buRGQQ pxjKmPAPiLuh46/taoukHCDZDqgCO4GShYIDrJbioey6R7XhlrVmdf2XN/dpi7DdClXB4Pn28xR 1njmmTX7mBinw9VFp4RX9T+RqlPKI7l4T823/enGblIE3j3lGCyRCz3Gc1cOijWsdskbOEMRHbg ZvicSYEfTM+TWh0/+VatloexdfSN/7MUo8bHacqQK/3uoBgIDaJIQ1hlRGGItkU/U9/h13askan r/KBuSuXi7o/vdmEnNBgN/BwHYmAP1Hw7WJDhWkmwzZjDTu6BRhB9NvGmjEvSKmD1FZP4EewXDL sE/qV6tS0h3rR/DANLVCP7gg= X-Google-Smtp-Source: AGHT+IG9cmyz9fk1GGN6WKTjGFXJ5QYG51EviZHKXcdJYvO5E2Z/rkRc2z5Nk++FrDybLXyuRJ0Jrg== X-Received: by 2002:a05:6902:200c:b0:e82:1f55:effd with SMTP id 3f1490d57ef6-e822ac32ea7mr26656397276.5.1750282054289; Wed, 18 Jun 2025 14:27:34 -0700 (PDT) Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com. [209.85.128.169]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e841eac3db7sm13073276.56.2025.06.18.14.27.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Jun 2025 14:27:33 -0700 (PDT) Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-710bbd7a9e2so1589817b3.0; Wed, 18 Jun 2025 14:27:33 -0700 (PDT) X-Received: by 2002:a05:690c:4:b0:70c:b534:868f with SMTP id 00721157ae682-71175457302mr267955497b3.20.1750282053001; Wed, 18 Jun 2025 14:27:33 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <8634byieib.fsf@asn.ftfl.ca> <86zfe6qko2.fsf@asn.ftfl.ca> In-Reply-To: From: Tomek CEDRO Date: Wed, 18 Jun 2025 23:27:21 +0200 X-Gmail-Original-Message-ID: X-Gm-Features: AX0GCFu7nmkMf8pKPUFxIE5RaqB4Q7x4YADbW0FFS7Z7bcl9uu3hczdYk1jv460 Message-ID: Subject: Re: Notes on improving the installer To: Joseph Mingrone Cc: hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Result: default: False [0.21 / 15.00]; NEURAL_SPAM_MEDIUM(0.98)[0.983]; NEURAL_HAM_LONG(-0.98)[-0.980]; NEURAL_SPAM_SHORT(0.51)[0.506]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; R_SPF_NA(0.00)[no SPF record]; MLMMJ_DEST(0.00)[hackers@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::b35:from,209.85.128.169:received]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[hackers@freebsd.org]; DMARC_NA(0.00)[cedro.info]; DKIM_TRACE(0.00)[cedro.info:+] X-Rspamd-Queue-Id: 4bMxfN2QgTz49Yr X-Spamd-Bar: / I have also added "Intended Use" section to the wiki, please update/delete as you wish :-) https://wiki.freebsd.org/ImproveInstaller The general idea is to propose a set of tools so user gets a working setup after install, just like popular Linux distros. This step would be optional and advanced users can simply skip it or select "bare metal" to get where we land right now. For instance if a company needs an office box they will select "desktop / office", developers will probably select "desktop / software development", someone who wants to quickly setup www server will select "server / www", etc. I think this may attract new people that want to try out the FeeBSD (i.e. switch from windows), or if we want to install FreeBSD on a family/friend/customer machine quickly. This also may act as kind of simple package manager frontend after install, or this package manager frontend may be a separate application and launched by the installer. Newcomers may need also UI version of the tool which may be the first step here. If you like the idea some brainstorming will be required what sets of useful packages may be proposed to fulfill "intended use cases", how deep should we let users to select packages, will this fit the pkgbase stuff, etc :-) Intended Use * This functionality should allow selecting intended use of the target installed system (i.e. desktop, server, etc) so the workstation is ready to use after install. * This may be used after installation too if someone skips that point during initial install. * This will help first contact users of FreeBSD not to land in shell asking "what do I do now" but have operational workstation. * Easy customization of target use (i.e. here is the installer run it on 100 machines and all will be ready to use by our organization). * Bare Metal: do not install anything additional, I just want the base system. * Desktop: * Xorg or Wayland or Terminal? * Terminal: vim, tmux, mc, wget, curl, links, lynx, mpv, vlc, ocp etc. * Window Manager: KDE, GNOME, XFCE4, Enligthenment, LXQT, etc. * Office: Firefox, ?LibreOffice, VLC, ?AudaCity, etc. * Software development: some GUI IDE, vim, tmux, mc. * Embeded: adruino, arm-toolchain, riscv-toolchain, etc. * Mutimedia: VLC, Audacity, Milkytracker, Soundtacker, MIDI utils, etc. * Games: list of games. * etc. * Server: * WWW: Apache, Nginx, PHP, Python. * File Server: Samba, NFS, etc. * VPN: OpenVPN, Wierguard, etc. Thanks :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Thu Jun 19 06:19:53 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bN9Sl1Q8Cz5PYt7 for ; Thu, 19 Jun 2025 06:20:07 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bN9Sh6g4Mz4KnY for ; Thu, 19 Jun 2025 06:20:04 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.huji.ac.il header.s=57791128 header.b="1PB6sn/i"; dkim=none ("invalid DKIM record") header.d=cse.huji.ac.il header.s=57791128 header.b=FY2ZMayS; spf=none (mx1.freebsd.org: domain of danny@cs.huji.ac.il has no SPF policy when checking 132.65.116.210) smtp.mailfrom=danny@cs.huji.ac.il; dmarc=pass (policy=none) header.from=huji.ac.il DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=To:Date:Message-Id:Subject:Mime-Version:Content-Type:From; bh=BPXS77cVsg9159uov3mAifuEbybEBlEf4Xq5Ir/Lz5k=; b=1PB6sn/inX0I31AnEjUW5PgoGPAKeq/hUPFDtyC+gFsKsvg1ZvCAieUamg8RZ9BZqmeuNJZJVKPIwB7Za+fUZs43eT9dR6EzC11t1gjgFWzTFOIcpe1deiJ09YSiscMM4azzQ9G7Vf4V7c9W16Qmx3hOZcsGZW/i3c4GFsX3iRz2MfvVCRADwkmfv3Hci67JxHUR+pvTydWQTX3bVMAouy/T0n9Tzfk2bdIHtE6+ab28/KiS2VzB6lzBa1OONWBza1tkLHryQ/Z9bRyvPSPoY9bdZ/Ini8gjYOCUNOjGfGgRnCH+rxGQ4CeZ6S2pJP7tx4rE0G9y71o9s9Y0IGG3QQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cse.huji.ac.il; s=57791128; h=To:Date:Message-Id:Subject:Mime-Version:Content-Type:From; bh=BPXS77cVsg9159uov3mAifuEbybEBlEf4Xq5Ir/Lz5k=; b=FY2ZMaySk06KGIv7lRfMCA4wShQ52tnlMPorYxaSzZrz5KRDQ4/9KwN0ywTL/KnvHJvJIudL7Cdamuqnrimlik8hmzXb+nX7iTJEk7FUeUDujZgmVrZ4QwW61Y+uAWhBycj0Bfl0654Ak/rJQbzerXZk9P0ygxyCmJuy1ZLJupft6qK8ttJRFFcUMvD0SQUg/ZM4SCYVKfmzBxyrklSKs5sZstZelmyN1cTZO3fry4hPMlBC334O1hTxDmsdCoV5KBLABlO4U4SK6lhBwmewYxo5Q9yw6h8I8InoP/iedETulotR+LB5S8KrbWa1EOIOxFKJVzu8gcV3QspJfOCffg==; Received: from bach.cs.huji.ac.il ([132.65.80.20] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1uS8ct-000Adj-BK for hackers@freebsd.org; Thu, 19 Jun 2025 09:19:55 +0300 From: Daniel Braniss Content-Type: multipart/alternative; boundary="Apple-Mail=_E6C8BC0A-5441-483B-8BAF-924D3978DDAC" List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.10\)) Subject: 100Gb performance Message-Id: <69416040-9E55-42E9-9203-FF1706F2A51E@cs.huji.ac.il> Date: Thu, 19 Jun 2025 09:19:53 +0300 To: freebsd-hackers X-Mailer: Apple Mail (2.3696.120.41.1.10) X-Spamd-Result: default: False [0.93 / 15.00]; NEURAL_SPAM_LONG(1.00)[0.996]; NEURAL_SPAM_MEDIUM(0.88)[0.875]; NEURAL_HAM_SHORT(-0.84)[-0.837]; DMARC_POLICY_ALLOW(-0.50)[huji.ac.il,none]; MV_CASE(0.50)[]; ONCE_RECEIVED(0.20)[]; R_DKIM_ALLOW(-0.20)[cs.huji.ac.il:s=57791128]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_DKIM_PERMFAIL(0.00)[cse.huji.ac.il:s=57791128]; ARC_NA(0.00)[]; ASN(0.00)[asn:378, ipnet:132.64.0.0/15, country:IL]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEFALL_USER(0.00)[danny]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; R_SPF_NA(0.00)[no SPF record]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[hackers@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_MIXED(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[cs.huji.ac.il:+,cse.huji.ac.il:~] X-Rspamd-Queue-Id: 4bN9Sh6g4Mz4KnY X-Spamd-Bar: / --Apple-Mail=_E6C8BC0A-5441-483B-8BAF-924D3978DDAC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 hi, i am running 14.2 on a DELL PowerEdge R750 with a mellanox/nvidia 100Gb = nic mlx5en:=20 mce0: flags=3D1008843 = metric 0 mtu 1500 =20 = options=3D66ef07bb ether ... inet ... netmask 0xfffffc00 broadcast =E2=80=A6. media: Ethernet 100GBase-KR4 status: active nd6 options=3D29 I=E2=80=99m doing a rsync from an iscsilon mounted via this mce0, the = best max throughput is about 1GBs which is a bit depressing but tcpdump -i mce0 says: store-09# tcpdump -i mce0 host tcpdump: verbose output suppressed, use -v[v]... for full protocol = decode listening on mce0, link-type EN10MB (Ethernet), snapshot length 262144 = bytes ********** and shows no traffic! any ideas? thanks, danny --Apple-Mail=_E6C8BC0A-5441-483B-8BAF-924D3978DDAC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 hi,

i am running 14.2 on a DELL PowerEdge R750 with a = mellanox/nvidia 100Gb nic  mlx5en: 

mce0: = flags=3D1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> = metric 0 mtu 1500
 
options=3D66ef07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUM= BO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,NV,VLAN_HWTSO,LINKSTATE,RXC= SUM_IPV6,TXCSUM_IPV6,HWSTATS,HWRXTSTMP,MEXTPG,VXLAN_HWCSUM,VXLAN_HWTSO>=
       ether = ...
       inet = ... netmask 0xfffffc00 broadcast =E2=80=A6.
       media: Ethernet = 100GBase-KR4 <full-duplex,rxpause,txpause>
       status: = active
       nd6 = options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

I=E2=80=99m doing a rsync from an iscsilon mounted via this = mce0, the best max throughput is about 1GBs which = is a bit depressing


but tcpdump -i mce0 = says:
store-09# tcpdump -i mce0 host = <same net as mce0>
tcpdump: verbose output suppressed, = use -v[v]... for full protocol decode
listening on mce0, = link-type EN10MB (Ethernet), snapshot length 262144 bytes
          =                     =               = **********

and shows no = traffic!

any ideas?

thanks,
= danny

= --Apple-Mail=_E6C8BC0A-5441-483B-8BAF-924D3978DDAC-- From nobody Thu Jun 19 10:33:47 2025 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bNH5Y5Z3Bz5yVqK for ; Thu, 19 Jun 2025 10:33:53 +0000 (UTC) (envelope-from tamelingdaniel@gmail.com) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bNH5X47PGz3PHG for ; Thu, 19 Jun 2025 10:33:52 +0000 (UTC) (envelope-from tamelingdaniel@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=V8z1qS9X; spf=pass (mx1.freebsd.org: domain of tamelingdaniel@gmail.com designates 2a00:1450:4864:20::52c as permitted sender) smtp.mailfrom=tamelingdaniel@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-607cc1a2bd8so899896a12.2 for ; Thu, 19 Jun 2025 03:33:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750329230; x=1750934030; darn=freebsd.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=4LRsAjKjnlhTrsbMaCyexn02FVWT7ux3JfHLq+5QQGg=; b=V8z1qS9XUm7Bz/VNDlVW5074n+c7jxHFkxdD5/Qi/AU0TnyE6pbYfwqiZ5U3sDKhNH WTVea7FicCl0iIRJMhPqjlAFwllZijwub+nembSakLoMmg90GHy0Hgwr5dUgNKZ4mGnp ahu0S6ByDM2S5scEGGhoQ3Ttt7OZlZ73/ufY2iQ/59jHUbg2J6ihDYMH3Fl68ZIkRvhw H4qJlkBc2PUr0DRAJcOBJpX6XaH0tYhmUbLsnpRQ/h3aOGEBm42ibAe3hhoOSkoUx7z+ 7dlLB/7iqEEMeFXryqbXAX0aAqxRlp+vcS18U8vVlCxNqy9MPNQ1UCRZxmDz/gAe6VRB l8AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750329230; x=1750934030; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4LRsAjKjnlhTrsbMaCyexn02FVWT7ux3JfHLq+5QQGg=; b=kC36Bsa/c5cb4pJFO3YFydWkdYHFeHIS3xnKRy41AWfxmA4IeYducTwPEZmYFAXT1E Znb5CSpGLUGzkk5NOaryUuqh3yUhskVS/NuScR25dmGkBFAt1YeOnewyS/p5Xz70Wkh5 oddP23NiIJKvlfz7vcS4I79pmbL1T4//0WS5KkXo0+V6lvr2s2E0thvlI55cCAS7rcos 1nv8HwEx7t7BdEddNQZBJytQC5I6e3YIpUbjTz7e0guWR3TV6pxw8aL9SJjY8pBjaPLv OzC6gvrM1IHQHULnO3FGfp1qipk+HRbVXZrx45MwI+AKkN2eSqP9kVSEAlkaWb7KWNUa HhaA== X-Gm-Message-State: AOJu0YzY4YgQ9q+K7ojyr9YMSMgBxaaVpuelaq/ZaBuiCm27WT+mwZln +7iDkxyKOY3bPKPFefC1H8nDayion33/0go60ewzXsMFQDsbwc8zr/xX3SM3NKZZ X-Gm-Gg: ASbGnctbYsbsyxNojWopjX2NzMf2Ls9fxPxWVCM1ji1AZ0U5zjv8/mi+iRWuVAJGYpf q9Nutj6XJyOITvlidaVxgNiZMjihnVGR+D8fQRQ/GB46yYAPGd6+H6/Pht6tsbXIaSWQYm4QW8b KHwXXiYPmZ8hDRdJP+9VIKNDNg1mciI753Z5Chs1S9xLimbZntLRAohWteggJS2BaY8f2IVzQ8F 24hrFVfu73H7wcmmhD+WX6B8QFZIc4+bQbvACyktcQWThjS36U+u4mu4IjHPZSPwPvALWOEt6nD FDn378RSxva6fDPYmCtz3gO0uRLKgL8g14O/c1Vb+b8Xf4X45t1m51v9+onn2lVYkjtgA1vYxFQ LkBo= X-Google-Smtp-Source: AGHT+IHzLgSli6UnSAckhNjxLgCyn5obk2ijg3gP3NMVxHl1skFvM/V1/lNGvyqcFTyE8DJ3teAZMw== X-Received: by 2002:a05:6402:90a:b0:607:28e4:d70e with SMTP id 4fb4d7f45d1cf-608d09450f2mr19162779a12.17.1750329229798; Thu, 19 Jun 2025 03:33:49 -0700 (PDT) Received: from localhost ([2001:9e8:c43a:ad00:7c10:e955:6860:6b68]) by smtp.gmail.com with UTF8SMTPSA id 4fb4d7f45d1cf-608b4ae68a2sm10872927a12.79.2025.06.19.03.33.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jun 2025 03:33:48 -0700 (PDT) Date: Thu, 19 Jun 2025 12:33:47 +0200 From: Daniel Tameling To: freebsd-hackers@freebsd.org Subject: Re: Notes on improving the installer Message-ID: References: <8634byieib.fsf@asn.ftfl.ca> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <8634byieib.fsf@asn.ftfl.ca> X-Spamd-Result: default: False [1.85 / 15.00]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_SHORT(0.95)[0.945]; NEURAL_SPAM_MEDIUM(0.90)[0.901]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; RECEIVED_HELO_LOCALHOST(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DKIM_TRACE(0.00)[gmail.com:+]; MISSING_XM_UA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52c:from]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4bNH5X47PGz3PHG X-Spamd-Bar: + Hi, a niche use case I ran into: if you need to use a proxy to access the internet, you need to export the proxy in a shell and start bsdinstall by hand.[1] It would be nice if this could be done inside the installer. Since this happened some time ago, I might be misremembering this, but I think that you notice only relatively late in the process if your internet connection isn't working. It might be nice to have a "test whether I can download the necessary stuff" button as early as possible. Best, Daniel [1]: https://lists.freebsd.org/archives/freebsd-questions/2024-May/005310.html From nobody Thu Jun 19 11:55:26 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bNJvv1L9Qz5ybNR for ; Thu, 19 Jun 2025 11:55:39 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bNJvt6q87z3wSg for ; Thu, 19 Jun 2025 11:55:38 +0000 (UTC) (envelope-from olivier@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750334138; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+XXV4pGGF5vbiyoPgpFv0z86K5GGhwhnc+huuQ34dRI=; b=AVlhg3vTwhWWanq3bJmN0/S2lwsMrj08NjVytz/zJlU7/EJvACTS6XZ4j39oVLy7WlElHc Yo31L8pNpb8JrElrU7pt09mF5qAENpbAAhM19+wKIzUerqYV2+TfBILUfGxly9Vr60SpS4 2RWZEto6YzSG9MEdqGPPYXrIZA2HvFZVW5Z8TCnvEVfzCo6/smiLUs+RA17JSdRCKgbs+I niKHme2hx4DYTUSmiMGfZpgYv3zzDbOwAEt2A1bpSHIEMkE647WkHx2NcnHU75X3iNI/DE G5c3GnTICfQTLs+KBWRfBrY2GOwwwX303mHWTfZlo3Dq3F0SLL9PhzvRiKcJBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750334138; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+XXV4pGGF5vbiyoPgpFv0z86K5GGhwhnc+huuQ34dRI=; b=euvsbgOK4LgXmveIJvZMoDcSrFIBFwvns/0xuFgFM1emnRsPBPxja2EPwC5Xpmlqd3y98P wCKT34srX3PwHZ6mQf8AWESTGlCjl2IDAqVOIeYddM4DBEKiR/2aj2PGr34fd2m1x7XqJX XD5tOIfHDjEu56gbavJgcHfNhcBnjqq6xUHkkoW1+5Z7MULeQphYgeUB0YTGxsDYzU1N4g fNl3LoqG7fw39RyVA8UelXCgMQBfnTGRXiIyC6Tgp1IpYFIspoh2T0LFvkro22PZHkLy2U Un1Zz3UKo5aiDH93+hsbYfTM8CJrXb0NjDOxzHANUIqI/yygdbqePqYqsxSj3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750334138; a=rsa-sha256; cv=none; b=uKBISYHcKE58VfuHRpFZPhLnespu//PuGDKPvXFS89JPHxagr8ASPZydWQUBbBnrhNCn6o 2U4kLgiC5ytb38M0e9U62cAY9Gxy3cUmu9xkAFkzQo0vMbMREDC/gsgx8UhghClKI5ACdh 9MpMpmhjROPA7/SZim8G33Ki7Zrb6gyvL2oBqidPKMQT+cpMk+NeVULLx4r/T/USR2s83h z77EoeWcCd1x6bVmm+ZMkbb00pw6McvcB+GdGVQ1MPkTnHrxB7HweWENZX5k8ie/eSX+ZS 9vd4zsizKjKDISn2QpS/O/t2oyqZnQ1r431bRYZtsTZMmpACz+KkfdoGbFnBzQ== Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) (Authenticated sender: olivier/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4bNJvt62Yhz1GLM for ; Thu, 19 Jun 2025 11:55:38 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: by mail-qv1-f54.google.com with SMTP id 6a1803df08f44-6faf66905baso9459506d6.2 for ; Thu, 19 Jun 2025 04:55:38 -0700 (PDT) X-Gm-Message-State: AOJu0YxF94/7+IRqzYF2woBh5z8wgi7D1x9SuD9+YpDLUu6YO4uLSP6w wuJzh5fm7Ct6Qc3zgFUjx+DLSSfntQMqzpPTawM8j8aF5L/7TbbJTQi1F6XuM6PluocUrYaxqj6 zdjVUKG9ti99AxHsUH1A8QwujJR79BS4= X-Google-Smtp-Source: AGHT+IGSzHEtWXC0oyv6bMUNlcWkhFpEqq3LsmNnOaT6De6/EtqOVVinPFvJbv61Prli0BVUAjSvmhRYQNu/S+J4T3E= X-Received: by 2002:a05:6214:570b:b0:6f8:b7cd:984f with SMTP id 6a1803df08f44-6fb477777e6mr290737356d6.30.1750334138256; Thu, 19 Jun 2025 04:55:38 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <69416040-9E55-42E9-9203-FF1706F2A51E@cs.huji.ac.il> In-Reply-To: <69416040-9E55-42E9-9203-FF1706F2A51E@cs.huji.ac.il> From: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Date: Thu, 19 Jun 2025 13:55:26 +0200 X-Gmail-Original-Message-ID: X-Gm-Features: Ac12FXwuosQ33qDxyqFQ8uweVJDX99IP8xPfMK77XoZExfaN6Pc490I-igETG0Y Message-ID: Subject: Re: 100Gb performance To: Daniel Braniss Cc: freebsd-hackers Content-Type: multipart/alternative; boundary="0000000000008c9b130637eb6c27" --0000000000008c9b130637eb6c27 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 19, 2025 at 8:20=E2=80=AFAM Daniel Braniss wrote: > hi, > > i am running 14.2 on a DELL PowerEdge R750 with a mellanox/nvidia 100Gb > nic mlx5en: > > mce0: flags=3D1008843 > metric 0 mtu 1500 > > > options=3D66ef07bb > ether ... > inet ... netmask 0xfffffc00 broadcast =E2=80=A6. > media: Ethernet 100GBase-KR4 > status: active > nd6 options=3D29 > > I=E2=80=99m doing a rsync from an iscsilon mounted via this mce0, the bes= t max > throughput is about 1GBs which is a bit depressing > > Regarding this 1GB/s (8Gb/s) it is how I get on my side with a very simple netcat transfert. By simple transfert, I mean using one TCP flow with a single process netcat= : On the receiver host: nc -l 12345 > /dev/null On the sender host: dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12345 107374182400 bytes transferred in 77.772515 secs (1380618626 bytes/sec) Which is about 1.3GB/s, so close to your 1GB/s. Let=E2=80=99s dig a little more and one the sender, displaying the stats fo= r each NIC queues. How many queues the drivers configured on my sender system ? # sysctl dev.mce.0.conf.channels dev.mce.0.conf.channels: 40 So 40 queues (match my output of nproc), great. But how many were used during this test: # sysctl dev.mce.0 | awk '/txstat.*\.bytes/ && $NF !=3D 0' dev.mce.0.txstat26tc0.bytes: 74 dev.mce.0.txstat20tc0.bytes: 120 dev.mce.0.txstat4tc0.bytes: 112564632016 dev.mce.0.txstat0tc0.bytes: 60 =3D> Only one queue (the number 4 in my example) is used. And it is the same problem on the receiver: One queue/one core Let=E2=80=99s improving this by running 8 parallels nc at the same time, bu= t we need to use 8 different TCP sessions to let RSS selecting 8 differents queues: On the receiver host: nc -l 12341 > /dev/null & nc -l 12342 > /dev/null & nc -l 12343 > /dev/null & nc -l 12344 > /dev/null & nc -l 12345 > /dev/null & nc -l 12346 > /dev/null & nc -l 12347 > /dev/null & nc -l 12348 > /dev/null On the sender host: dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12341 & dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12342 & dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12343 & dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12344 & dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12345 & dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12346 & dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12347 & dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12348 Then we need to add the output from all those dd: 107374182400 bytes transferred in 103.937552 secs (1033064374 bytes/sec) 107374182400 bytes transferred in 104.474689 secs (1027753071 bytes/sec) 107374182400 bytes transferred in 104.939627 secs (1023199578 bytes/sec) 107374182400 bytes transferred in 105.002306 secs (1022588806 bytes/sec) 107374182400 bytes transferred in 105.674894 secs (1016080345 bytes/sec) 107374182400 bytes transferred in 105.687319 secs (1015960885 bytes/sec) 107374182400 bytes transferred in 106.480994 secs (1008388239 bytes/sec) 107374182400 bytes transferred in 106.837954 secs (1005019084 bytes/sec) To have a total of 8152054382 bytes/sec (8.15 GBytes/s or 65Gb/s). You can check the stats per queue, and you will notice that 8 of them should have been used. So you need to use a multi-threaded/parallel rsync equivalent (on both sides) to fill your link. but tcpdump -i mce0 says: > store-09# tcpdump -i mce0 host > tcpdump: verbose output suppressed, use -v[v]... for full protocol decode > listening on mce0, link-type EN10MB (Ethernet), snapshot length 262144 > bytes > ********** > > Don=E2=80=99t worry about the libpcap definition, from contrib/libpcap/pcap= /dlt.h : #define DLT_NULL 0 /* BSD loopback encapsulation */ #define DLT_EN10MB 1 /* Ethernet (10Mb) */ #define DLT_EN3MB 2 /* Experimental Ethernet (3Mb) */ #define DLT_AX25 3 /* Amateur Radio AX.25 */ #define DLT_PRONET 4 /* Proteon ProNET Token Ring */ #define DLT_CHAOS 5 /* Chaos */ #define DLT_IEEE802 6 /* 802.5 Token Ring */ #define DLT_ARCNET 7 /* ARCNET, with BSD-style header */ #define DLT_SLIP 8 /* Serial Line IP */ #define DLT_PPP 9 /* Point-to-point Protocol */ #define DLT_FDDI 10 /* FDDI */ So the EN10MB is simply the term used for "Ethernet". Regards, Olivier --0000000000008c9b130637eb6c27 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On = Thu, Jun 19, 2025 at 8:20=E2=80=AFAM Daniel Braniss <danny@cs.huji.ac.il> wrote:
hi,

i am running 14.2 on a DELL PowerEdge R75= 0 with a mellanox/nvidia 100Gb nic =C2=A0mlx5en:=C2=A0

=
mce0: flags=3D1008843<UP,BROADCAST= ,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
=C2=A0
<= div> options=3D66ef07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MT= U,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,NV,VLAN_HWTSO,LINKSTATE,RXCSUM_IP= V6,TXCSUM_IPV6,HWSTATS,HWRXTSTMP,MEXTPG,VXLAN_HWCSUM,VXLAN_HWTSO>=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0ether ...
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0inet ... netmask 0xfffffc= 00 broadcast=C2=A0=E2=80=A6.
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0me= dia: Ethernet 100GBase-KR4 <full-duplex,rxpause,txpause>
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0status: active
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

I=E2=80=99m doing a rsync from an iscsilon mounted via t= his mce0, the best=C2=A0max = throughput is about 1GBs which is a bit depressing


Regarding this 1GB/s (8Gb/s)= it is how I get on my side with a very simple netcat transfert.
By simple transfert, I mean using one TCP flow with a single process n= etcat:

On the receiver host:
nc -l 12345 > /dev/null
On the sender host:
dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12345
107374182400 bytes transferred in 77.772515 secs (1380618626 bytes/sec)=

Which is about 1.3GB/s, so close to you= r 1GB/s.

Let=E2=80=99s dig a little more= and one the sender, displaying the stats for each NIC queues.
How many queues the drivers configured on my sender system ?
# sysctl dev.mce.0.conf.channels
dev.mce.0.conf.channels: 40
So 40 queues (match my output of nproc), great.
But = how many were used during this test:
# sysctl dev.mce.0 | aw= k '/txstat.*\.bytes/ && $NF !=3D 0'
dev.mce.0.txstat26tc= 0.bytes: 74
dev.mce.0.txstat20tc0.bytes: 120
dev.mce.0.txstat4tc0.byt= es: 112564632016
dev.mce.0.txstat0tc0.bytes: 60

=3D> Only one queue (the number 4 in my example) is used.
And it is the same problem on the receiver: One queue/one core<= /div>

Let=E2=80=99s improving this by running = 8 parallels nc at the same time, but we need to use 8 different TCP session= s to let RSS selecting 8 differents queues:
On the receiver = host:
nc -l 12341 > /dev/null &
nc -l 12342 > /= dev/null &
nc -l 12343 > /dev/null &
nc -l 12344 > /dev= /null &
nc -l 12345 > /dev/null &
nc -l 12346 > /dev/nu= ll &
nc -l 12347 > /dev/null &
nc -l 12348 > /dev/null<= br>
On the sender host:
dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.= 1.1.30 12341 &
dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 1= 2342 &
dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12343 &am= p;
dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12344 &
dd= if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12345 &
dd if=3D/d= ev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12346 &
dd if=3D/dev/zero = bs=3D1G count=3D100 | nc 1.1.1.30 12347 &
dd if=3D/dev/zero bs=3D1G = count=3D100 | nc 1.1.1.30 12348

Then we = need to add the output from all those dd:
107374182400 bytes= transferred in 103.937552 secs (1033064374 bytes/sec)
107374182400 byte= s transferred in 104.474689 secs (1027753071 bytes/sec)
107374182400 byt= es transferred in 104.939627 secs (1023199578 bytes/sec)
107374182400 by= tes transferred in 105.002306 secs (1022588806 bytes/sec)
107374182400 b= ytes transferred in 105.674894 secs (1016080345 bytes/sec)
107374182400 = bytes transferred in 105.687319 secs (1015960885 bytes/sec)
107374182400= bytes transferred in 106.480994 secs (1008388239 bytes/sec)
10737418240= 0 bytes transferred in 106.837954 secs (1005019084 bytes/sec)
To have a total of=C2=A08152054382 bytes/sec (8.15 GB= ytes/s or 65Gb/s).
You can check the stats per queue, and yo= u will notice that 8 of them should have been used.
So you n= eed to use a multi-threaded/parallel rsync equivalent (on both sides) to fi= ll your link.


but tcpdump -i mce0 say= s:
store-09# tcpdump -i m= ce0 host <same net as mce0>
tcpdump: verbose output suppressed, use -v[v].= .. for full protocol decode
listening on mce0, link-type EN10MB (Ethernet), snap= shot length 262144 bytes
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 **********


Don=E2=80=99t worry about the= libpcap definition, from contrib/libpcap/pcap/dlt.h :
#defi= ne DLT_NULL =C2=A0 =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 =C2=A0 /* BSD loopba= ck encapsulation */
#define DLT_EN10MB =C2=A0 =C2=A0 =C2=A01 =C2=A0 =C2= =A0 =C2=A0 /* Ethernet (10Mb) */
#define DLT_EN3MB =C2=A0 =C2=A0 =C2=A0 = 2 =C2=A0 =C2=A0 =C2=A0 /* Experimental Ethernet (3Mb) */
#define DLT_AX2= 5 =C2=A0 =C2=A0 =C2=A0 =C2=A03 =C2=A0 =C2=A0 =C2=A0 /* Amateur Radio AX.25 = */
#define DLT_PRONET =C2=A0 =C2=A0 =C2=A04 =C2=A0 =C2=A0 =C2=A0 /* Prot= eon ProNET Token Ring */
#define DLT_CHAOS =C2=A0 =C2=A0 =C2=A0 5 =C2=A0= =C2=A0 =C2=A0 /* Chaos */
#define DLT_IEEE802 =C2=A0 =C2=A0 6 =C2=A0 = =C2=A0 =C2=A0 /* 802.5 Token Ring */
#define DLT_ARCNET =C2=A0 =C2=A0 = =C2=A07 =C2=A0 =C2=A0 =C2=A0 /* ARCNET, with BSD-style header */
#define= DLT_SLIP =C2=A0 =C2=A0 =C2=A0 =C2=A08 =C2=A0 =C2=A0 =C2=A0 /* Serial Line = IP */
#define DLT_PPP =C2=A0 =C2=A0 =C2=A0 =C2=A0 9 =C2=A0 =C2=A0 =C2=A0= /* Point-to-point Protocol */
#define DLT_FDDI =C2=A0 =C2=A0 =C2=A0 =C2= =A010 =C2=A0 =C2=A0 =C2=A0/* FDDI */

So = the EN10MB is simply the term used for "Ethernet".

Regards,
Olivier
--0000000000008c9b130637eb6c27-- From nobody Thu Jun 19 13:12:51 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bNLdS2h8Qz5ygDF for ; Thu, 19 Jun 2025 13:13:16 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4bNLdR2Dw4z3NGG; Thu, 19 Jun 2025 13:13:15 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=Z1loEmidkQqsUwojBD34OL3hmTo40D7YYf4XJvYkttQ=; b=FZhpYVe2mJSRrAH/G12TyTqFAAVDDik+tzpZxvTliot5BHpMFkRo0wZhquoF7Wa9nK5X3Mx/fdHUvXGR5RAJuEBoN9/KPuwHxDTto2VskrYg7epAjYEC3yujVYb64why8Mi2QtT8vvSWmcz2IREAPXdzwtI5OY22kYBxRYT1e+TPutyVS4zXIiEGJyaV3njOqsiSrQ9Nqr/tqKgmh3pIlipvybySkv3oi8nDuQhPJ9DLOVpd4WfWfPUMmpG7vP45NVIOz6l+iE8OAxd9NtLgL+uQie54nTdIKoImUK7GFpy8/cGdY/qf6TGH7pLFo6lYkmumb7LrZKJ2uIdw3Ffnlg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cse.huji.ac.il; s=57791128; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=Z1loEmidkQqsUwojBD34OL3hmTo40D7YYf4XJvYkttQ=; b=dOFOfooZrxeljEb7PklF2u1ysLTG8SyQYz1JbqViQ/72syIn74mcGOwTApnu+Y1hvSYVtOSSRfk1r4sT+zgi4zGWf6PjEwN5v1hxemZN0fLwG6f14qPaawr6bsui3k3k4d3Uox2k00CmAvwJVexJvJ8CRWjrqFZgOY6XTtgNUG64i+IJpp3nHnKlPEukCOXS9cLKY0SpZXA7nBXdRSzkJiLfH+AE51jyZmSuEJ5ii/rVrWtgYKVbjG92fKA3KeRVs2qN5VeScNcvRyILtYGzwNg/iC2lnKvCREuRPg1jMf0SVGpm8Erwb8OjyoHZxe+cgSwyMJuiKZylPC1CsAPD9Q==; Received: from imac.bk.cs.huji.ac.il ([132.65.179.42] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1uSF4p-000HJH-HM; Thu, 19 Jun 2025 16:13:11 +0300 From: Daniel Braniss Message-Id: <585AA32B-F679-411F-B472-9E903E70A653@cs.huji.ac.il> Content-Type: multipart/alternative; boundary="Apple-Mail=_1E0C87ED-FBAC-4052-97EF-D6AAD681E391" List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: 100Gb performance Date: Thu, 19 Jun 2025 16:12:51 +0300 In-Reply-To: Cc: freebsd-hackers To: =?utf-8?Q?Olivier_Cochard-Labb=C3=A9?= References: <69416040-9E55-42E9-9203-FF1706F2A51E@cs.huji.ac.il> X-Mailer: Apple Mail (2.3826.600.51.1.1) X-Rspamd-Queue-Id: 4bNLdR2Dw4z3NGG X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:378, ipnet:132.64.0.0/15, country:IL] --Apple-Mail=_1E0C87ED-FBAC-4052-97EF-D6AAD681E391 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Olivier The problem I have it=E2=80=99s that one end is an iscilon storage, not = much I can do there. We are running several rsyncs in parallel, getting some better = throughput, but nowhere near the 10GB/, actually just barely touching 1GB/s Thanks, Danny > On 19 Jun 2025, at 14:55, Olivier Cochard-Labb=C3=A9 = wrote: >=20 >=20 > On Thu, Jun 19, 2025 at 8:20=E2=80=AFAM Daniel Braniss = > wrote: >> hi, >>=20 >> i am running 14.2 on a DELL PowerEdge R750 with a mellanox/nvidia = 100Gb nic mlx5en:=20 >>=20 >> mce0: flags=3D1008843 = metric 0 mtu 1500 >> =20 >> = options=3D66ef07bb >> ether ... >> inet ... netmask 0xfffffc00 broadcast =E2=80=A6. >> media: Ethernet 100GBase-KR4 >> status: active >> nd6 options=3D29 >>=20 >> I=E2=80=99m doing a rsync from an iscsilon mounted via this mce0, the = best max throughput is about 1GBs which is a bit depressing >>=20 >=20 > Regarding this 1GB/s (8Gb/s) it is how I get on my side with a very = simple netcat transfert. > By simple transfert, I mean using one TCP flow with a single process = netcat: >=20 > On the receiver host: > nc -l 12345 > /dev/null > On the sender host: > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12345 > 107374182400 bytes transferred in 77.772515 secs (1380618626 = bytes/sec) >=20 > Which is about 1.3GB/s, so close to your 1GB/s. >=20 > Let=E2=80=99s dig a little more and one the sender, displaying the = stats for each NIC queues. > How many queues the drivers configured on my sender system ? > # sysctl dev.mce.0.conf.channels > dev.mce.0.conf.channels: 40 > So 40 queues (match my output of nproc), great. > But how many were used during this test: > # sysctl dev.mce.0 | awk '/txstat.*\.bytes/ && $NF !=3D 0' > dev.mce.0.txstat26tc0.bytes: 74 > dev.mce.0.txstat20tc0.bytes: 120 > dev.mce.0.txstat4tc0.bytes: 112564632016 > dev.mce.0.txstat0tc0.bytes: 60 >=20 > =3D> Only one queue (the number 4 in my example) is used. > And it is the same problem on the receiver: One queue/one core >=20 > Let=E2=80=99s improving this by running 8 parallels nc at the same = time, but we need to use 8 different TCP sessions to let RSS selecting 8 = differents queues: > On the receiver host: > nc -l 12341 > /dev/null & > nc -l 12342 > /dev/null & > nc -l 12343 > /dev/null & > nc -l 12344 > /dev/null & > nc -l 12345 > /dev/null & > nc -l 12346 > /dev/null & > nc -l 12347 > /dev/null & > nc -l 12348 > /dev/null >=20 > On the sender host: > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12341 & > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12342 & > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12343 & > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12344 & > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12345 & > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12346 & > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12347 & > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12348 >=20 > Then we need to add the output from all those dd: > 107374182400 bytes transferred in 103.937552 secs (1033064374 = bytes/sec) > 107374182400 bytes transferred in 104.474689 secs (1027753071 = bytes/sec) > 107374182400 bytes transferred in 104.939627 secs (1023199578 = bytes/sec) > 107374182400 bytes transferred in 105.002306 secs (1022588806 = bytes/sec) > 107374182400 bytes transferred in 105.674894 secs (1016080345 = bytes/sec) > 107374182400 bytes transferred in 105.687319 secs (1015960885 = bytes/sec) > 107374182400 bytes transferred in 106.480994 secs (1008388239 = bytes/sec) > 107374182400 bytes transferred in 106.837954 secs (1005019084 = bytes/sec) >=20 > To have a total of 8152054382 bytes/sec (8.15 GBytes/s or 65Gb/s). > You can check the stats per queue, and you will notice that 8 of them = should have been used. > So you need to use a multi-threaded/parallel rsync equivalent (on both = sides) to fill your link. >=20 >=20 >> but tcpdump -i mce0 says: >> store-09# tcpdump -i mce0 host >> tcpdump: verbose output suppressed, use -v[v]... for full protocol = decode >> listening on mce0, link-type EN10MB (Ethernet), snapshot length = 262144 bytes >> ********** >>=20 >=20 > Don=E2=80=99t worry about the libpcap definition, from = contrib/libpcap/pcap/dlt.h : > #define DLT_NULL 0 /* BSD loopback encapsulation */ > #define DLT_EN10MB 1 /* Ethernet (10Mb) */ > #define DLT_EN3MB 2 /* Experimental Ethernet (3Mb) */ > #define DLT_AX25 3 /* Amateur Radio AX.25 */ > #define DLT_PRONET 4 /* Proteon ProNET Token Ring */ > #define DLT_CHAOS 5 /* Chaos */ > #define DLT_IEEE802 6 /* 802.5 Token Ring */ > #define DLT_ARCNET 7 /* ARCNET, with BSD-style header */ > #define DLT_SLIP 8 /* Serial Line IP */ > #define DLT_PPP 9 /* Point-to-point Protocol */ > #define DLT_FDDI 10 /* FDDI */ >=20 > So the EN10MB is simply the term used for "Ethernet". >=20 > Regards, > Olivier --Apple-Mail=_1E0C87ED-FBAC-4052-97EF-D6AAD681E391 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = Olivier
The problem I have it=E2=80=99s that one end is an iscilon = storage, not much I can do there.
We are running several = rsyncs in parallel, getting some better throughput, = but
nowhere near the 10GB/, actually just barely touching = 1GB/s

Thanks,
= Danny

On 19 Jun = 2025, at 14:55, Olivier Cochard-Labb=C3=A9 <olivier@freebsd.org> = wrote:


On Thu, Jun 19, 2025 at 8:20=E2=80=AFA= M Daniel Braniss <danny@cs.huji.ac.il> = wrote:
hi,

i am running 14.2 on a DELL = PowerEdge R750 with a mellanox/nvidia 100Gb nic =  mlx5en: 

mce0: = flags=3D1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> = metric 0 mtu 1500
 
options=3D66ef07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUM= BO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,NV,VLAN_HWTSO,LINKSTATE,RXC= SUM_IPV6,TXCSUM_IPV6,HWSTATS,HWRXTSTMP,MEXTPG,VXLAN_HWCSUM,VXLAN_HWTSO>=
       ether ...
       inet = ... netmask 0xfffffc00 broadcast =E2=80=A6.
       media: Ethernet = 100GBase-KR4 <full-duplex,rxpause,txpause>
       status: = active
       nd6 = options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
=
I=E2=80=99m doing a = rsync from an iscsilon mounted via this mce0, the = best max throughput is about 1GBs = which is a bit = depressing


Regarding this 1GB/s (8Gb/s) it is = how I get on my side with a very simple netcat transfert.
By simple transfert, I mean using = one TCP flow with a single process netcat:

On the receiver host:
nc -l 12345 > = /dev/null
On the sender = host:
dd if=3D/dev/zero = bs=3D1G count=3D100 | nc 1.1.1.30 12345
107374182400 bytes transferred in 77.772515 secs (1380618626 = bytes/sec)

Which is about 1.3GB/s, so close to = your 1GB/s.

Let=E2=80=99s dig a little more and = one the sender, displaying the stats for each NIC queues.
How many queues the drivers = configured on my sender system ?
# sysctl dev.mce.0.conf.channels
dev.mce.0.conf.channels: = 40
So 40 queues = (match my output of nproc), great.
But how many were used during this test:
# sysctl dev.mce.0 | awk = '/txstat.*\.bytes/ && $NF !=3D = 0'
dev.mce.0.txstat26tc0.bytes: 74
dev.mce.0.txstat20tc0.bytes: = 120
dev.mce.0.txstat4tc0.bytes: = 112564632016
dev.mce.0.txstat0tc0.bytes: 60

=3D> Only one queue (the number = 4 in my example) is used.
And it is the same problem on the receiver: One queue/one = core

Let=E2=80=99s improving this by = running 8 parallels nc at the same time, but we need to use 8 different = TCP sessions to let RSS selecting 8 differents queues:
On the receiver host:
nc -l 12341 > /dev/null = &
nc -l 12342 > /dev/null &
nc -l 12343 > /dev/null = &
nc -l 12344 > /dev/null &
nc -l 12345 > /dev/null = &
nc -l 12346 > /dev/null &
nc -l 12347 > /dev/null = &
nc -l 12348 > /dev/null

On the sender host:
dd = if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12341 &
dd = if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12342 &
dd = if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12343 &
dd = if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12344 &
dd = if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12345 &
dd = if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12346 &
dd = if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12347 &
dd = if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12348

Then we need to add the output from = all those dd:
107374182400 = bytes transferred in 103.937552 secs (1033064374 = bytes/sec)
107374182400 bytes transferred in 104.474689 secs = (1027753071 bytes/sec)
107374182400 bytes transferred in 104.939627 = secs (1023199578 bytes/sec)
107374182400 bytes transferred in = 105.002306 secs (1022588806 bytes/sec)
107374182400 bytes transferred = in 105.674894 secs (1016080345 bytes/sec)
107374182400 bytes = transferred in 105.687319 secs (1015960885 bytes/sec)
107374182400 = bytes transferred in 106.480994 secs (1008388239 = bytes/sec)
107374182400 bytes transferred in 106.837954 secs = (1005019084 bytes/sec)

To have a total = of 8152054382 bytes/sec (8.15 GBytes/s or 65Gb/s).
You can check the stats per queue, = and you will notice that 8 of them should have been used.
So you need to use a = multi-threaded/parallel rsync equivalent (on both sides) to fill your = link.


but tcpdump -i mce0 = says:
store-09# tcpdump -i mce0 host = <same net as mce0>
tcpdump: = verbose output suppressed, use -v[v]... for full protocol = decode
listening on mce0, = link-type EN10MB (Ethernet), snapshot length 262144 bytes
        =                     =                 **********
<= br>

Don=E2=80=99t worry about the libpcap definition, from = contrib/libpcap/pcap/dlt.h :
#define DLT_NULL        0     =   /* BSD loopback encapsulation */
#define DLT_EN10MB   =    1       /* Ethernet (10Mb) */
#define = DLT_EN3MB       2       /* Experimental = Ethernet (3Mb) */
#define DLT_AX25        3 =       /* Amateur Radio AX.25 */
#define DLT_PRONET =      4       /* Proteon ProNET Token Ring = */
#define DLT_CHAOS       5       /* = Chaos */
#define DLT_IEEE802     6       /* = 802.5 Token Ring */
#define DLT_ARCNET      7   =     /* ARCNET, with BSD-style header */
#define DLT_SLIP =        8       /* Serial Line IP = */
#define DLT_PPP         9       = /* Point-to-point Protocol */
#define DLT_FDDI       =  10      /* FDDI */

So the EN10MB is = simply the term used for "Ethernet".

Regards,
Olivier

= --Apple-Mail=_1E0C87ED-FBAC-4052-97EF-D6AAD681E391-- From nobody Thu Jun 19 14:25:38 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bNNFK0LTzz5ykw5 for ; Thu, 19 Jun 2025 14:25:57 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bNNFH6LSwz3nWV for ; Thu, 19 Jun 2025 14:25:55 +0000 (UTC) (envelope-from nonesuch@longcount.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=longcount.org header.s=google header.b=SidNi1r6; spf=pass (mx1.freebsd.org: domain of nonesuch@longcount.org designates 2607:f8b0:4864:20::833 as permitted sender) smtp.mailfrom=nonesuch@longcount.org; dmarc=none Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-4a58ba6c945so14182781cf.2 for ; Thu, 19 Jun 2025 07:25:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=longcount.org; s=google; t=1750343150; x=1750947950; darn=freebsd.org; h=to:in-reply-to:references:message-id:date:subject:mime-version:from :content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=QSWNNO6ODQJHKsXZoE8RMVBftT0IUxditHQRZzXxVz0=; b=SidNi1r6YX7BpZWf4scCG0bEsNTDi+gxnd642VdTPhrRujjDjVgQHNeIHSo6putaRr lm3kwTYCFNxopNPkoZyQAsvbKUDzgtBHIdl8Nwd9oMfFC1LVkB6Af6SGN02X0lINv51n aGVCyijqUHekLWQtN6slZ2PQQCPeKmumy67dSpd1gHVHrXnxwwZgO6xcqJBMPQluonIY 7IFGCE/ZOoSV7WavtQ+heAO4r20QbSKlFTqwZ4Qtot8FvkcSgOcsBoTl4GbHfk0edXiX e4lm6XKFAs4baiiI9ozccQGxFQ0OdwXpk8L/tDdGj40XkAkXRWPlkhYCgeIrye/f405x pFwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750343150; x=1750947950; h=to:in-reply-to:references:message-id:date:subject:mime-version:from :content-transfer-encoding:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=QSWNNO6ODQJHKsXZoE8RMVBftT0IUxditHQRZzXxVz0=; b=H+d/tBDNWyPumXAmqTxgLBRQWrLCcKedx5d06NgtokgAVZnhxVwtbQZrp1QiPqG4Nl 9FpcCQItFraUIdZbRBrj5A13gwUDgWLv9CY1oSGg95Mkcqcyvt6t0wYLp5c5bRWub12N gvfEO/NMwFKyx/0zEtOsEykBOCCLQnz1EBkLaUEj9QpYpQSqwQP6q3y21dRr2tKGWkcF 17OrywKeNWstSYaKKu+yJutcEDxQuLT/FdESDavmjBabLuBkRcNTAvjlKdsG8w/CxZ5p flu3j672Jh+kg+2k43ZDlgD+8T7tFDX3JZbUTJgXhFNGBHxKZkMa0YiOvVh78orvhPMX rEFA== X-Gm-Message-State: AOJu0YxBx0bCz122bj3DcYuFfyc8UhGdbiRAgKye2kTJbIN9ktgdErxL bYv1JGgqlzbWGMqt4b8QCipRawt8aRcwaC+xhiagpA3VcIGULpzlgy9d2dXXr7gkii3Hms3j9Fj t2GMqSm8= X-Gm-Gg: ASbGncsV9zcMeYLoP5UmPTdoxti7BNdQxQvFR949G56qhf7/8G6VF+cP9fSGaqI+BJ6 THF7KbDYxN3xVEqQt85AETPwT4Y+zmQxNho0wE0z5Tp9cWvkUYU0UTvi7owC0i5j7jlk3fxkDui 6mbVSfL6bZJAa28/5ZDbUeY17BQl/Wu9gmvV/fxkymAdUd4/HVNEQdW/mAhmYfqpE/iTmEa3J9L C9JHZR7F7RUAZQxsE/jU6ywuQm/TKWys72fAd6o2DXRH5/n3BxvFDnMMoNfgdOo98HRilr3Qdk5 2Zf4FcrEZ/Ko0jACJlSheCkgnUW+AVYGzhSg83eh5xeRyzBPshDOFc55IBfZB7LofyVdbmvOQ6T YgYOxjSRZp6SWDd1H7DChjDo2M1A3v5/MJsvuxN3YQHYhFbe83niL2Q== X-Google-Smtp-Source: AGHT+IF3W+JTJ1ZpzCoPhUNzwO3TDMERTM4mkjLRKmoPUyC5XtK7nGUVIFZEdjoUW0QPxJbGHumYsQ== X-Received: by 2002:a05:622a:1887:b0:4a7:22fe:8ec5 with SMTP id d75a77b69052e-4a76d467930mr60818871cf.1.1750343149500; Thu, 19 Jun 2025 07:25:49 -0700 (PDT) Received: from smtpclient.apple (pool-68-161-195-36.nycmny.fios.verizon.net. [68.161.195.36]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4a778394f64sm36721cf.0.2025.06.19.07.25.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jun 2025 07:25:49 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-F5C82AE6-FA53-4053-92C6-36CBE8B4B3A4 Content-Transfer-Encoding: 7bit From: Mark Saad List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 (1.0) Subject: Re: 100Gb performance Date: Thu, 19 Jun 2025 10:25:38 -0400 Message-Id: <8EB5CD7B-8DC8-4B95-A90A-A0DF8FD80BB4@longcount.org> References: <585AA32B-F679-411F-B472-9E903E70A653@cs.huji.ac.il> In-Reply-To: <585AA32B-F679-411F-B472-9E903E70A653@cs.huji.ac.il> To: freebsd-hackers X-Mailer: iPhone Mail (22F76) X-Spamd-Result: default: False [2.34 / 15.00]; NEURAL_SPAM_LONG(0.98)[0.980]; NEURAL_SPAM_MEDIUM(0.85)[0.846]; NEURAL_SPAM_SHORT(0.81)[0.813]; R_DKIM_ALLOW(-0.20)[longcount.org:s=google]; MIME_HTML_ONLY(0.20)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_TRACE(0.00)[0:+,1:~]; TO_DN_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[longcount.org]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[longcount.org:+]; APPLE_IOS_MAILER_COMMON(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[hackers@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::833:from]; MLMMJ_DEST(0.00)[hackers@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4bNNFH6LSwz3nWV X-Spamd-Bar: ++ --Apple-Mail-F5C82AE6-FA53-4053-92C6-36CBE8B4B3A4 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Jun 19, 2025, at 9:14=E2=80=AFAM, Daniel B= raniss <danny@cs.huji.ac.il> wrote:

=EF=BB=BFHi Olivier
The problem I have i= t=E2=80=99s that one end is an iscilon storage, not much I can do there.
We are running several rsyncs in parallel, getting some better throug= hput, but
nowhere near the 10GB/, actually just barely touching 1G= B/s

Thanks,
Dann= y

On 19 Jun 2025, at 14:55, Oli= vier Cochard-Labb=C3=A9 <olivier@freebsd.org> wrote:


= On Thu, Jun 19, 2025 at 8:20=E2=80=AFAM Daniel Braniss <danny@cs.huji.ac.il> wrote:
hi,
i am running 14.2 on a DELL PowerEdge R750 with a mellanox= /nvidia 100Gb nic  mlx5en: 

mce0: flags=3D1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP&= gt; metric 0 mtu 1500
 
opt= ions=3D66ef07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCS= UM,TSO4,TSO6,LRO,VLAN_HWFILTER,NV,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IP= V6,HWSTATS,HWRXTSTMP,MEXTPG,VXLAN_HWCSUM,VXLAN_HWTSO>
       ether ...
       inet ... netmas= k 0xfffffc00 broadcast =E2=80=A6.
       media: Ethernet 100GBase-K= R4 <full-duplex,rxpause,txpause>
       status: active
       nd6 options=3D= 29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

I=E2=80=99m doing a rsync from an iscsi= lon mounted via this mce0, the best max t= hroughput is about 1GBs which is a bit depressing


Regarding this 1GB/s (8Gb/s) i= t is how I get on my side with a very simple netcat transfert.
By simple tra= nsfert, I mean using one TCP flow with a single process netcat:

On the r= eceiver host:
nc -l 12345 > /dev/null
On the sender host:
dd if=3D/dev/ze= ro bs=3D1G count=3D100 | nc 1.1.1.30 12345
107374182400 bytes transferred in= 77.772515 secs (1380618626 bytes/sec)

Which is about 1.3GB/s, so close= to your 1GB/s.

Let=E2=80=99s dig a little more and one the sender, dis= playing the stats for each NIC queues.
How many queues the drivers configure= d on my sender system ?
# sysctl dev.mce.0.conf.channels
dev.mce.0.conf.c= hannels: 40
So 40 queues (match my output of nproc), great.
But how many were u= sed during this test:
# sysctl dev.mce.0 | awk '/txstat.*\.bytes/ &&= $NF !=3D 0'
dev.mce.0.txstat26tc0.bytes: 74
dev.mce.0.txstat20tc0.byt= es: 120
dev.mce.0.txstat4tc0.bytes: 112564632016
dev.mce.0.txstat0tc0.= bytes: 60

=3D> Only one queue (the number 4 in my example) is used.
An= d it is the same problem on the receiver: One queue/one core

Let=E2=80=99= s improving this by running 8 parallels nc at the same time, but we need to u= se 8 different TCP sessions to let RSS selecting 8 differents queues:
<= div class=3D"gmail_default" style=3D"caret-color: rgb(0, 0, 0); font-size: 1= 4px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter= -spacing: normal; text-align: start; text-indent: 0px; text-transform: none;= white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; tex= t-decoration: none; font-family: "courier new", monospace;">On the= receiver host:
nc -l 12341 > /dev/null &
nc -l 12342 > /dev/nu= ll &
nc -l 12343 > /dev/null &
nc -l 12344 > /dev/null &= amp;
nc -l 12345 > /dev/null &
nc -l 12346 > /dev/null &=
nc -l 12347 > /dev/null &
nc -l 12348 > /dev/null

On= the sender host:
dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 123= 41 &
dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12342 &<= br>dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12343 &
dd if=3D= /dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12344 &
dd if=3D/dev/zero= bs=3D1G count=3D100 | nc 1.1.1.30 12345 &
dd if=3D/dev/zero bs=3D1G c= ount=3D100 | nc 1.1.1.30 12346 &
dd if=3D/dev/zero bs=3D1G count=3D10= 0 | nc 1.1.1.30 12347 &
dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.= 1.1.30 12348

Then we need to add the output from all those dd:
107374182400= bytes transferred in 103.937552 secs (1033064374 bytes/sec)
107374182400= bytes transferred in 104.474689 secs (1027753071 bytes/sec)
107374182400= bytes transferred in 104.939627 secs (1023199578 bytes/sec)
107374182400= bytes transferred in 105.002306 secs (1022588806 bytes/sec)
107374182400= bytes transferred in 105.674894 secs (1016080345 bytes/sec)
107374182400= bytes transferred in 105.687319 secs (1015960885 bytes/sec)
107374182400= bytes transferred in 106.480994 secs (1008388239 bytes/sec)
107374182400= bytes transferred in 106.837954 secs (1005019084 bytes/sec)

To have a to= tal of 8152054382 bytes/sec (8.15 GBytes/s or 65Gb/s).
You can check the s= tats per queue, and you will notice that 8 of them should have been used.
So= you need to use a multi-threaded/parallel rsync equivalent (on both sides) t= o fill your link.


but tcpdump -i= mce0 says:
store-09# tcpdump -i mce0 host= <same net as mce0>
tcpdump: ver= bose output suppressed, use -v[v]... for full protocol decode
listening on mce0, link-type EN10MB (Ethernet), snap= shot length 262144 bytes
&n= bsp;                     &= nbsp;                    <= span class=3D"Apple-converted-space"> **********


Don=E2=80=99t worry= about the libpcap definition, from contrib/libpcap/pcap/dlt.h :
#define DLT_= NULL        0       /* BSD loopback encap= sulation */
#define DLT_EN10MB      1      = /* Ethernet (10Mb) */
#define DLT_EN3MB       2   &n= bsp;   /* Experimental Ethernet (3Mb) */
#define DLT_AX25   &nb= sp;    3       /* Amateur Radio AX.25 */
#define= DLT_PRONET      4       /* Proteon ProNET Tok= en Ring */
#define DLT_CHAOS       5       /= * Chaos */
#define DLT_IEEE802     6       /* 80= 2.5 Token Ring */
#define DLT_ARCNET      7     &= nbsp; /* ARCNET, with BSD-style header */
#define DLT_SLIP     &= nbsp;  8       /* Serial Line IP */
#define DLT_PPP &= nbsp;       9       /* Point-to-point Protocol= */
#define DLT_FDDI        10      /*= FDDI */

So the EN10MB is simply the term used for "Ethernet".

Rega= rds,
Olivier

=
Danny
  Ive run into this exact issue , older isil= ons and 10Gb nics. Like Olivier mentioned parallel streams is the way to go.=  In My case i would mount the isilon data 10 times on my clients . it w= as something like /data/0 /data/1... . The for rsync i knew what was going t= o be moved / worked on etc. So i would split the files into 10 sets and run 1= 0 rsyncs one for each substof data . ie set 0 would go from /data/0 to /targ= et/0  and so on.  That worked well then we also has a custom progr= am that fed jobs into a queue when a new task was picked from the queue , th= is was some big data thing don't remember exactly, the dir to work on was se= lected at random from 0-9 . Again that worked well , but we ultimately moved= to leofs then to minio both s3 work-a-likes to gain the parallel bits in th= e http transport .  Part of the nfs / cifs issues are the nature of the= single socket used for the mounts. So more mounts the better . Also on hind= sight i should have used the number of mounts equal to the  nic queues ,= and roughly that should line up with cores in the client as well. ie if i h= ad an 16 core single socket box i would want 8 nic queues to start , so they= can be serviced by free cores . Another thing you can play with is keeping t= he nic attached to the first numa domain , pin the work tasks / programs/ th= reads to the same domain , this ca get tricky but you can get some additiona= l speed and latency improvements. 


-= --
Mark Saad | nonesuch@longcount.org

= --Apple-Mail-F5C82AE6-FA53-4053-92C6-36CBE8B4B3A4-- From nobody Thu Jun 19 14:30:25 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bNNLs3bDqz5ylY1 for ; Thu, 19 Jun 2025 14:30:45 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bNNLr63QKz3qRT for ; Thu, 19 Jun 2025 14:30:44 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-60700a745e5so1731982a12.3 for ; Thu, 19 Jun 2025 07:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750343438; x=1750948238; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=SA6+ZcLYZhj4ShxqHKratP1nfRF1W0R7FyCD/0/6GDA=; b=DGlETyiMRqDeutFoFghKPj49lCcmfwLew7BdXY8OUWDGPSMWS0zjn+c3D20Yhfg9jb TO9h6G6mJDKCs/z2S8O2yOehWIICuvgrxMm991pj2daVuyiZeKg1Jr12ps3gdRFfcM19 g5GLjKaSXULAyLpbnf1zsVKi++R6wKLBz1J/ate5E97fh/V4AIPApKI22F8R/Yu1IjOe nI3qXILswvBeT9P81M6nyB2+EPbVTg3d+fohszCQxTiT9+FXUYTFg1rtp8c8UIQJQIK5 GWMuhNqEVT1LtZvt6/IwUmwhBDjc96V7Cc584HGU+FRQPwQzPA5CgeAEI4X1mBSDO/pd cMBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750343438; x=1750948238; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SA6+ZcLYZhj4ShxqHKratP1nfRF1W0R7FyCD/0/6GDA=; b=H2K4QFi8E2/OAmSvWINr1hd4moI7KHBm3Hh+ZGadvNL5pJGQ1FHnbg0yPmA9lZSLc2 HJv59ecFVQg1sUB8O86QnEVqAKNRDZADadYsj9OTnehrl/oY3vi15H49k7j4Pmdnvhj5 K9fDq9+Ht1Yy8j8/xmPXVbsLTXUaADQ87RzqdnSfOEsLIeIDMzeFlT0T2zuWINtVn3tC AuVheVEiUMtaM0W72sSla2r3c3RK5bFmjI57tLZujcl3eulBYZdbf+qJ+LuH9dZcc7zD bClajDimvDybvq1zO37TdEyAvBM2KT7XGQzkgkgFoTg8i5dEcWnJVBzSl+WZgTg+LC4N H0Sw== X-Gm-Message-State: AOJu0YyKYC2aYxWJwiKHmbWHRy2lS72dXR/CeCn6woGNgopbUXPA8H2t ktgvnDF4cJy3gPPr6nOjBwIVBGJnP/T8Deqm+lQwz+hH1+UxB623K0cLEz4iuzrZw7SmG1RU2xf C9K0wgIsX1uugPC1O54XNuZf4rA5aZQ== X-Gm-Gg: ASbGncsrqbjDcbDzPmN5RzEN8nrAomfBkPzocODpC9txtOGcrfk2ycbTSDY1stCbiOB UXZg19MOjk7m5S64pnTogwkxIQ4XY/sqpJa/0ZBxtjJNOG6CYlxI64vNO1HcIyNQq8JG9ehdlaY XOYrbI94ivEPC4doZ6ZZZL3FdrGkk940PYD/BLRTcY/pNPg8efbcW2rTtV2X94DNMWYGc5jku9w mw= X-Google-Smtp-Source: AGHT+IELLM+VOWz/HbVDerSr10mgg2BzcxW7GOAPkS4GTJ2WOoBvPTMwJN+TRpNDmQ5uKpBuetS0LkVj7SCQ+jfXviQ= X-Received: by 2002:a05:6402:3550:b0:608:493a:cccf with SMTP id 4fb4d7f45d1cf-608d099e200mr19927755a12.30.1750343437994; Thu, 19 Jun 2025 07:30:37 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <585AA32B-F679-411F-B472-9E903E70A653@cs.huji.ac.il> <8EB5CD7B-8DC8-4B95-A90A-A0DF8FD80BB4@longcount.org> In-Reply-To: <8EB5CD7B-8DC8-4B95-A90A-A0DF8FD80BB4@longcount.org> From: Rick Macklem Date: Thu, 19 Jun 2025 07:30:25 -0700 X-Gm-Features: AX0GCFsJ4_ZxnoABU2cS7Lxuy9VxQ3rWrAv2Zg9rJRZlO8I59eOo1iURIuh9UYQ Message-ID: Subject: Re: 100Gb performance To: Mark Saad Cc: freebsd-hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4bNNLr63QKz3qRT X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] On Thu, Jun 19, 2025 at 7:26=E2=80=AFAM Mark Saad = wrote: > > > > On Jun 19, 2025, at 9:14=E2=80=AFAM, Daniel Braniss = wrote: > > =EF=BB=BFHi Olivier > The problem I have it=E2=80=99s that one end is an iscilon storage, not m= uch I can do there. > We are running several rsyncs in parallel, getting some better throughput= , but > nowhere near the 10GB/, actually just barely touching 1GB/s > > Thanks, > Danny > > On 19 Jun 2025, at 14:55, Olivier Cochard-Labb=C3=A9 wrote: > > > On Thu, Jun 19, 2025 at 8:20=E2=80=AFAM Daniel Braniss wrote: >> >> hi, >> >> i am running 14.2 on a DELL PowerEdge R750 with a mellanox/nvidia 100Gb = nic mlx5en: >> >> mce0: flags=3D1008843 m= etric 0 mtu 1500 >> >> options=3D66ef07bb >> ether ... >> inet ... netmask 0xfffffc00 broadcast =E2=80=A6. >> media: Ethernet 100GBase-KR4 >> status: active >> nd6 options=3D29 >> >> I=E2=80=99m doing a rsync from an iscsilon mounted via this mce0, the be= st max throughput is about 1GBs which is a bit depressing >> > > Regarding this 1GB/s (8Gb/s) it is how I get on my side with a very simpl= e netcat transfert. > By simple transfert, I mean using one TCP flow with a single process netc= at: > > On the receiver host: > nc -l 12345 > /dev/null > On the sender host: > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12345 > 107374182400 bytes transferred in 77.772515 secs (1380618626 bytes/sec) > > Which is about 1.3GB/s, so close to your 1GB/s. > > Let=E2=80=99s dig a little more and one the sender, displaying the stats = for each NIC queues. > How many queues the drivers configured on my sender system ? > # sysctl dev.mce.0.conf.channels > dev.mce.0.conf.channels: 40 > So 40 queues (match my output of nproc), great. > But how many were used during this test: > # sysctl dev.mce.0 | awk '/txstat.*\.bytes/ && $NF !=3D 0' > dev.mce.0.txstat26tc0.bytes: 74 > dev.mce.0.txstat20tc0.bytes: 120 > dev.mce.0.txstat4tc0.bytes: 112564632016 > dev.mce.0.txstat0tc0.bytes: 60 > > =3D> Only one queue (the number 4 in my example) is used. > And it is the same problem on the receiver: One queue/one core > > Let=E2=80=99s improving this by running 8 parallels nc at the same time, = but we need to use 8 different TCP sessions to let RSS selecting 8 differen= ts queues: > On the receiver host: > nc -l 12341 > /dev/null & > nc -l 12342 > /dev/null & > nc -l 12343 > /dev/null & > nc -l 12344 > /dev/null & > nc -l 12345 > /dev/null & > nc -l 12346 > /dev/null & > nc -l 12347 > /dev/null & > nc -l 12348 > /dev/null > > On the sender host: > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12341 & > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12342 & > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12343 & > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12344 & > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12345 & > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12346 & > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12347 & > dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12348 > > Then we need to add the output from all those dd: > 107374182400 bytes transferred in 103.937552 secs (1033064374 bytes/sec) > 107374182400 bytes transferred in 104.474689 secs (1027753071 bytes/sec) > 107374182400 bytes transferred in 104.939627 secs (1023199578 bytes/sec) > 107374182400 bytes transferred in 105.002306 secs (1022588806 bytes/sec) > 107374182400 bytes transferred in 105.674894 secs (1016080345 bytes/sec) > 107374182400 bytes transferred in 105.687319 secs (1015960885 bytes/sec) > 107374182400 bytes transferred in 106.480994 secs (1008388239 bytes/sec) > 107374182400 bytes transferred in 106.837954 secs (1005019084 bytes/sec) > > To have a total of 8152054382 bytes/sec (8.15 GBytes/s or 65Gb/s). > You can check the stats per queue, and you will notice that 8 of them sho= uld have been used. > So you need to use a multi-threaded/parallel rsync equivalent (on both si= des) to fill your link. > > >> but tcpdump -i mce0 says: >> store-09# tcpdump -i mce0 host >> tcpdump: verbose output suppressed, use -v[v]... for full protocol decod= e >> listening on mce0, link-type EN10MB (Ethernet), snapshot length 262144 b= ytes >> ********** >> > > Don=E2=80=99t worry about the libpcap definition, from contrib/libpcap/pc= ap/dlt.h : > #define DLT_NULL 0 /* BSD loopback encapsulation */ > #define DLT_EN10MB 1 /* Ethernet (10Mb) */ > #define DLT_EN3MB 2 /* Experimental Ethernet (3Mb) */ > #define DLT_AX25 3 /* Amateur Radio AX.25 */ > #define DLT_PRONET 4 /* Proteon ProNET Token Ring */ > #define DLT_CHAOS 5 /* Chaos */ > #define DLT_IEEE802 6 /* 802.5 Token Ring */ > #define DLT_ARCNET 7 /* ARCNET, with BSD-style header */ > #define DLT_SLIP 8 /* Serial Line IP */ > #define DLT_PPP 9 /* Point-to-point Protocol */ > #define DLT_FDDI 10 /* FDDI */ > > So the EN10MB is simply the term used for "Ethernet". > > Regards, > Olivier > > > Danny > Ive run into this exact issue , older isilons and 10Gb nics. Like Olivi= er mentioned parallel streams is the way to go. In My case i would mount t= he isilon data 10 times on my clients . it was something like /data/0 /data= /1... . The for rsync i knew what was going to be moved / worked on etc. So= i would split the files into 10 sets and run 10 rsyncs one for each substo= f data . ie set 0 would go from /data/0 to /target/0 and so on. That work= ed well then we also has a custom program that fed jobs into a queue when a= new task was picked from the queue , this was some big data thing don't re= member exactly, the dir to work on was selected at random from 0-9 . Again = that worked well , but we ultimately moved to leofs then to minio both s3 w= ork-a-likes to gain the parallel bits in the http transport . Part of the = nfs / cifs issues are the nature of the single socket used for the mounts. There is the "nconnect" mount option. It might help here. >So more mounts the better . > Also on hindsight i should have used the number of mounts equal to the n= ic queues , and roughly that should line up with cores in the client as wel= l. ie if i had an 16 core single socket box i would want 8 nic queues to st= art , so they can be serviced by free cores . Another thing you can play wi= th is keeping the nic attached to the first numa domain , pin the work task= s / programs/ threads to the same domain , this ca get tricky but you can g= et some additional speed and latency improvements. > > > --- > Mark Saad | nonesuch@longcount.org > > From nobody Thu Jun 19 15:10:11 2025 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bNPDg2glcz5ynm4 for ; Thu, 19 Jun 2025 15:10:27 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bNPDf0vPnz46lJ for ; Thu, 19 Jun 2025 15:10:26 +0000 (UTC) (envelope-from nonesuch@longcount.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=longcount.org header.s=google header.b=HAxtMrgq; spf=pass (mx1.freebsd.org: domain of nonesuch@longcount.org designates 2607:f8b0:4864:20::f2b as permitted sender) smtp.mailfrom=nonesuch@longcount.org; dmarc=none Received: by mail-qv1-xf2b.google.com with SMTP id 6a1803df08f44-6fa980d05a8so8686016d6.2 for ; Thu, 19 Jun 2025 08:10:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=longcount.org; s=google; t=1750345824; x=1750950624; darn=freebsd.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=WrAaDak+Gq0a37A5NXl+ZHwKCJ0Fw0XG0q/MYo+cRTk=; b=HAxtMrgqmYq0uNZKiSU4bAN4Uc9xbcukAWv+Um139rrwiq5X6C5i4MovF6P3J3n1yP QF3t1bkxXJ63Mv+XO6/2pOWETTqSyq2UbXoAz0vyxRD+tdICnuEjR/RXF/n21ri5JC7A DnuW1JKXPINQcT4Zy/u8SHlDyUaKeHtHb62bzx7CGsMGGbAIr/XyvX7B5KwIF8eR46nc 8AZYE6+mRl21vippOnWNZoNoIO/A/idMUteuORuBxCWUbsITzXg/NHz16SI72W3kdiKG 7Xs16e5ibq3bEi4IaNrFYrP1EpjM3esX0E12IXKt6OB9mOQeqC5Cp0JUQnoW+boPhC0h FnaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750345824; x=1750950624; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WrAaDak+Gq0a37A5NXl+ZHwKCJ0Fw0XG0q/MYo+cRTk=; b=hgWY0mPrKWK4VIJF2SQ0anWXRby7HIM0YP2/SFOms5qdUmv8QCCPK4xRcXl/EWWzzY oy/oh9TFUG+qt8wp4dtf9gWzeIZjIA4xo6z2+ax0nKDetxuh9ZpSmwPa3Vp09vKrWFNV +3r5B4R4dgrI1r92wMpFNdinAmLIWCOcOMULxjB+RKHcrOxGciwV0sCWle9UQ3S6Khul 50JDsSiH/reGBupZM5zKtkc0URGdzGR4g/0D5MNzrTF1h5LCMJZpGh/jFZmlNbulf3w2 mkqxL6QuVnGUNFuW0/puL8xRaxrce+/1MK9r3WL3coqMSMSi48JWJJiedn8Ysuh1KBf8 FWwg== X-Gm-Message-State: AOJu0YximAyH4NW+3HmUJlJuf/n071bztUMExrVx5d/L7ixmdDBNmInO W+I0dnTLMzm/JZUHJBKB/Jvjvxc9kau7rqjJBvPTeAHniAukkYQlrogVzfjKCJ41UivJGB6C3N6 nfERuOt8= X-Gm-Gg: ASbGnctGUl7uehO70ZGUCpTD4t+aYgUa9xpHW3ugncCDhlSUL4Q8/fTRpMXtgPDd46S Fup2iZ49RDHwEXKPWql0nR9lPCzCJsI7TRb04AU5JvlP81ZGHpFOPWdWhYfD9hCCLrShNIatnLW BSL8QR+SR9jozJlqQYN6XEXRG2ragUl/uxeAGVcspL0GYOKIX5otFXqER5qUzpew80L2ig7mmQh YdotsRajLF6dQDyLKFfZn/rve9uGQYirPNCAbxH7PbBMW4gly6eK9Js7iqFY+OBlpLTZAtI9tws LxaVck3n4W1AFcE/RtyKvZOIGRBNKFnhtvCBcGxphlnPSh8b7iZnMO+XcbIUc1D80mDD3gyzvwC pq4vrlSrhpWzMybzM6d1pxJREeeOx1Le+km4Q1cgQ7L1CaXBu+nRNYkOrE8wdZP2k X-Google-Smtp-Source: AGHT+IHkjPTgfnRVMVA+n9tJBoYjCv/SqTixFw43LnNERV/LOzssleKK1NB9wDlI9nVXMlg7Hot18g== X-Received: by 2002:a05:6214:4008:b0:6fb:f00:48a9 with SMTP id 6a1803df08f44-6fb47738b75mr340189516d6.19.1750345822234; Thu, 19 Jun 2025 08:10:22 -0700 (PDT) Received: from smtpclient.apple (pool-68-161-195-36.nycmny.fios.verizon.net. [68.161.195.36]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6fd09538023sm698196d6.69.2025.06.19.08.10.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jun 2025 08:10:21 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-866799EF-1EC1-4FCE-89BB-DCC967E0FC8D Content-Transfer-Encoding: 7bit From: Mark Saad List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 (1.0) Subject: Re: 100Gb performance Date: Thu, 19 Jun 2025 11:10:11 -0400 Message-Id: <1C2FB1F7-1A19-4883-9F95-0F44974220BC@longcount.org> References: Cc: freebsd-hackers In-Reply-To: To: Rick Macklem X-Mailer: iPhone Mail (22F76) X-Spamd-Result: default: False [2.17 / 15.00]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_SHORT(1.00)[0.999]; NEURAL_SPAM_MEDIUM(0.47)[0.469]; MIME_HTML_ONLY(0.20)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[longcount.org:s=google]; MIME_GOOD(-0.10)[multipart/alternative,multipart/related]; TO_DN_ALL(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~,3:~]; DMARC_NA(0.00)[longcount.org]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[longcount.org:+]; APPLE_IOS_MAILER_COMMON(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f2b:from]; PREVIOUSLY_DELIVERED(0.00)[hackers@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[hackers@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; TAGGED_RCPT(0.00)[]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4bNPDf0vPnz46lJ X-Spamd-Bar: ++ --Apple-Mail-866799EF-1EC1-4FCE-89BB-DCC967E0FC8D Content-Type: multipart/related; type="text/html"; boundary=Apple-Mail-B58B6E63-FA8E-4571-AD58-86BB20FA173D Content-Transfer-Encoding: 7bit --Apple-Mail-B58B6E63-FA8E-4571-AD58-86BB20FA173D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Jun 19, 2025, at 10:30=E2=80=AFAM, Rick Ma= cklem <rick.macklem@gmail.com> wrote:

=EF=BB=BFOn Thu, Jun 19, 2025 at 7= :26=E2=80=AFAM Mark Saad <nonesuch@longcount.org> wrote:



=
On Jun 19, 2025, at 9:14=E2=80=AF= AM, Daniel Braniss <danny@cs.huji.ac.il> wrote:

=EF=BB=BFHi Olivier
The problem I have it=E2=80=99s that one end is an iscilon stora= ge, not much I can do there.
We are running several rsyncs in parallel, getting some better throu= ghput, but
nowhere ne= ar the 10GB/, actually just barely touching 1GB/s

Thanks,
Dann= y

On 19 Jun 2025, at 14:55, Olivier Cocha= rd-Labb=C3=A9 <olivier@freebsd.org> wrote:


On Thu, Jun 1= 9, 2025 at 8:20=E2=80=AFAM Daniel Braniss <danny@cs.huji.ac.il> wrote:=
=
hi,

i am runni= ng 14.2 on a DELL PowerEdge R750 with a mellanox/nvidia 100Gb nic  mlx5= en:

mce0: flags=3D1008843<UP,BROADCAST= ,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
=
options=3D66ef07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGI= NG,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,NV,VLAN_HWTSO,LINKSTATE= ,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS,HWRXTSTMP,MEXTPG,VXLAN_HWCSUM,VXLAN_HWTSO&g= t;
      ether ...
      inet ... netmask 0xfffffc00 b= roadcast =E2=80=A6.
      m= edia: Ethernet 100GBase-KR4 <full-duplex,rxpause,txpause>
=       status: active
=       nd6 options=3D29<PERFORMNUD,IFDISABL= ED,AUTO_LINKLOCAL>

=
I=E2=80=99m doing a= rsync from an iscsilon mounted via this mce0, the best max throughput is ab= out 1GBs which is a bit depressing


Regarding this 1GB/s (8Gb/s) it is how I get on my= side with a very simple netcat transfert.
By simple transfert, I mean using one TCP flow with a s= ingle process netcat:

On the receiver hos= t:
nc -l 12345 > /= dev/null
On the sende= r host:
dd if=3D/dev/= zero bs=3D1G count=3D100 | nc 1.1.1.30 12345
107374182400 bytes transferred in 77.772515 secs (13= 80618626 bytes/sec)
<= /span>
Which is about 1.3GB/= s, so close to your 1GB/s.
=
Let=E2=80=99s d= ig a little more and one the sender, displaying the stats for each NIC queue= s.
How many queues th= e drivers configured on my sender system ?
# sysctl dev.mce.0.conf.channels
dev.mce.0.conf.channels: 40
So 40 queues (match my output of np= roc), great.
But how m= any were used during this test:
# sysctl dev.mce.0 | awk '/txstat.*\.bytes/ && $NF !=3D 0= '
dev.mce.0.txstat26t= c0.bytes: 74
dev.mce.= 0.txstat20tc0.bytes: 120
dev.mce.0.txstat4tc0.bytes: 112564632016
dev.mce.0.txstat0tc0.bytes: 60

=3D> Only one queue (the number 4 in my example) is used.
And it is the same prob= lem on the receiver: One queue/one core

L= et=E2=80=99s improving this by running 8 parallels nc at the same time, but w= e need to use 8 different TCP sessions to let RSS selecting 8 differents que= ues:
On the receiver h= ost:
nc -l 12341 >= /dev/null &
nc -= l 12342 > /dev/null &
nc -l 12343 > /dev/null &
nc -l 12344 > /dev/null &
<= blockquote type=3D"cite">nc -l 12345 > /dev/null &
nc -l 12346 > /dev/null &<= /span>
nc -l 12347 > /dev= /null &
nc -l 123= 48 > /dev/null

On the sender host:
dd if=3D/dev/zero bs=3D1= G count=3D100 | nc 1.1.1.30 12341 &
dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12342= &
dd if=3D/dev/z= ero bs=3D1G count=3D100 | nc 1.1.1.30 12343 &
dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.= 1.30 12344 &
dd i= f=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12345 &
dd if=3D/dev/zero bs=3D1G count=3D100= | nc 1.1.1.30 12346 &
= dd if=3D/dev/zero bs=3D1G count=3D100 | nc 1.1.1.30 12347 &=
dd if=3D/dev/zero bs=3D1G c= ount=3D100 | nc 1.1.1.30 12348

Then we ne= ed to add the output from all those dd:
107374182400 bytes transferred in 103.937552 secs (103306= 4374 bytes/sec)
10737= 4182400 bytes transferred in 104.474689 secs (1027753071 bytes/sec)
107374182400 bytes transferre= d in 104.939627 secs (1023199578 bytes/sec)
107374182400 bytes transferred in 105.002306 secs (10= 22588806 bytes/sec)
1= 07374182400 bytes transferred in 105.674894 secs (1016080345 bytes/sec)
107374182400 bytes transf= erred in 105.687319 secs (1015960885 bytes/sec)
107374182400 bytes transferred in 106.480994 secs= (1008388239 bytes/sec)
107374182400 bytes transferred in 106.837954 secs (1005019084 bytes/sec)<= /span>

To have a total of 8152054382 bytes/sec (= 8.15 GBytes/s or 65Gb/s).
<= span>You can check the stats per queue, and you will notice that 8 of them s= hould have been used.
So you need to use a multi-threaded/parallel rsync equivalent (on both side= s) to fill your link.


but tcpdump -= i mce0 says:
<= blockquote type=3D"cite">store-09# tcpdump -i mce0 host <same net a= s mce0>
tcpdump: verbose output suppressed, use -v[v]..= . for full protocol decode
listening on mce0, link-type EN= 10MB (Ethernet), snapshot length 262144 bytes
  = ;            &nb= sp;            &= nbsp;            = ;   **********


Don=E2=80=99t worry about the libpcap definition, from c= ontrib/libpcap/pcap/dlt.h :
#define DLT_NULL        0  &n= bsp;    /* BSD loopback encapsulation */
#define DLT_EN10MB    = ;  1       /* Ethernet (10Mb) */
#define DLT_EN3MB  =      2       /* Exper= imental Ethernet (3Mb) */
<= span>#define DLT_AX25        3  &nbs= p;    /* Amateur Radio AX.25 */
<= blockquote type=3D"cite">#define DLT_PRONET     &n= bsp;4       /* Proteon ProNET Token Ring */
#define DLT_CHAOS  = ;     5       /* Chao= s */
#define DLT_IEEE= 802     6       /* 802.5 T= oken Ring */
#define D= LT_ARCNET      7      &nbs= p;/* ARCNET, with BSD-style header */
#define DLT_SLIP        = 8       /* Serial Line IP */
#define DLT_PPP    &nbs= p;    9       /* Point-to-= point Protocol */
#de= fine DLT_FDDI        10    = ;  /* FDDI */

So the EN10MB is s= imply the term used for "Ethernet".

Regards= ,
Olivier
<= /blockquote>


Danny
 Ive r= un into this exact issue , older isilons and 10Gb nics. Like Olivier mention= ed parallel streams is the way to go.  In My case i would mount the isi= lon data 10 times on my clients . it was something like /data/0 /data/1... .= The for rsync i knew what was going to be moved / worked on etc. So i would= split the files into 10 sets and run 10 rsyncs one for each substof data . i= e set 0 would go from /data/0 to /target/0  and so on.  That worke= d well then we also has a custom program that fed jobs into a queue when a n= ew task was picked from the queue , this was some big data thing don't remem= ber exactly, the dir to work on was selected at random from 0-9 . Again that= worked well , but we ultimately moved to leofs then to minio both s3 work-a= -likes to gain the parallel bits in the http transport .  Part of the n= fs / cifs issues are the nature of the single socket used for the mounts.
There is the "nconnect" mount option. It might he= lp here.

Rick
&= nbsp;  i just read the option , that would have helped back when i star= ted this mess .  for example here is the review.