lkml.org 
[lkml]   [2015]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v7 0/5] vfs: Non-blockling buffered fs read (page cache only)
    On Mon, 30 Mar 2015 13:49:37 -0700 Jeremy Allison <jra@samba.org> wrote:

    > > This implies that the samba main thread also has to avoid any memory
    > > allocations both direct and within syscall and pagefault - those will
    > > occasionally exhibit similar worse-case latency. Is this done now?
    >
    > We don't do anything special around allocations in syscall.
    > For aio read we do talloc (internal memory allocator) the
    > return chunk before going into the pthread pread, so I
    > suppose this could block. Haven't seen this as a reported
    > problem though. I suppose you can say "well exactly the
    > same thing is true of fincore()" :-).

    yup. If we tickle the page's referenced bit in fincore() then the race
    will only happen under the most withering memory loads, and it sounds
    like the main thread will be suffering allocation stalls before that
    point anyway.


    \
     
     \ /
      Last update: 2015-03-31 00:01    [W:4.337 / U:0.556 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site