Bug 254763 - grep very slow with 13.0-RC4
Summary: grep very slow with 13.0-RC4
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 13.0-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-04 14:08 UTC by Christos Chatzaras
Modified: 2021-04-04 14:10 UTC (History)
1 user (show)

See Also:


Attachments
access_log.txt and exclude_ips.txt files (700.60 KB, application/zip)
2021-04-04 14:08 UTC, Christos Chatzaras
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christos Chatzaras 2021-04-04 14:08:31 UTC
Created attachment 223801 [details]
access_log.txt and exclude_ips.txt files

With 13.0-RC4 I notice that I get very slow speed using grep with the follow parameters. With 12.2-RELEASE-p4 it is fast. Files used for the test are included in the attachment.

-------------

FreeBSD 13.0-RC4:

/usr/bin/time -l cat access_log.txt | grep -F -v -f exclude_ips.txt > output.log
      358.92 real         0.00 user         0.00 sys
      2200  maximum resident set size
         8  average shared memory size
         4  average unshared data size
       128  average unshared stack size
       148  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

-------------

FreeBSD 12.2-RELEASE-p4:

/usr/bin/time -l cat access_log.txt | grep -F -v -f exclude_ips.txt > output.log
        0.18 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
       137  page reclaims
         0  page faults
         0  swaps
         0  block input operations
         0  block output operations
         0  messages sent
         0  messages received
         0  signals received
        70  voluntary context switches
         0  involuntary context switches