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

From: Peter Zijlstra
Date: Mon Aug 25 2008 - 07:41:35 EST


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.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/