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

Artifact [2f2bcf4c32]

Artifact 2f2bcf4c32180902d4cd6eaca6f152df69ddac33:

Ticket change [2f2bcf4c32] - Ticket [605074ede5ccc8bc|605074ede5] <i>New sub-command: file utime</i> status still Open with 3 other changes by damkerngt on 2013-10-18 14:06:07.
D 2013-10-18T14:06:07.282
J icomment I\sbelieve\sI\scan\spinpoint\sthe\spattern\sthat\scould\scause\sthis\sstat()\sproblem\snow.\r\n\r\nThe\s<strong>pre-condition</strong>,\swhich\sis\svery\simportant\sis:\r\nWe\sneed\sto\sset\s<code>[file\smtime]</code>\son\sa\smassive\snumber\sof\sfiles\sthat\sdistributed\samong\sseveral\ssub-directories.\r\nThe\snumber\sof\sfiles\sis\simportant.\sFor\sexample,\s10,000\sfiles\smight\snot\scause\sany\spenalty,\s50,000\sfiles\sdoes.\r\nDirectory\sstructure\smust\sbe\srealistic.\sUpdating\smtime\sof\s50,000\sfiles\sin\sa\ssingle\sdirectory\smight\snot\scause\sthe\spenalty,\sbut\s50,000\sfiles\sin\s5,000\sdirectories\sdoes.\s(Hence,\sthe\sbenchmark\sscript\stries\sto\simitate\ssuch\sa\sstructure.)\r\n\r\n\r\n<strong>Additional\sconditions:</strong>\r\nThe\spenalty\scan\soccur\son\sboth\sLinux\sand\sWindows\s(I\shave\sno\sMac\sOS\sX\sto\stest\sat\sthe\smoment).\r\n\r\nOn\sLinux\s(I\stested\sit\son\sUbuntu),\sif\sthere\swas\smassive\sdisk\swrites\sjust\sbefore\sor\sduring\sthe\smoment\swe\sset\s<code>[file\smtime]</code>,\sthe\spenalty\swill\soccur.\s(A\stask\sthat\scould\sbe\sdone\sin\sless\sthan\s3\sseconds\swent\sup\sto\s47\sseconds.)\sIf\snot,\scalling\sor\snot\scalling\sGetStatBuf()\sdoes\snot\smatter.\r\n\r\nOn\sWindows,\sthe\spenalty\sseems\sto\sdepend\son\sboth\swhether\swe\sjust\shave\smassive\sdisk\swrites\sand\sthe\sremaining\savailable\smemory.\sThe\sremaining\savailable\smemory\sseems\sto\shave\smore\simpact.\sThe\sstrange\sthing\sis\sthat\syou\sdon't\sneed\sto\shave\sreally\slow\smemory\sin\sorder\sto\sobserve\sthe\shuge\spenalty,\sjust\shave\sit\sused\sup\sabout\s2/3\s(i.e.\s1/3\sof\syour\smemory\sleft)\swould\sdo.\s(A\stask\sthat\scould\sbe\sdone\sin\s25\sseconds\swent\sup\sto\s125\sseconds.)\r\n\r\nPlease\sfind\sthe\sbenchmark\scode\sin\s[http://paste.tclers.tk/2926].
J login damkerngt
J mimetype text/x-fossil-wiki
K 605074ede5ccc8bc3fdd67e339575c45bd1a1522
U damkerngt
Z f10bd1ce85fa24e2da6723c938b66f34