Giter VIP home page Giter VIP logo

Comments (3)

T-TROUCHKINE avatar T-TROUCHKINE commented on August 16, 2024

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.

pjattke avatar pjattke commented on August 16, 2024

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.

AnaMazda avatar AnaMazda commented on August 16, 2024

thanks @pjattke and @T-TROUCHKINE for your help

from blacksmith.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.