From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 15 08:00:45 2013 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7480472A for ; Sun, 15 Sep 2013 08:00:45 +0000 (UTC) (envelope-from patrick_dkt@yahoo.com.hk) Received: from nm25-vm8.bullet.mail.sg3.yahoo.com (nm25-vm8.bullet.mail.sg3.yahoo.com [106.10.151.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9B48B2465 for ; Sun, 15 Sep 2013 08:00:44 +0000 (UTC) Received: from [106.10.166.121] by nm25.bullet.mail.sg3.yahoo.com with NNFMP; 15 Sep 2013 07:58:49 -0000 Received: from [106.10.151.187] by tm10.bullet.mail.sg3.yahoo.com with NNFMP; 15 Sep 2013 07:58:49 -0000 Received: from [127.0.0.1] by omp1013.mail.sg3.yahoo.com with NNFMP; 15 Sep 2013 07:58:49 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 387013.31852.bm@omp1013.mail.sg3.yahoo.com Received: (qmail 48608 invoked by uid 60001); 15 Sep 2013 07:58:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.hk; s=s1024; t=1379231929; bh=lDKxvN1Tz87tSZZOQSPmzTjF6VC8BgM2fgrp9IGn0kw=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=EFnv0vfGTN28gvMQAn2roFKhNWFlyvBQdu7eRDnYGnEDLQrAxgkMsuhNbDg056B6yw2iuVkAHw37elrXTbctVGJ9nxl5vCbQ4oheu/ea+U3ezr4JUZGVe82n93XkKsbthlJ7qI+x1rn0U6Z8+7UqtiDg/x9MxS4ikQqH2IgmQFI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.hk; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=WwUNRzO56MDuPY9wbKXCiWIvxmVk+jJaPdf3YKGIKp5WLbyaiqk3w5mCoAyAdwVbMG/LOLyUoLuVkEXmnZxlP2jeE1mcxuaiT7adSnAO+QMx8mVKjgzWZoG2u/eSGGcmONMM0YbZ1OojDaFIVWvtGt9kZ2YgmOc0JPmWK4oB31w=; X-YMail-OSG: nmdpXvwVM1mm.q_Jbj.tvjaVLq4od.Dy38INzf_XSdw8AVa xqtwjM9Pu8_9qi5SGJyBadwz1dKu36eooOkoQN6cZdqEzNugEudOOIi1_rul ZtivVUqjsV1m3wcyG7CXPwbp3EZb_x9sRm_ApS3_L_CzkSgpnYZzifVqqKec X1ryvnesUKkd8QAu3zk4seevLpOkmsJiwBje900MQXQpctzrWl4aFO4tkMkb iEP1EsJzLPd43GEDTDeXxzFM.NarXrXWQ6rJRthXDOqWYwq_LXDOo25KuIxs pqXuEjlbwT_lpXVWV3NG2mHQmRQK2DwnWsvhglr_oxGDHP57fJi2MvumBk48 7AXqloL29w9wWqfqcakx.ZFetfyLaMc4GV7bHFSgIFLuO2yES6c7kfqEGR05 JwiIw9mHvGTTiTWoXGAo_lmWN8DGEnyuS586c9g87IdBJnM5t5EgiCv2G0MS q3fdXy6Ap9WE7PLRM3GF2zNkb.pBuw84H9AOfT8Ab26GSPJXqGK_i7FeOwd6 pU7dyjrrHJXtrqxZDz0BFNG0uIgkl1g47cB7AEFlH8.Jx4A3CsMIXjzY- Received: from [61.15.240.116] by web193505.mail.sg3.yahoo.com via HTTP; Sun, 15 Sep 2013 15:58:48 SGT X-Rocket-MIMEInfo: 002.001, QWZ0ZXIgb25lIGFuZCBhIGhhbGYgeWVhciwgSSBoYXZlIHRyaWVkIHRoZSBzYW1lIGNhc2Ugb24gRnJlZUJTRCA5LjIgUkM0IHg2NC4KVGhlIHJlc3VsdCBpcyBhcyBiZWxvdy4gVGhlIG1tYXAgd2l0aCBic2RncmVwIG9wdGlvbiBpcyBlYXRpbmcgbWVtb3J5L3N3YXAgYW5kIGl0IGlzIGtpbGxlZCBkdWUgdG8gb3V0IG9mIHN3YXAuCgoKW3Jvb3RAc2VydmVyMiAvdXNyL2xvY2FsL3NoYXJlXSMgdGltZSBncmVwIC0tbW1hcCAtciAtZSAnXkZlYicgKgoKcmVhbMKgwqDCoCAwbTE0LjIwMHMKdXNlcsKgwqDCoCABMAEBAQE- X-Mailer: YahooMailWebService/0.8.157.561 Message-ID: <1379231928.48545.YahooMailNeo@web193505.mail.sg3.yahoo.com> Date: Sun, 15 Sep 2013 15:58:48 +0800 (SGT) From: Patrick Dung Subject: Re: bin/165471: bsdgrep(1) hang/very slow with mmap To: "freebsd-bugs@FreeBSD.org" , "bug-followup@FreeBSD.org" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Patrick Dung List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Sep 2013 08:00:45 -0000 After one and a half year, I have tried the same case on FreeBSD 9.2 RC4 x6= 4.=0AThe result is as below. The mmap with bsdgrep option is eating memory/= swap and it is killed due to out of swap.=0A=0A=0A[root@server2 /usr/local/= share]# time grep --mmap -r -e '^Feb' *=0A=0Areal=A0=A0=A0 0m14.200s=0Auser= =A0=A0=A0 0m0.007s=0Asys=A0=A0=A0=A0 0m0.932s=0A[root@server2 /usr/local/sh= are]# time bsdgrep --mmap -r -e '^Feb' *=0AKilled: 9=0A=0Areal=A0=A0=A0 1m0= .474s=0Auser=A0=A0=A0 0m11.218s=0Asys=A0=A0=A0=A0 0m22.911s=0A=0Aswap_pager= _getswapspace(16): failed=0Aswap_pager_getswapspace(16): failed=0Aswap_page= r_getswapspace(16): failed=0Apid 3539 (bsdgrep), uid 0, was killed: out of = swap space=0A From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 15 08:10:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 987D680E for ; Sun, 15 Sep 2013 08:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 68A9124BF for ; Sun, 15 Sep 2013 08:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8F8A1Yf034764 for ; Sun, 15 Sep 2013 08:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8F8A1ij034763; Sun, 15 Sep 2013 08:10:01 GMT (envelope-from gnats) Date: Sun, 15 Sep 2013 08:10:01 GMT Message-Id: <201309150810.r8F8A1ij034763@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Patrick Dung Subject: Re: bin/165471: bsdgrep(1) hang/very slow with mmap X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Patrick Dung List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Sep 2013 08:10:01 -0000 The following reply was made to PR bin/165471; it has been noted by GNATS. From: Patrick Dung To: "freebsd-bugs@FreeBSD.org" , "bug-followup@FreeBSD.org" Cc: Subject: Re: bin/165471: bsdgrep(1) hang/very slow with mmap Date: Sun, 15 Sep 2013 15:58:48 +0800 (SGT) ---1392289268-1041998601-1379231928=:48545 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable After one and a half year, I have tried the same case on FreeBSD 9.2 RC4 x6= 4.=0AThe result is as below. The mmap with bsdgrep option is eating memory/= swap and it is killed due to out of swap.=0A=0A=0A[root@server2 /usr/local/= share]# time grep --mmap -r -e '^Feb' *=0A=0Areal=A0=A0=A0 0m14.200s=0Auser= =A0=A0=A0 0m0.007s=0Asys=A0=A0=A0=A0 0m0.932s=0A[root@server2 /usr/local/sh= are]# time bsdgrep --mmap -r -e '^Feb' *=0AKilled: 9=0A=0Areal=A0=A0=A0 1m0= .474s=0Auser=A0=A0=A0 0m11.218s=0Asys=A0=A0=A0=A0 0m22.911s=0A=0Aswap_pager= _getswapspace(16): failed=0Aswap_pager_getswapspace(16): failed=0Aswap_page= r_getswapspace(16): failed=0Apid 3539 (bsdgrep), uid 0, was killed: out of = swap space=0A ---1392289268-1041998601-1379231928=:48545 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
After one and a = half year, I have tried the same case on FreeBSD 9.2 RC4 x64.
The= result is as below. The mmap with bsdgrep option is eating memory/swap and= it is killed due to out of swap.

[root@server= 2 /usr/local/share]# time grep --mmap -r -e '^Feb' *

real  = ;  0m14.200s
user    0m0.007s
sys     0m0.932s
[root@server2 /usr/loc= al/share]# time bsdgrep --mmap -r -e '^Feb' *
Killed: 9

real = ;   1m0.474s
user    0m11.218s
sys &nbs= p;   0m22.911s

swap_pager_getswapspace(16): failed
swap= _pager_getswapspace(16): failed
swap_pager_getswapspace(16): failed
p= id 3539 (bsdgrep), uid 0, was killed: out of swap space
---1392289268-1041998601-1379231928=:48545--