lkml.org 
[lkml]   [2009]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Performance regression in write() syscall
On Tue, Feb 24, 2009 at 07:52:34AM -0800, Linus Torvalds wrote:
>
>
> On Tue, 24 Feb 2009, Nick Piggin wrote:
> >
> > > it does make some kind of sense to try to avoid the noncached versions for
> > > small writes - because small writes tend to be for temp-files.
> >
> > I don't see the significance of a temp file. If the pagecache is truncated,
> > then the cachelines remain dirty and so you can't avoid an eventual store
> > back to RAM?
>
> No, because many small files end up being used as scratch-pads (think
> shell script sequences etc), and get read back immediately again. Doing
> non-temporal stores might just be bad simply because trying to play games
> with caching may simply do the wrong thing.

I usually recommend to use shmfs for /tmp. Perhaps that should be done
more widely.

BTW I got some upcomming patches to improve c_*_u() and memcpy
on modern Intel x86 CPUs.

-Andi



\
 
 \ /
  Last update: 2009-02-24 17:09    [W:0.110 / U:0.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site