Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing lots of MappedByteBuffer's in READ_WRITE mode slows down Windows 7 to a crawl
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COIt is important to recognize that there are going to be resource limitations when working with scarce resources. Is there a reason you need 512 open memory mapped files available at the same time? Depending on your use case there are a number of different approaches you might take including pooling scarce resources (open file handles).
      singulars
    2. COIn reality, I expect the files to be accessed pretty much randomly. That's why I would like to be able to keep all the views mapped at the same time. This seems to be accepted as an OK practice, on 64-bit machine of course. See http://stackoverflow.com/questions/9261316/memory-mapped-mappedbytebuffer-or-direct-bytebuffer-for-db-implementation for example. It does work just fine for reading, but not completely well for writing. I suspect that after a while any memory access from any process forces the OS to swap out some of the dirty page loaded by the JVM process. Any suggestion to avoid this?
      singulars
    3. COA pooled solution would work reasonably well depending on how many files you expect to be accessed concurrently. Using a pooled approach you would be able to adjust for performance by varying the pool size. In any case, when the system runs out of RAM the OS will have to start swapping. This is why the whole machine comes to a crawl.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload