Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test build machines #617

Open
uazo opened this issue Dec 19, 2023 · 3 comments
Open

Test build machines #617

uazo opened this issue Dec 19, 2023 · 3 comments
Labels
task These are things I tell myself I should do working on it working on it

Comments

@uazo
Copy link
Owner

uazo commented Dec 19, 2023

Objectives:

  • To verify the performance related to the build of different machines
  • Prepare setup script for self-configuration
  • Verification of costs

Current machine:

Test on:

Repository owner locked and limited conversation to collaborators Dec 19, 2023
@uazo
Copy link
Owner Author

uazo commented Dec 19, 2023

Current script (WIP):

git clone https://github.com/uazo/cromite

# install docker
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg

# Add the repository to Apt sources:
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo usermod -aG docker $USER

# install sysbox
wget https://downloads.nestybox.com/sysbox/releases/v0.6.2/sysbox-ce_0.6.2-0.linux_amd64.deb
docker rm $(docker ps -a -q) -f
sudo apt-get install -y jq
sudo apt-get install -y ./sysbox-ce_0.6.2-0.linux_amd64.deb
sudo systemctl status sysbox -n20
sudo docker info | grep -i runtime

# install my sysbox version
apt install -y unzip
unzip ~/cromite/tools/images/sysbox/sysbox.zip
cp build/ubuntu_22.04/x64/sysbox-runc /usr/bin/
docker run --runtime=sysbox-runc -it hello-world

# set casefold disk (/dev/sdb1)
cat /sys/fs/ext4/features/casefold # got supported
sudo umount -fl /dev/sdb1
sudo mkfs -F -t ext4 -O casefold /dev/sdb1
sudo dumpe2fs -h /dev/sdb1 | grep 'Filesystem features'
sudo mkdir -p /casefold
sudo mount /dev/sdb1 /casefold

# install win sdk
sudo mkdir -p /casefold/win
sudo chattr +F /casefold/win
echo test >/casefold/win/test && cat /casefold/win/Test

cd /casefold/win/
mkdir 10.0.22621.0 && cd 10.0.22621.0
!! make eb2fe448b4.zip generable
unzip eb2fe448b4.zip

# make storage folder
cd ~
sudo mkdir -p /storage

cd cromite/tools/images/github-runner/
!! make .env file
sudo GHRUNNERHOME=$HOME/runner bash ./start-runner.sh

@uazo uazo added the task These are things I tell myself I should do label Dec 19, 2023
@uazo
Copy link
Owner Author

uazo commented Dec 20, 2023

results:

12 vcore - Webtropia 16 vcore - OVH 32 vcore - Aruba
A x64 3h 32m 1h 55m 1h 6m
Win x64 4h 47m 2h 24m 1h 19m
A arm64 3h 37m 1h 57m 1h 7m
A arm 3h 36m n/a 1h 7m
L x64 3h 43m n/a 1h 5m
Total 19h 22m 10h 23m (estimated) 5h 50m
Cost/Month (always on) 54,89 € 315,46 € 337,63 €
Cost/Hour 0.073 (estimated) 0.4240 0.4538
Total Cost (estimated) 1,53 € 5,09 € 3,18 €
Incidence Total/Core 96,83 38,94 10,94
--> Hour:Min 1:36 0:38 0:10

note: n/a because I forgot to use my version of sysbox

considerations:

  • the current server (the first one) is really slow
  • ovh is not worth it
  • absurd time for the windows build, what's the point?
  • I have to try another server with 16 cores, but I have to look for it at half the price.

@uazo
Copy link
Owner Author

uazo commented Dec 20, 2023

Test with

there was no way to test that server, problems all the time with docker. who knows.

@uazo uazo added the working on it working on it label Dec 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
task These are things I tell myself I should do working on it working on it
Projects
None yet
Development

No branches or pull requests

1 participant