Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jun 2022 07:44:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 254763] grep very slow with 13.0-RC4
Message-ID:  <bug-254763-227-bECDl74Qzj@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-254763-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-254763-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254763

--- Comment #21 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254763-227-bECDl74Qzj>