You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As reported in FreeBSD bugzilla, after FreeBSD switched from ELF Tool Chain's binary utilities to using LLVM's by default:
It seems the LLVM’s version isn’t able to mmap while
used in a pipe, so it copy ALL the file into memory.
Example:
$ dd if=/dev/urandom of=/tmp/test.file bs=1M count=1024
$ cat /tmp/test.file | strings > /dev/null &
Now with elftoolchain’s strings:
$ ps -o pid,command,vsz,rss | grep strings
53243 strings 12992 2556
And with LLVM’strings:
$ ps -o pid,command,vsz,rss | grep strings
41791 strings 5027836 3413864
And with our use-case, we are using strings on GB files
(like core dump), and it is now consumming all our memory.
The text was updated successfully, but these errors were encountered:
As [reported in FreeBSD bugzilla](https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286605), after FreeBSD switched from ELF Tool Chain's binary utilities to using LLVM's by default:
It seems the LLVM’s version isn’t able to mmap while
used in a pipe, so it copy ALL the file into memory.
Example:
$ dd if=/dev/urandom of=/tmp/test.file bs=1M count=1024
$ cat /tmp/test.file | strings > /dev/null &
Now with elftoolchain’s strings:
$ ps -o pid,command,vsz,rss | grep strings
53243 strings 12992 2556
And with LLVM’strings:
$ ps -o pid,command,vsz,rss | grep strings
41791 strings 5027836 3413864
And with our use-case, we are using strings on GB files
(like core dump), and it is now consumming all our memory.
As reported in FreeBSD bugzilla, after FreeBSD switched from ELF Tool Chain's binary utilities to using LLVM's by default:
The text was updated successfully, but these errors were encountered: