Re: [bug report] OOM caused by mlock() during exiting blktrace
Jeff Moyer <[email protected]>
| Newsgroups | org.kernel.vger.linux-btrace |
|---|---|
| Message-ID | <[email protected]> |
Hi, Ming, Ming Lei <[email protected]> writes: > 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. The only mlock in the code appears to happen at setup time. How did you determine this was occurring in the exit path? > So can we figure out one way to not lock big buffer for avoiding > OOM? The obvious question is why are you using -b 8192? Were you losing events without that option? -Jeff