In the “Q for Mortals” book (2006-2008) on page 240 the workspace command “\w” is documented as yielding 4 integer values (bytes used, bytes allocated, max memory available, and size of mapped files).
On my copy of 32-bit KDB+ for Linux the \w command yields 6 integers (118256 67108864 67108864 0 0 2116919296).
Since there are 2 more integers now reported, what do they represent?
Using the command “\cat /proc/$$/status” I can get the pid of the q session from the PPid of the call to Bash. Suppose it is 4692.
I can use the command “\cat /proc/4692/statm” which yielded 17339 454 309 128 0 16588 0
The first 3 integers should be the VmSize, VmRss and mapped memory, all in pages. See the proc(5) man page.
Converting to bytes by multiplying by 4096 gives me 71020544 1859584 1265664 524288 0 67944448 0
None of the results from the call to Linux match the results from \w.
kdb+ has its own memory allocator and currently only symbols would appear under the heap entry under maps.
What scenario do you have which makes this relevant?