crail
crail copied to clipboard
mmap in hugetlbfs
Hi,
I read the code of crail and found it supports hugetlbfs, I perform some experiments on hugetlbfs(not associated with crail).my question is we use the MappedByteBuffer which mapped from a file in hugetlbfs and never unmap it, it says GC will take care of it, but the fact is sometimes I run to this error:
java.lang.Error: Cleaner terminated abnormally at sun.misc.Cleaner$1.run(Cleaner.java:147) at sun.misc.Cleaner$1.run(Cleaner.java:144) at java.security.AccessController.doPrivileged(Native Method) at sun.misc.Cleaner.clean(Cleaner.java:144) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:141) Caused by: java.io.IOException: Invalid argument at sun.nio.ch.FileChannelImpl.unmap0(Native Method) at sun.nio.ch.FileChannelImpl.access$000(FileChannelImpl.java:40) at sun.nio.ch.FileChannelImpl$Unmapper.run(FileChannelImpl.java:787) at sun.misc.Cleaner.clean(Cleaner.java:142)
Can anyone give me some hints?I am not very familiar with hugetlbfs.
@TeddyBear1314 Who says " it says GC will take care of it" ? What experiment are you doing?
Also - This is a closed repo. If you want to ask questions about Crail then use http://crail.incubator.apache.org/community/.
@animeshtrivedi thanks for the reply. What I mean is Java has no unmap method for the MappedByteBuffer from FileChannel.map(), in the comments of MappedByteBuffer.java, it says the MappedByteBuffer will be garbage-collected, but I always run into the error I have listed above.Have you ever met it before?
No, i have not run into this error before.
Under what conditions this error is triggered? Is this error deterministicly reproducible?