We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
In systems where the kernel is compiled with option CONFIG_STRICT_DEVMEM, mmap is limited to 1MB: https://stackoverflow.com/questions/8213671/mmap-operation-not-permitted.
The marshalling framework uses mmap with the maximum available size, raising IOException:
IOException
bibliome-java-utils/src/main/java/fr/inra/maiage/bibliome/util/marshall/Unmarshaller.java
Lines 150 to 159 in f9b16d9
Solution 1: tell users to recompile kernel. Not always possible.
Solution 2: mmap 1MB only. Problem is that the unmarshalled object might be larger than 1MB.
Solution 3: create a ByteBuffer based on 1MB mmap, but closes and reopens the mmap as needed.
ByteBuffer
In systems where the kernel is compiled with option CONFIG_STRICT_DEVMEM, mmap is limited to 1MB: https://stackoverflow.com/questions/8213671/mmap-operation-not-permitted.
The marshalling framework uses mmap with the maximum available size, raising
IOException:bibliome-java-utils/src/main/java/fr/inra/maiage/bibliome/util/marshall/Unmarshaller.java
Lines 150 to 159 in f9b16d9
Solution 1: tell users to recompile kernel. Not always possible.
Solution 2: mmap 1MB only. Problem is that the unmarshalled object might be larger than 1MB.
Solution 3: create a
ByteBufferbased on 1MB mmap, but closes and reopens the mmap as needed.