lkml.org 
[lkml]   [1996]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: strange disk activity [tail -f]
Date
>yep, "tail -f" reads (polls) the file every second, this in turn changes 
>the atime field, and bdflush updates the inode and the superblock.

There's a voice in my head saying "that should happen on open(2), not
read(2)". Am I just hallucinating? More to the point, why do we get
this repeated (and annoying) disk activity under 1.3.~80 but not
1.2.x? Can the new bdflush be tuned to wait longer before flushing,
and if so, how?

>might be a stupid question, but is there no way doing event based reads
>on files [selects and/or blocking reads at the end of the file] ?

Not under Unix.

-zefram


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.142 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site