[bug report] OOM caused by mlock() during exiting blktrace

Ming Lei <[email protected]>
Newsgroups org.kernel.vger.linux-btrace
Message-ID <CACVXFVNdtEwvMRNi=QcXVaoMfSYu98j+2CuZg+AL4L2bALdWjQ@mail.gmail.com>
Hello Guys,

It is observed that nr_cpu * mlock(128M) is called when exiting
'blktrace -b 8192 -d $DEV'. And OOM is easily triggered when the
machine has lots of CPU cores.

So can we figure out one way to not lock big buffer for avoiding
OOM?

-- 
Ming Lei
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.