Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

posix_memalign: Cannot allocate memory #16

Open
ksved opened this issue May 11, 2018 · 3 comments
Open

posix_memalign: Cannot allocate memory #16

ksved opened this issue May 11, 2018 · 3 comments
Assignees

Comments

@ksved
Copy link

ksved commented May 11, 2018

Hello,

I run following commands on my ubuntu16.04 LTS (Oracle VM Virtualbox):
tools/make_deps.sh
build/gyp/gyp --depth=. scal.gyp
V=1 BUILDTYPE=Debug make
V=1 BUILDTYPE=Release make
V=1 BUILDTYPE=Release make prodcon-kstack
cd out/Release
sudo ./prodcon-kstack -producers=2 -consumers=2 -operations=100 -c=250 -warn_on_overflow=true

And I get following error:

posix_memalign: Cannot allocate memory

Aborted (core dumped)

@ckirsch
Copy link
Member

ckirsch commented May 21, 2018

@mlippautz any idea what's going on?

@mlippautz
Copy link
Collaborator

I would assume that the VirtualBox image doesn't have enough physical memory assigned to it. You could try increasing that.

Other than that you could check with ulimit -a whether virtual memory limit is indeed unlimited.

@ckirsch
Copy link
Member

ckirsch commented May 24, 2018

@ksved Please see @mlippautz reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants