Not stupid at all, though its value might be affected by other details of
Linux memory management. Actually your description is so much like VMS
pagefault clustering that it's scary. (The VAX architecture specifies
tiny 512-byte pages, so PFC is a real win on that hardware. The factory
default on OpenVMS/VAX is 32 pages per fault. The aXp architecture calls
for page sizes between 4kB and 64kB so clustering is less needful there.
I don't know what the default cluster size is on an Alpha.)
IIRC the default cluster size is a SYSGEN parameter (somewhat like
/proc/sys/somethingorother) but another value can be set in the header of
an executable file at link time. I think the per-image PFC size is one
of the least-used features of VMS, but someone will surely recall an
application if I say it could be omitted.
Since programs' memory use patterns differ, I think a good deal of
performance measurement would be required to determine whether clustering
actually helps enough to be worth the added complexity, and whether making
the cluster size tunable is worthwhile. If we're reading 4kB/fault now
then there may not be much to be gained from clustering.
-- Mark H. Wood, Lead System Programmer mwood@IUPUI.Edu Innovation is only valuable if it improves one's life; otherwise it's just one more silly change to cope with.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/