Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2f210377273282170e7ae124101a47aacb4fe025
Ticket: 219148ffffffffffffffffffffffffffffffffff
IO_PERFORMANCE on NT 80 times slower then on unix
User & Date: andreas_kupries on 2001-08-24 06:26:34
Changes

  1. icomment:
    Logged In: YES 
    user_id=75003
    
    Ok, I now understand the problem much better. It is 
    partially an OS issue and partially an issue of how the 
    affected tests were written.
    
    When Tcl 'flushes' a channel it actually only writes its 
    internal buffers to the OS and then forgets about the data. 
    The OS is free to delay the actual write to disk.
    
    The affected tests try to check that the flushing behaviour 
    of tcl is correct. To do so they perform some writes and 
    then check the size of the resulting file.  But this 
    meansthat they actually check the flushing behaviour of Tcl 
    itself and how the OS deals with pending data when it comes 
    to reporting the size of a file.
    
    Both Unix and Win* platforms delay writing data to disk 
    until they have idle time, or by grouping nearby block 
    together, etc. But obviously Win* is more lazy than Unix 
    when it comes to reporting the size of a file with pending 
    writes. Win* reports the size actually on disk, no matter 
    how much data is pending. Unix goes to the trouble and 
    calculates the size of the file as if the pending data had 
    been written to the disk.
    
    The current solution of this problem is to force Win* to 
    actually write all the data written to it by Tcl to the 
    disk too, without delay. This gets us the reliable file 
    sizes the tests need to perform correctly, at the expense 
    of general I/O performance.
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"