Skip to content

Low resource vm build this project #321

@josecelano

Description

@josecelano

Discussed in #316

Originally posted by nyacat May 1, 2023
as readme.md said
You might have problems compiling with a machine or docker container with low resources. It has been tested with docker containers with 6 CPUs, 7.5 GM of memory and 2GB of swap.

I managed to build this project using low resource vm.

vm specification

  • 1 core of Intel Xeon Processor (Icelake)
  • 1G of ram
  • 25G of disk
  • Debian 11
  • no swap by default

The method is very simple, just add a 8g swapfile
Please note, if your vm comes with swap partition or swap file, please swapoff first.

# allocate a 8G file
fallocate -l 8G /swapfile
# mount as swap
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile

once build done, remove the swap

swapoff /swapfile
rm /swapfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions