• Jeff Layton's avatar
    nfsd: dynamically allocate DRC entries · 0338dd15
    Jeff Layton authored
    The existing code keeps a fixed-size cache of 1024 entries. This is much
    too small for a busy server, and wastes memory on an idle one.  This
    patch changes the code to dynamically allocate and free these cache
    entries.
    
    A cap on the number of entries is retained, but it's much larger than
    the existing value and now scales with the amount of low memory in the
    machine.
    Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    0338dd15
nfscache.c 9.77 KB