tsung-wei-huang / DtCraft

A High-performance Cluster Computing Engine
https://tsung-wei-huang.github.io/DtCraft/
MIT License
143 stars 25 forks source link

Fail to run master/agent under gcc 7.1.0 in centos 7 #1

Closed Devilbilly closed 6 years ago

Devilbilly commented 6 years ago

By following the instruction of DtCraft Distributed Mode (Single Host), I tried to run bin/master and bin/agent, however, it crashed.

$ ./master terminate called after throwing an instance of 'std::system_error' what(): unshare failed: Invalid argument Abort (core dumped)

clin99 commented 6 years ago

Could you use uname -r to check the Linux kernel version of your machine?

Devilbilly commented 6 years ago

Linux 3.10.0-514.21.1.el7.x86_64, is this kernel too old? I can run examples without any problems.

clin99 commented 6 years ago

To run under distributed mode, the Linux kernel version should be at least 3.8 or higher.

Devilbilly commented 6 years ago

I guess my kernel version is higher than 3.8?

Devilbilly commented 6 years ago

I'll manually enable user namespace and see if this solve this problem.

Devilbilly commented 6 years ago

Problem solved using $ grubby --args="user_namespace.enable=1" --update-kernel="$(grubby --default-kernel)" $ reboot

In centos 7, user namespace is a technology preview feature.

tsung-wei-huang commented 6 years ago

This is due to the setup of Linux container in DtCraft. We require "user namespace" to be enabled by your OS.