<i>high water mark memory not shared for file I/O needs</i> status still Open with 4 other changes
by
.
D 2010-03-04T18:20:27
J icomment Ah,\saddress\sarithmetics,\sright.\n\nBut\sthis\sgives\sme\san\sidea\sto\scircumvent\sthe\s"iterate\sover\spages"\sportability\sissue.\nPrinciple:\suse\sa\sprivate\snotion\sof\s"page"\sas\san\sinternal\sgranularity\sinside\sour\sTcl_Objs\sblocks.\sThis\sgranularity\sshould\sbe\sa\spower\sof\stwo\sto\sallow\sfor\sfast\sbitshift\sarithmetics.\sThen,\seach\sTcl_Obj\sblock\sis\ssprinkled\swith\ssuch\s"grain\sboundaries"\s(not\snecessarily\sin\sphase\swith\sthe\sbeginning\sof\sthe\sblock).\sAt\seach\sposition\ssynchronized\swith\sthis\sgranularity,\swe\sreserve\sthe\sTcl_Obj\sslot\s(ie\sdon't\sput\sit\sin\sfree\slist)\sand\sinstead,\sstore\sthe\spointer\sto\sthe\scurrent\sblock\sstructure\sin\sthere.\n\nConsequence:\sthe\shousekeeping\smetadata\smemory\scost\sis\son\saverage\sone\sout\sof\s\ssizeof(OURPAGE)/sizeof(Tcl_Obj),\swhich\smay\sgo\sdown\sto\sa\sfew\sbits\sper\sobject,\swithout\splaying\sdirty\sbitfield\stricks\s(which\sis\simpossible\sbecauseTcl_Objs\sdon't\shave\sa\ssingle\sspare\sbit).\n\nAlso,\sthe\sblock\slookup\stime\sis\sroughly\sthat\sof\syour\sOS-page-based\sscheme,\svery\ssmall\s(adress\sbitshift\s+\s1\sindirection).\n\nThis\s"modulo"\sscheme\sonly\simplies\sa\sbit\smore\swork\sat\sblock\sallocation\stime\s(to\sskip\sthe\smetadata\sslots),\sand\spossibly\sextra\scare\sto\sdeal\swith\sthe\sfact\sthat\ssizeof(Tcl_Obj)\sis\snot\sa\spower\sof\s2\s(it's\s24\son\s32-bit\scpus).\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 2960042fffffffffffffffffffffffffffffffff
U ferrieux
Z aacd885b9617faff99c504c88e9bc90a