The following reply was made to PR bin/165471; it has been noted by GNATS.

From: Patrick Dung <patrick_...@yahoo.com.hk>
To: "freebsd-bugs@FreeBSD.org" <freebsd-bugs@FreeBSD.org>,
  "bug-follo...@freebsd.org" <bug-follo...@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&nbsp;&nbsp=
 ;&nbsp; 0m14.200s<br>user&nbsp;&nbsp;&nbsp;
  0m0.007s<br>sys&nbsp;&nbsp;&nbsp;&nbsp; 0m0.932s<br>[root@server2 /usr/loc=
 al/share]# time bsdgrep --mmap -r -e '^Feb' *<br>Killed: 9<br><br>real&nbsp=
 ;&nbsp;&nbsp; 1m0.474s<br>user&nbsp;&nbsp;&nbsp; 0m11.218s<br>sys&nbsp;&nbs=
 p;&nbsp;&nbsp; 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--
_______________________________________________
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"

Reply via email to