Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8d6422fbbefa3d4f13e39f3b347345b8c71591ce
Ticket: 219148ffffffffffffffffffffffffffffffffff
IO_PERFORMANCE on NT 80 times slower then on unix
User & Date: nobody on 2000-10-26 05:02:19
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 948 Bug
    Version: 8.0.3
    SubmitDate: '1998-12-14'
    LastModified: '2000-06-22'
    Severity: MED
    Status: Assigned
    Submitter: pat
    ChangedBy: hobbs
    OS: Windows NT
    Machine: X86
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name: Uwe Traum
    
    ReproducibleScript:
    
    proc dotest {{filename test.bin}} {
        set fid [open $filename w]
        fconfigure $fid -translation binary
    
        for { set i 0 } { $i < 2000 } { incr i } {
            set ind [expr {128*int(rand()*30000)}]
            #seek $fid $ind start
            puts -nonewline $fid "123456789012345678901234567890"
        }
        close $fid
    }
    time dotest 3
    
    [rewritten by hobbs as proc]
    
    ObservedBehavior:
    Output:
    
    NT4;local disk;PentiumPro 200: 155172000 microseconds per iteration
    Solaris2.5;local disk;sparc20: 1844860 microseconds per iteration
    
    on unix it's 80 time faster than on NT!!!
    
    DesiredBehavior:
    same speed
    
    
    In FileOutputProc (tcl8.0.3/win/tclWinChan.c,line 560) there
    is ALWAYS a call to FlushFileBuffers. 
    So every I/O is written directly to disk. 
    That's why the Disk-LED is permanently blinking.
    
    What's the reason for this call ?
    Can it be removed ?
    
    thanks 
    --
    This is verified in 8.4a1.  The disk LED does stay permanently
    on under NT.  Using the Performance Monitor, it does seem that
    excessive flushing may be occuring.
     
    -- 06/22/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.0.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "62. (unused)"
  10. title changed to: "IO_PERFORMANCE on NT 80 times slower then on unix"
  11. type changed to: "Bug"