[Bug 254763] grep very slow with 13.0-RC4
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 27 Jun 2022 07:44:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254763
--- 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.txt >
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 bound.
The "cat" right hand side, by contrast, was not compute bound (user) --and was
not made to be time consuming overall.
--
You are receiving this mail because:
You are the assignee for the bug.