From nobody Sat Feb 3 10:16:56 2024 X-Original-To: current@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 4TRpTx1Rcqz595S7 for ; Sat, 3 Feb 2024 10:17:09 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TRpTx0ry5z4bqZ; Sat, 3 Feb 2024 10:17:09 +0000 (UTC) (envelope-from theraven@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706955429; 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=JRzLUkvPGp6X4k0WsUwNgkK/oe8u+9mlHT1zrcBQZlI=; b=HCEW7CTxTIUx6/TCHDPH9hHfIjQDQYUpbt7klq5g564a0klL5zdVAgXM11kUaqleAmTLQo fxZvRuzloAk5sN09+o+uEJ6GxsF73J1nUfbw3FM8TuUXNXr6kC9pGS9xMnBffSNNQZo6aT 2QtUKsfwHnm2+Xlqtp/8jZk+VRMhN6hWOcRAzZOwsr70AcOeduk1hdSQHGoQtA00Lqdvjr m6XWfSNF4R3SCZWDAhrnVDHvveTrTexm+XymUyPhwP4WjShS1eZF6x+oDyslfIoMbDHet/ wUNVeA92VE4W+tBiWsATWWVxexPwmjzPgpT4/eOevqdHPrvb9Xs3P1GWMg5kvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706955429; 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=JRzLUkvPGp6X4k0WsUwNgkK/oe8u+9mlHT1zrcBQZlI=; b=g5ODZNRah5BWgBmsnOXqo4cuRGUsQNmYLlkAAIyF8aeGGcsqoX1QdNHGJ/qIIGIiXWucCw 1d3vfbHm+W7XpJZazTvm5H2cXmOZKbMb1EFGfioYVFMnmZ1MCh89ruPzdOU/Hr2PfRn9IX KQzuDd5IV4efj2H1Eg3WxO8DtVL4OWguUiEG8Tz+pVlqTncuVUCx3+/+D2ynKz8PWfxqxu 3hanpZ+Xr7YPtBqwxTkOX5kuvazDzQBZTkcTwMLVcEScO3xbKalEBi3ZF/H+ZxztcfQAFA Xzo/idEu2QKOO+ALSIH90gtGr/491GZb62oJ6f0/BVcbWGyuUvJoK1Mkhuhy7A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706955429; a=rsa-sha256; cv=none; b=cyBfUXqfPZDkeUZqr/7aHyl2wB6dB/mTdg0bwb/xVd/bC3QfH6dHIoII1x7gNq7CCbHwYo csToiwlY07Ki4OwGpAFN63UAgp3msKfdUpbbeFIY9WryqwaHZERAVXbGbQp0MTJF8tmvhI 6huQ0Ts+dYavJJM8RFewiWk1Pq0MQT43DzHiTCy9gnOmMFWtRQpQoStXci9dB/2EwKIYqq m3r8aYsF9U4y0UNJ5Z+WmTwGgYeStbh7uIe92Mhhxdot2eSLurVwhmSSruFMbd1+3Q9fIc IM7vYNxrE+D73MIsSRG/8xxQNc8EpYSmo5shdH8uR4CzhiU+CgOC7+3EFSjrGA== 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 4TRpTw6wr7z1Gml; Sat, 3 Feb 2024 10:17:08 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from smtpclient.apple (host86-131-178-116.range86-131.btcentralplus.com [86.131.178.116]) by smtp.theravensnest.org (Postfix) with ESMTPSA id DAA061062C; Sat, 3 Feb 2024 10:17:07 +0000 (GMT) Content-Type: text/plain; charset=utf-8 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Subject: Re: libc/libsys split coming soon From: David Chisnall In-Reply-To: Date: Sat, 3 Feb 2024 10:16:56 +0000 Cc: Brooks Davis , current@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <7E8133B7-4BD5-42AB-8B16-A10F59295F28@FreeBSD.org> References: To: Mateusz Guzik X-Mailer: Apple Mail (2.3774.200.91.1.1) On 3 Feb 2024, at 09:15, Mateusz Guzik wrote: >=20 > Binary startup is very slow, for example execve of a hello world > binary in a Linux-based chroot on FreeBSD is faster by a factor of 2 > compared to a native one. As such perf-wise this looks like a step in > the wrong direction. Have you profiled this? Is the Linux version using BIND_NOW (which = comes with a load of problems, but it often the default for Linux = systems and reduces the number of slow-path entries into rtld)? Do they = trigger the same number of CoW faults? Is there a path in rtld that=E2=80= =99s slower than the equivalent ld-linux.so path? David=