Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

madvise: function not implemented #646

Open
sanbornm opened this issue Jan 9, 2017 · 3 comments
Open

madvise: function not implemented #646

sanbornm opened this issue Jan 9, 2017 · 3 comments

Comments

@sanbornm
Copy link

sanbornm commented Jan 9, 2017

Is madvise critical to run boltdb? I am currently trying to access boltdb on an embedded device running Linux/armv7 and running into this error, madvise: function not implemented. I would rather not recompile the kernel if I can help it. I don't need boltdb to be "fast" just functional on this device. Can this error be skipped/ignored?

@sanbornm
Copy link
Author

sanbornm commented Jan 10, 2017

I can confirm that ignoring that error (https://github.com/boltdb/bolt/blob/master/bolt_unix.go#L66) instead of returning does allow boltdb to successfully write. Is there any harm in ignoring this error?

@tv42
Copy link
Contributor

tv42 commented Feb 2, 2017

Sounds like it could ignore ENOSYS explicitly -- not just any error, that would hide bugs.

@jingqiuELE
Copy link

jingqiuELE commented Feb 27, 2017

You can check if CONFIG_ADVISE_SYSCALLS is set to "y" in your kernel configuration.
Without it, madvise syscall would fail with the error as reported here.

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

No branches or pull requests

3 participants