[lkml]   [1996]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: strange disk activity [tail -f]
    On Mon, 1 Apr 1996, Zefram wrote:

    > >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

    But couldn't you kludge it by

    (use a script of course but pseudo C is easy to read :)

    while(mod_date(/tmp/tempfile) < mod_date(/file/in/question))

    Or was the goal more frequent updates?

    To A Quick Young Fox:
    Why jog exquisite bulk, fond crazy vamp,
    Daft buxom jonquil, zephyr's gawky vice?
    Guy fed by work, quiz Jove's xanthic lamp --
    Zow! Qualms by deja vu gyp fox-kin thrice.
    -- Lazy Dog

     \ /
      Last update: 2005-03-22 13:36    [W:0.018 / U:0.088 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site