You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mnemonic.apache.org by "Wang, Gang (Jira)" <ji...@apache.org> on 2021/08/04 06:02:00 UTC

[jira] [Commented] (MNEMONIC-667) "Big memory init failure" when running mnemonic-example inside ubuntu-WSL

    [ https://issues.apache.org/jira/browse/MNEMONIC-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17392741#comment-17392741 ] 

Wang, Gang commented on MNEMONIC-667:
-------------------------------------

The exception should be throw out in the following code snippets.

 
{code:java}
if ((vmp = vmem_create(mpathname, VMEM_MIN_POOL > capacity ? VMEM_MIN_POOL : capacity)) == NULL) { pthread_rwlock_unlock(&g_vmem_rwlock); throw(env, "Big memory init failure!"); }{code}
 

[https://github.com/apache/mnemonic/blob/9e1450635b95c3f99d459836dab7b8c1b6d6799d/mnemonic-memory-services/mnemonic-nvml-vmem-service/src/main/native/org_apache_mnemonic_service_memory_internal_VMemServiceImpl.c#L225]

 it seems caused by the function call of vmem_create(...) .  it comes from the following library,  the static one is used.
{code:java}
libvmem.a libvmem.so{code}
Therefore, as said in the following lined man page, we may need to capture and interpret the _errno_ to identify the root cause, thanks.

[https://pmem.io/pmdk/manpages/linux/v1.4/libvmem/vmem_create.3]

> "Big memory init failure" when running mnemonic-example inside ubuntu-WSL
> -------------------------------------------------------------------------
>
>                 Key: MNEMONIC-667
>                 URL: https://issues.apache.org/jira/browse/MNEMONIC-667
>             Project: Mnemonic
>          Issue Type: Bug
>          Components: Example
>    Affects Versions: 0.16.0
>            Reporter: Yanhui Zhao
>            Priority: Major
>             Fix For: 0.16.0
>
>
> Testing mnemonic-example inside ubuntu-WSL and following error occurs. Not sure if it is the WSL issue or test case issue.
> === error log ===
> $ mvn exec:exec -Pexample -pl mnemonic-examples
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
> WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
> WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Detecting the operating system and CPU architecture
> [INFO] ------------------------------------------------------------------------
> [INFO] os.detected.name: linux
> [INFO] os.detected.arch: x86_64
> [INFO] os.detected.release: ubuntu
> [INFO] os.detected.release.version: 20.04
> [INFO] os.detected.release.like.ubuntu: true
> [INFO] os.detected.release.like.debian: true
> [INFO] os.detected.classifier: linux-x86_64
> [INFO]
> [INFO] ---------------< org.apache.mnemonic:mnemonic-examples >----------------
> [INFO] Building mnemonic-examples 0.16.0-SNAPSHOT
> [INFO] --------------------------------[ jar ]---------------------------------
> [INFO]
> [INFO] --- exec-maven-plugin:1.4.0:exec (default-cli) @ mnemonic-examples ---
> *Exception in thread "main" java.lang.RuntimeException: Big memory init failure!*
>  *at org.apache.mnemonic.service.memory.internal.VMemServiceImpl.ninit(Native Method)*
>  *at org.apache.mnemonic.service.memory.internal.VMemServiceImpl.init(VMemServiceImpl.java:58)*
>  *at org.apache.mnemonic.VolatileMemAllocator.<init>(VolatileMemAllocator.java:77)*
>  *at org.apache.mnemonic.examples.Main.main(Main.java:68)*
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1.648 s
> [INFO] Finished at: 2021-07-22T20:44:06-07:00



--
This message was sent by Atlassian Jira
(v8.3.4#803005)