lkml.org 
[lkml]   [2008]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Quad core CPUs loaded at only 50% when running a CPU and mmap intensive multi-threaded task
From
Date
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.



\
 
 \ /
  Last update: 2008-08-25 13:43    [W:0.079 / U:25.264 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site