From nobody Mon Jun 27 07:44:02 2022 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 E358B86DDC9 for ; Mon, 27 Jun 2022 07:44:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LWfql5Rl3z4YK9 for ; Mon, 27 Jun 2022 07:44:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 9BB55245BB for ; Mon, 27 Jun 2022 07:44:03 +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 25R7i3hM072211 for ; Mon, 27 Jun 2022 07:44:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25R7i3jt072210 for bugs@FreeBSD.org; Mon, 27 Jun 2022 07:44:03 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 254763] grep very slow with 13.0-RC4 Date: Mon, 27 Jun 2022 07:44:02 +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: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656315843; 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=4clPhT0ZTAhpCtE8XsbxHT8K7fVsTVxCMv1zHC8HMP8=; b=RWaUU0p9dzzzdPrQ3zTeCWq13S2ThQ0+41xLNZVujO25XqOwaMzB+3Df0RJwJn9PyidZU/ Tya8+eJrnGTHh6lTMrl4sP1cOY0rBNQ88k3ggNeRDsgH3sjrHBiqP8xomNY0BKF3Icn0za WEfXJnDccztKerQIVwrvPpvDP0BCAo5UUIvLotUDQVNThQkFx5zJ4qZqLaDvfi8L3sGwKW 0FegKYlNGKKXONElfYc9RTPzeORCFFjLE4UN+3Y8cxFe7eIMf3Pwn8FF2SBlj/r2unLe4e F9A6oroWPGML88tDASBXMlC//b/UEbkaplnE4yYjfPx0XZ9q5ky8RqDQ0ibB1g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656315843; a=rsa-sha256; cv=none; b=XaFU8eyHAy1Xv+et7ERPA0j0q4/fwm/HtMYrFGMwO25RZL21onzCKB40PVzxk+smSX4PcQ yaI9xhX9+BexeBgrlh9HLfRChF4NGdqJHHWxnRUySotjY06GyWNDpU6ul9ev9jYFVqLtXz LrQyQPZmo3dnt04zOqswLldHgWBr6KahgYhrQvPlnADGLfP/QANacujiRLuevu0Fud/KHJ ZqDgPBwZBue9iKVnPoU65EtqNqWjgiWGGsv2kmFmNPTVdESTSFoYMw/HqsbSW4FhdbinPx pvZTSQHUsorzHXHiMpqBHMVo6MHAunG5RcxUOmz0VcniYQBYXWjmTKxXFsxiPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254763 --- Comment #21 from Mark Millard --- (In reply to Mark Millard from comment #20) I time both the left hand side and right hand side processes here: # /usr/bin/time -l cat access_log.txt | time -l cat > output.log 0.65 real 0.00 user 0.00 sys 0 maximum resident set size 0 average shared memory size 0 average unshared data size 0 average unshared stack size 154 page reclaims 0 page faults 0 swaps 0 block input operations 0 block output operations 1104 messages sent 0 messages received 0 signals received 233 voluntary context switches 1 involuntary context switches 0.65 real 0.00 user 0.00 sys 2440 maximum resident set size 8 average shared memory size 8 average unshared data size 128 average unshared stack size 146 page reclaims 0 page faults 0 swaps 0 block input operations 549 block output operations 0 messages sent 549 messages received 0 signals received 357 voluntary context switches 0 involuntary context switches # /usr/bin/time -l cat access_log.txt | time -l grep -F -v -f exclude_ips.t= xt > output2.log 422.70 real 0.00 user 0.00 sys 2360 maximum resident set size 8 average shared memory size 8 average unshared data size 128 average unshared stack size 155 page reclaims 0 page faults 0 swaps 0 block input operations 0 block output operations 1104 messages sent 0 messages received 0 signals received 138 voluntary context switches 0 involuntary context switches 431.63 real 431.57 user 0.04 sys 168164 maximum resident set size 20 average shared memory size 8 average unshared data size 128 average unshared stack size 41463 page reclaims 0 page faults 0 swaps 0 block input operations 32 block output operations 0 messages sent 138 messages received 0 signals received 168 voluntary context switches 4969 involuntary context switches So the "grep -F -v -f exclude_ips.txt" is compute bound (user), not I/O bou= nd. The "cat" right hand side, by contrast, was not compute bound (user) --and = was not made to be time consuming overall. --=20 You are receiving this mail because: You are the assignee for the bug.=