Comments (5)
Similar issue here.
Update: on my Ubuntu 18 system the default hugepage directory was /dev/hugepages. (mount |grep huge). I edited the hard coded directory in code to point here. Also configured the system with 1000 huge pages. This seemed to get me past the this mmap error.
I did notice that the mmap command is specifying 1gb huge page size, while it was set to 2mb on my machine. I am going to assume 1gb huge page size is required but would appreciate guidance.
Update 2:
Set huge page size to 1gb by editing etc/default/grub and reboot. Now hammering with no errors 🔨🚀
from blacksmith.
The huge page size adjustment works for me. Thanks @joe-desimone . Btw, do you meet the illegal instruction issue after solving this problem?
from blacksmith.
mmap: Invalid argument
anyone has the same issue
from blacksmith.
I confirm that the page size adjustment worked for me aswell.
Add GRUB_CMDLINE_LINUX="hugepagesz=1G hugepages=1 default_hugepagesz=1G"
in /etc/default/grub
Then you can run update-grub
and reboot.
from blacksmith.
@AnaMazda Please open a new issue for the mmap
problem. Also state details about your system (for example, you will encounter your described issue on macOS).
from blacksmith.
Related Issues (14)
- blacksmith doesnt work : /mnt/huge/buff not found HOT 3
- Blacksmith terminated: Illegal instruction HOT 5
- Blacksmith on non-Coffee Lake CPUs HOT 20
- mmap: Invalid argument HOT 6
- Could not find conflicting address sets HOT 2
- Could not mount superpage from /mnt/huge/buff. Error: No such file or directory HOT 2
- Does this work on WSL2? HOT 4
- Packaging of Blacksmith in Guix. HOT 4
- Some questions regarding the use of time-based side channels in blacksmith HOT 3
- Blacksmith run hangs and log shows strange characters HOT 2
- Fuzzer unable to find patterns on some DIMMs HOT 3
- Unable to compile on ARM processor HOT 1
- Dead loop of counting the number of possible activations per refresh interval HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blacksmith.