Comments (3)
I fixed this issue by creating the /mnt/huge
(mkdir /mnt/huge
) directory by myself. Not sure if it is the correct workaround.
from blacksmith.
Hi @AnaMazda,
Additionally to what @T-TROUCHKINE suggested, you also need to enable 1GB super pages in your system.
METHOD 1: The proper way of doing this would be to enable super pages in the GRUB configuration (recommended) by adding following params to GRUB_CMDLINE_LINUX
in /etc/default/grub
:
GRUB_CMDLINE_LINUX="default_hugepagesz=1G hugepagesz=1G hugepages=1"
After that, you need to run sudo update-grub
and reboot the system.
METHOD 2: Alternatively, you could try to just temporarily enable 1GB super pages (i.e., settings will be reverted after a reboot). However, if your system memory is very full and there is no 1GB of contiguous memory available, this might not work. You can try it immediately after a reboot to increase your chances.
Here a ready-to-run Bash script that should do the job:
#!/bin/bash
gbFile="/sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages"
mkdir -p /mnt/huge
mount -t hugetlbfs -o pagesize=1G,size=1G none /mnt/huge
echo 1 | sudo tee $gbFile
cat $gbFile
We would appreciate your brief feedback or 👍🏼 . Thanks!
Regards,
Patrick
from blacksmith.
thanks @pjattke and @T-TROUCHKINE for your help
from blacksmith.
Related Issues (14)
- Blacksmith not running: mmap: Cannot allocate memory HOT 5
- 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.