From nobody Mon May 5 15:22:06 2025 X-Original-To: bugs@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 4Zrlct3G3Qz5vfBJ for ; Mon, 05 May 2025 15:22:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Zrlct2hKqz3t7f for ; Mon, 05 May 2025 15:22:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746458526; 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; bh=WVppCG1jHCmJ5IjvQSi+ggLXlBDHR0fzJzobPKS4lNI=; b=RDPdCQVcueA/tssdy6HxxTRbpG4nAu/RSSSH9WOlvUPoKyleMVinCNH0EO9Ji5oZrpo2gz lNUUOVReQNbLCG+oR9Rsm0Rnh+21egA5HzwdaFXQ8GWhRbVio9GipL12fcsa3XVTPegz2Z c9JyTk2C7hD94OBxyKO8lRvoTNleYGd4i2DFgCERvCmiRW1Wd8oVyiItvBApL8uIujOETA ckrafLOVFaCMQPKmilokaAg0Z5bdDcN1X8ggDaEGlXXnZCVdhdOpnd7i9iBONYyhyvG1rB zIj7MBhtuuHmj4GnE4KrXRxeSprBS+AIZ9SfSbI812RvotohG7Z/fxnF248WRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746458526; 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; bh=WVppCG1jHCmJ5IjvQSi+ggLXlBDHR0fzJzobPKS4lNI=; b=rfenfpeIS1UypZDo86RPEoFp/0NiTPVtRXAf0pI0LHUhkb11pR4+FqyNjzBHNOfjJrhgoR uqCveNXsBHMV0WcLIFQv31MYFq9P+zUKsBdqQEC8C8b4kf3TCjgNQDW/yqNwhDRdRNNPEL V8Ms1PXGldu1YIcEEpBQO8tV4QLG0/0gk7VCbBIaQQLtNjZ2k6Swc8gDUOK6O8UY5JX1qe 7O47IOHDrVTZHpF3NslQaxFC93S8oBeVbC5bfWS9tkZFnmHqOR+cOaRTd8Jh/6gzOoOkL8 MNNKF0xHQbiuSWDHepxZAFkBE8GfYVU9ImXESm2i+dd97wPZbwrgLC9c1TizBQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1746458526; a=rsa-sha256; cv=none; b=s29ndmnVBw6FIzOkSKkl2EGnc3BDIJEHhr4E6CfjDDfXyVdNX/3KHb1xrj+HYcMzK1kxhu ccT0zolkZIIeFC8DPXiUdmXfps9zbsf4aSELJumo6hCrtUentHYD552fAdbwHh0EeWdaBn JZVwBJWgyxl0i4RnX87lVsKNIWlvVx5Qu1PioLqg98EnUKHV+hdyBSFTR6T4ZpXCZp6rSN xapz9Gw7Tl1bxTolmYjxhBsTYq2MFgWEDwa5RNCjzGMp0mmvZaKOU6eDakRWExaOhNATXV 5gy8tfbCQZyVc3btQn/FSrKDbkdAqkC0Z2PNRu5j4uCGaAYT7Q5SphTVur6rXQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Zrlct29pPz4Ym for ; Mon, 05 May 2025 15:22:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 545FM6l6042923 for ; Mon, 5 May 2025 15:22:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 545FM6es042922 for bugs@FreeBSD.org; Mon, 5 May 2025 15:22:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: =?UTF-8?B?W0J1ZyAyODY2MDVdIFJlZ3Jlc3Npb24gc2luY2UgdXNpbmcgTExW?= =?UTF-8?B?TeKAmXMgc3RyaW5ncw==?= Date: Mon, 05 May 2025 15:22:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: olivier@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D286605 Bug ID: 286605 Summary: Regression since using LLVM=E2=80=99s strings Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: olivier@freebsd.org We have a memory usage regression since the migration from elftoolchain=E2= =80=99s strings to the LLVM=E2=80=99s version: It seems the LLVM=E2=80=99s version isn=E2=80=99t able to mmap while used i= n a pipe, so it copy ALL the file into memory. Example: $ dd if=3D/dev/urandom of=3D/tmp/test.file bs=3D1M count=3D1024 $ cat /tmp/test.file | strings > /dev/null & Now with elftoolchain=E2=80=99s strings: $ ps -o pid,command,vsz,rss | grep strings 53243 strings 12992 2556 And with LLVM=E2=80=99strings: $ ps -o pid,command,vsz,rss | grep strings 41791 strings 5027836 3413864 And with our use-case, we are using strings on GB files (like core dump), a= nd it is now consumming all our memory. Peraps commit "81fa5c4a828bec9f1ead280c59c31bd423e6eeea" (llvm-strings: Ins= tall as strings when WITH_LLVM_BINUTILS=3DYES) should be reverted until fixed. --=20 You are receiving this mail because: You are the assignee for the bug.=