Skip to content
Tcl Source Code Artifact [2f21037727]
Login

Artifact [2f21037727]

Artifact 2f210377273282170e7ae124101a47aacb4fe025:

Ticket change [2f21037727] - Ticket [219148ffffffffff|219148ffff] <i>IO_PERFORMANCE on NT 80 times slower then on unix</i> status still Open with 4 other changes by andreas_kupries on 2001-08-24 06:26:34.
D 2001-08-24T06:26:34
J icomment Logged\sIn:\sYES\s\nuser_id=75003\n\nOk,\sI\snow\sunderstand\sthe\sproblem\smuch\sbetter.\sIt\sis\s\npartially\san\sOS\sissue\sand\spartially\san\sissue\sof\show\sthe\s\naffected\stests\swere\swritten.\n\nWhen\sTcl\s'flushes'\sa\schannel\sit\sactually\sonly\swrites\sits\s\ninternal\sbuffers\sto\sthe\sOS\sand\sthen\sforgets\sabout\sthe\sdata.\s\nThe\sOS\sis\sfree\sto\sdelay\sthe\sactual\swrite\sto\sdisk.\n\nThe\saffected\stests\stry\sto\scheck\sthat\sthe\sflushing\sbehaviour\s\nof\stcl\sis\scorrect.\sTo\sdo\sso\sthey\sperform\ssome\swrites\sand\s\nthen\scheck\sthe\ssize\sof\sthe\sresulting\sfile.\s\sBut\sthis\s\nmeansthat\sthey\sactually\scheck\sthe\sflushing\sbehaviour\sof\sTcl\s\nitself\sand\show\sthe\sOS\sdeals\swith\spending\sdata\swhen\sit\scomes\s\nto\sreporting\sthe\ssize\sof\sa\sfile.\n\nBoth\sUnix\sand\sWin*\splatforms\sdelay\swriting\sdata\sto\sdisk\s\nuntil\sthey\shave\sidle\stime,\sor\sby\sgrouping\snearby\sblock\s\ntogether,\setc.\sBut\sobviously\sWin*\sis\smore\slazy\sthan\sUnix\s\nwhen\sit\scomes\sto\sreporting\sthe\ssize\sof\sa\sfile\swith\spending\s\nwrites.\sWin*\sreports\sthe\ssize\sactually\son\sdisk,\sno\smatter\s\nhow\smuch\sdata\sis\spending.\sUnix\sgoes\sto\sthe\strouble\sand\s\ncalculates\sthe\ssize\sof\sthe\sfile\sas\sif\sthe\spending\sdata\shad\s\nbeen\swritten\sto\sthe\sdisk.\n\nThe\scurrent\ssolution\sof\sthis\sproblem\sis\sto\sforce\sWin*\sto\s\nactually\swrite\sall\sthe\sdata\swritten\sto\sit\sby\sTcl\sto\sthe\s\ndisk\stoo,\swithout\sdelay.\sThis\sgets\sus\sthe\sreliable\sfile\s\nsizes\sthe\stests\sneed\sto\sperform\scorrectly,\sat\sthe\sexpense\s\nof\sgeneral\sI/O\sperformance.\n\n
J login andreas_kupries
J mimetype text/plain
J username andreas_kupries
K 219148ffffffffffffffffffffffffffffffffff
U andreas_kupries
Z 6348bb362e71503d33a2a5dc3858aff6