From nobody Wed Nov 27 16:43:41 2024 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 4Xz4yP5Tdyz5fSdt for ; Wed, 27 Nov 2024 16:43:41 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xz4yP2bnYz4qgl for ; Wed, 27 Nov 2024 16:43:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732725821; 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=TO6TyEeSi2339kC/+OW89uYwRQFujuTOSfh6BUQRTYc=; b=Vnu+zlTSZGFyZwRPYXF2RewDu5QdhwkgICcKbJIBt0ZNhHAnLPhx8Paz+Wx4soJdD/pDkV b+0T0/TZMBrRtnsCfnrE833Ra4NH6tSqps2LZbShdyInjYg/CGhPkKbmpg77+t2/TMrAKS hTpFI8WJZGdWnYx26nM3ZTqxnlm4q/v60+hmo4kLoAt+0W2YcyYCfm+QyNrdsT5ST8ok5X 6KNKeeWnGgjbAJ6ZjPYs4dxk+tUzFfQ4mSB9uss98jH6BhBms/eZaxKXtMSAigGSGW1mWP mYq4fKWxEYiWddZZMt6UF/kjo6pu49TO8Mx+BxFTj/LZHeolBb1Wc6vmXXk5pQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732725821; a=rsa-sha256; cv=none; b=OoEybdjhHW+mFucL20WQm7ldQUVqpmkQvU82MQbv9QxxoQ/nhKL4NqriHx6IPb0gfy+vD9 4+4G1ib4IknKvZYCrDCF8kRIiiOrUGtkR/Lb6dnBCFz9sPUz+kuFV65awyK1UklXuKSEQT F3w99y42rPwZjCixIe+e0ZkE9rUqwP9wYY+9moRIinF1v6y/YczMhI1FjTGS9O5HDJytkV aF0H5yaGRQGIaF7CXUdi1eD+y1Yjf97T/P/OiotLliu59PNWmZ4tdlwxp+ZV3VB5QBAzZB Ngkcpd44EmAkuMxgRuus48ZJkxHK8UIUir20l29STwLhNqxnsNeYUqcmMUY9uQ== 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 4Xz4yP28x4z1HLC for ; Wed, 27 Nov 2024 16:43:41 +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 4ARGhfsT092113 for ; Wed, 27 Nov 2024 16:43:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4ARGhfpl092112 for bugs@FreeBSD.org; Wed, 27 Nov 2024 16:43:41 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: [Bug 282993] awk eats all ram Date: Wed, 27 Nov 2024 16:43:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: riccardo@torrini.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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3D282993 --- Comment #1 from Riccardo Torrini --- (In reply to Riccardo Torrini from comment #0) first of all a fix for a typo: s/jq '{some parsing}'/jq '{some formatting}'= / ;) I created a small script able to reproduce the problem on 14.1 ----- 8< ----- # tail -qF /tmp/example.log | awk -F' {' '{printf( "{%s\n", $2 )}' > /dev/n= ull & # sh -c "touch /tmp/example.log ; while true ; do mv /tmp/example.log /tmp/example.log.old ; cat /var/log/messages > /tmp/example.log ; ps -axwwwo pid,ppid,state,rss,command | grep awk | grep -v grep ; sleep .1 ; done" ----- 8< ----- how to use: look for some minutes to the output (mem keep growing) mv & recreate should be very similar to rotate logs, to force tail -F to re= open new file tested on: - 13.3 : rock stable to 2840 - 14.1 : about 1.5GB after 10' / 32GB of ram and 17GB of swap after 10 hours - 14.2-BETA (on raspberry) : also rock stable at 2628 - HEAD of some days ago : again rock stable Probably I choose a bad time frame for update ;) -- Riccardo. --=20 You are receiving this mail because: You are the assignee for the bug.=