Messages in this thread | | | Subject | Re: Quad core CPUs loaded at only 50% when running a CPU and mmap intensive multi-threaded task | From | Peter Zijlstra <> | Date | Mon, 25 Aug 2008 13:41:17 +0200 |
| |
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.
| |