bin/165471: bsdgrep(1) hang/very slow with mmap
Patrick Dung
patrick_dkt at yahoo.com.hk
Sun Sep 15 08:00:45 UTC 2013
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 at server2 /usr/local/share]# time grep --mmap -r -e '^Feb' *
real 0m14.200s
user 0m0.007s
sys 0m0.932s
[root at server2 /usr/local/share]# time bsdgrep --mmap -r -e '^Feb' *
Killed: 9
real 1m0.474s
user 0m11.218s
sys 0m22.911s
swap_pager_getswapspace(16): failed
swap_pager_getswapspace(16): failed
swap_pager_getswapspace(16): failed
pid 3539 (bsdgrep), uid 0, was killed: out of swap space
More information about the freebsd-bugs
mailing list