lkml.org 
[lkml]   [2008]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: stat benchmark

> I guess it would be difficult to get close to the optimal disk schedule by
> using syslets; if a directory contains 1000 files that would require 1000
> syslets and a good I/O scheduler - that's unlikely to be feasible.

It wouldn't even get to the I/O scheduler. The VFS stat path (see
real_lookup()) is synchronous and serialized. Each stat will hold the
i_mutex of the parent directory while it waits for the file system's
lookup method to populate the inode from disk.

- z


\
 
 \ /
  Last update: 2008-04-28 19:49    [W:0.152 / U:1.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site