Date: Sun, 15 Sep 2013 15:58:48 +0800 (SGT) From: Patrick Dung <patrick_dkt@yahoo.com.hk> To: "freebsd-bugs@FreeBSD.org" <freebsd-bugs@FreeBSD.org>, "bug-followup@FreeBSD.org" <bug-followup@FreeBSD.org> Subject: Re: bin/165471: bsdgrep(1) hang/very slow with mmap Message-ID: <1379231928.48545.YahooMailNeo@web193505.mail.sg3.yahoo.com>
next in thread | raw e-mail | index | archive | help
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: <owner-freebsd-bugs@FreeBSD.ORG> 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 <freebsd-bugs@smarthost.ysv.freebsd.org>; 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 <freebsd-bugs@smarthost.ysv.freebsd.org>; 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 <freebsd-bugs@freefall.freebsd.org>; 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 <patrick_dkt@yahoo.com.hk> 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 <patrick_dkt@yahoo.com.hk> List-Id: Bug reports <freebsd-bugs.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-bugs>, <mailto:freebsd-bugs-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-bugs> List-Post: <mailto:freebsd-bugs@freebsd.org> List-Help: <mailto:freebsd-bugs-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-bugs>, <mailto:freebsd-bugs-request@freebsd.org?subject=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 <patrick_dkt@yahoo.com.hk> To: "freebsd-bugs@FreeBSD.org" <freebsd-bugs@FreeBSD.org>, "bug-followup@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 <html><body><div style=3D"color:#000; background-color:#fff; font-family:ti= mes new roman, new york, times, serif;font-size:12pt"><div>After one and a = half year, I have tried the same case on FreeBSD 9.2 RC4 x64.</div><div sty= le=3D"color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,ne= w york,times,serif; background-color: transparent; font-style: normal;">The= result is as below. The mmap with bsdgrep option is eating memory/swap and= it is killed due to out of swap.<br></div><div style=3D"color: rgb(0, 0, 0= ); font-size: 16px; font-family: times new roman,new york,times,serif; back= ground-color: transparent; font-style: normal;"><br></div><div style=3D"col= or: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,ti= mes,serif; background-color: transparent; font-style: normal;">[root@server= 2 /usr/local/share]# time grep --mmap -r -e '^Feb' *<br><br>real  = ; 0m14.200s<br>user 0m0.007s<br>sys 0m0.932s<br>[root@server2 /usr/loc= al/share]# time bsdgrep --mmap -r -e '^Feb' *<br>Killed: 9<br><br>real = ; 1m0.474s<br>user 0m11.218s<br>sys &nbs= p; 0m22.911s<br><br>swap_pager_getswapspace(16): failed<br>swap= _pager_getswapspace(16): failed<br>swap_pager_getswapspace(16): failed<br>p= id 3539 (bsdgrep), uid 0, was killed: out of swap space<br></div></div></bo= dy></html> ---1392289268-1041998601-1379231928=:48545--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1379231928.48545.YahooMailNeo>