Re: Quad core CPUs loaded at only 50% when running a CPU and mmap intensive multi-threaded task

Peter Zijlstra
2008-08-25T11:41:35Z

On Mon, 2008-08-25 at 14:00 +0300, edwin wrote:
> Peter Zijlstra wrote:

> > Right - does it make sense to teach clamav about pread() ?
>
> If it is preferred over mmap, then maybe yes.

I would certainly consider this for small (< 1M?) files. With mmap the
faults and pte overhead aren't free either, and the extra memcpy from
pread() isn't that much.