Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-09-14
06:19 • Closed ticket [219300ffff]: -buffersize seems to do nothing (?) plus 2 other... artifact: af934a6019 user: andreas_kupries
2001-09-12
02:57 • Ticket [219300ffff]: 4 changes artifact: 65b6ac94d1 user: andreas_kupries
2001-09-08
03:42 • Ticket [219300ffff]: 5 changes artifact: 37ad2cafe8 user: andreas_kupries
2001-08-25
00:29 • Ticket [219300ffff]: 4 changes artifact: 1ef5b91eaf user: andreas_kupries
2001-08-24
07:35 • Ticket [219300ffff]: 4 changes artifact: 0a53a0c99e user: andreas_kupries
04:39 • Ticket [219300ffff]: 5 changes artifact: 8fb8a820a7 user: andreas_kupries
2001-07-19
08:27 • Ticket [219300ffff]: 4 changes artifact: 342d82b81a user: andreas_kupries
2001-02-01
03:40 • Ticket [219300ffff]: 5 changes artifact: 28829ff841 user: dkf
2000-10-26
05:10 • New ticket [219300ffff]. artifact: 2a7c951e0c user: nobody

-buffersize seems to do nothing (?)

Closed219300ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-10-26 05:10:21
OriginalBugID: 2653 Bug
Version: 8.2
SubmitDate: '1999-08-31'
LastModified: '1999-11-07'
Severity: SER
Status: UnAssn
Submitter: techsupp
ChangedBy: hobbs
OS: Windows 95
Machine: X86
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'


Name:
keith lea

ObservedBehavior:
% fconfigure file56e9fc
    -blocking 1 -buffering full -buffersize 1048576 -encoding binary
    -eofchar {} -translation lf
    
    and yet, when copying to this file from a socket, the disk buzzes
    nonstop and the file's size increases steadily, instead of every
    megabyte. I do not use [flush].

DesiredBehavior:
configuring a channel as "-buffersize 1048576" should not write to the
    disk until the buffer reaches 1048576 bytes.
dkfplain2001-02-01 03:40:33
This is a known misfeature of the Windows file channel code; it flushes on every write.  Apparently, this is necessary to get certain tests to behave in an expected way, but I reckon that it is probably better to rethink the tests instead...  :^)
andreas_kupriesplain2001-07-19 08:27:53
Logged In: YES 
user_id=75003

This is not necessary a problem of the windows channel 
code. He claims that the write occurs before the buffer is 
full. This claim we will have to check.
andreas_kupriesplain2001-08-24 04:39:45
Logged In: YES 
user_id=75003

See Tcl Bug #219148 for the item Donal spoke of.
andreas_kupriesplain2001-08-24 07:35:54
Logged In: YES 
user_id=75003

Was something written to the file before the greater 
buffersize was configured ?

It could be a case or reusing the small buffer from
such a previous write.
andreas_kupriesplain2001-08-25 00:29:59
Logged In: YES 
user_id=75003

A script exercising the problem would be nice.
andreas_kupriesplain2001-09-08 03:42:49
Logged In: YES 
user_id=75003

A patch for Performance Bug #219148 (I/O for NT is 80-100
times slower than for Unix) was submitted today to the 8.4
and 8.3.3 branches. The submitter of this item is asked to
check if that patch helps him in his situation too.
andreas_kupriesplain2001-09-12 02:57:24
Logged In: YES 
user_id=75003

keith lea = <[email protected]>
andreas_kupries Closed ticket [219300ffff]. [History diff]2001-09-14 06:19:26
Log in (anonymous is fine) to add a comment.