>Number: 165471 >Category: bin >Synopsis: /usr/bin/bsdgrep hang/very slow with mmap >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Feb 25 14:40:14 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Patrick Dung >Release: Freebsd 9.0 >Organization: none >Environment: r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: bsdgrep with --mmap would sometimes cause hang/slow response. Also it is eating memory when it is very slow/hang.
cd /usr/local/share and compare grep and bsdgrep: [root@fbsd9-test /usr/local/share]# time grep --mmap -r -e '^Feb' * deplate/locale/de.latin1:February deplate/locale/de.latin1:Februar real 0m1.875s user 0m0.085s sys 0m1.327s [root@fbsd9-test /usr/local/share]# time bsdgrep --mmap -r -e '^Feb' * ^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C real 1m40.931s user 0m0.427s sys 1m22.064s >How-To-Repeat: only encounter problem with some files >Fix: use GNU grep >Release-Note: >Audit-Trail: >Unformatted: _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"