Since I'm on OS X, I tried looking at the Activity Monitor app tosee which files had been opened. This showed that after my query, allthe'volume' files remained open, one from each partition directory.However,the list of open files didn't change when I ran the query multipletimes.To get at that info programmatically, one can use the vmmap program,whichalso displays mapped files (along with lots of other information).Interestingly,vmmap *did* show files being mapped multiple times. A ha!So it looks like q is re-mapping tables that it already has in memory,and onthe 32-bit version, it runs out of vm fairly quickly.Seems like a bug, no?-----------------------$ q hdbKDB+ 2.5 2009.08.04 Copyright (C) 1993-2009 Kx Systemsm32/ 2()core 4096MB andy andy-turks-macbook-pro.local 10.211.55.2 PLAY2009.11.02q)\w102816 67108864 0 0jq)count each group `$'system("vmmap ",(string .z.i),"|awk '/^mapped/{print $8}'")q)/ *** no mapped files yet ***q)r:select sum volume by ticker from futureq)\w105024 201326592 0 851103380jq)count each group `$'system("vmmap ",(string .z.i),"|awk '/^mapped/{print $8}'")/Users/andy/p4/tickwrite/hdb/2006.04/future/volume| 1/Users/andy/p4/tickwrite/hdb/2006.05/future/volume| 1/Users/andy/p4/tickwrite/hdb/2006.06/future/volume| 1..q)r:select sum volume by ticker from futureq)count each group `$'system("vmmap ",(string .z.i),"|awk '/^mapped/{print $8}'")/Users/andy/p4/tickwrite/hdb/2006.04/future/volume| 2/Users/andy/p4/tickwrite/hdb/2006.05/future/volume| 2/Users/andy/p4/tickwrite/hdb/2006.06/future/volume| 2..q)\w108832 67108864 0 1702206760jq)