I haven't looked at your problem carefully, but throw out the following ideas (vague recollections rather than rigorous knowledge).

Windows 32bit 4gb address space is first divided in 2 with 1/2 for the OS and 1/2 for the application. This sets an upper bound of 2gb for the user mapping space. Lots of things cut into this available address space (all your other J stuff for example) and it isn't too surprising that 1gb mapping works and that 1.6 fails.

Linux has a more generous address space available (perhaps 3gb) for the application and it isn't surprising that 1.6gb works.

You could experiment a bit more to see more closely what the limit is in windows and linux.

You could try a web search (msdn) for detailed information on the windows user address space.

It might be time for you to look at a 64 bit system :)

----- Original Message ----- From: "Xu Zuoqian" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 30, 2006 5:14 AM
Subject: [Jbeta] huge memory map file share problem in the windows v beta


On a win2k server sp4 machine(2G mem+2G pagefile.sys),after creating a
1.6G memory map file using "createjmf_jmf_ DATAFILE;1600000000 ",when
running "map_jmf_ 'hqdata';DATAFILE;DATAFILE", it asserts "|bad view:
assert |   'bad view'    assert 0[free fh,mh,0",but on a 1G mmap file
'map_jmf_'  is ok.
however, 'share_jmf_ 'D_z_';DATAFILE' asserts "|assertion failure: assert
|       assert 0[CloseHandleR mh[CloseHandleR fh['bad view'" on this
1G file.The same file is all ok on another linux box(512M mem+1G
swap).
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to