Date: Sat, 25 Feb 2012 14:33:17 GMT From: Patrick Dung <patrick_dkt@yahoo.com.hk> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/165471: /usr/bin/bsdgrep hang/very slow with mmap Message-ID: <201202251433.q1PEXHw4050327@red.freebsd.org> Resent-Message-ID: <201202251440.q1PEeEFK045772@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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: root@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202251433.q1PEXHw4050327>