# Build is so slow on Raspberry 4

**URL:** https://drone.discourse.group/t/build-is-so-slow-on-raspberry-4/5326
**Category:** Drone Support
**Created:** [September 16, 2019, 2:30pm UTC](https://drone.discourse.group/t/build-is-so-slow-on-raspberry-4/5326 "2019-09-16T14:30:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Tchoupinax](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/tchoupinax/32/5345_2.png) [@Tchoupinax](https://drone.discourse.group/u/Tchoupinax)
#### Post date: [September 16, 2019, 2:30pm UTC](https://drone.discourse.group/t/build-is-so-slow-on-raspberry-4/5326/1 "2019-09-16T14:30:05Z")

</div>

Hello,

I tried to setup a drone agent on my Raspberry 4 (at home) linked to my drone server on my VPS in the cloud. I found build very slow so i tried to add a second agent, an ARM vps on the cloud too. I can see that build on two vps are very fast, but on my raspberry it takes more than 2 minutes (against \<10 secondes for others).

Server : VPS on cloud ( 1 vCPU - 2GB ram)  
_Linux 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u3 x86\_64 GNU/Linux_  
Agent 1 : Raspberry PI 4  
_Linux 4.19.66-v7l+ #1253 SMP armv7l GNU/Linux_  
Agent 2 : VPS on cloud (ARM64-2GB)  
_Linux 4.4.127-mainline-rev1 #1 SMP aarch64 aarch64 aarch64 GNU/Linux_

My drone.yml

```
---
kind: pipeline
type: docker
name: linux-amd64

platform:
  arch: amd64
  os: linux

steps:
- name: deploy
  image: docker
  volumes:
- name: docker-sock
  path: /var/run/docker.sock
  commands:
  - echo "Salut ça va ?"
  - echo "Bonjour"
  - hostname
  - apk update && apk add curl
  - curl 'https://api.ipify.org?format=json'
  - sleep 30

volumes:
- name: docker-sock
  host:
path: /var/run/docker.sock

---
kind: pipeline
type: docker
name: linux-arm

platform:
  arch: arm
  os: linux

steps:
- name: deploy
  image: docker
  volumes:
- name: docker-sock
  path: /var/run/docker.sock
  commands:
  - echo "Salut ça va ?"
  - echo "Bonjour"
  - hostname
  - apk update && apk add curl
  - curl 'https://api.ipify.org?format=json'
  - sleep 30

volumes:
- name: docker-sock
  host:
path: /var/run/docker.sock

---
kind: pipeline
type: docker
name: linux-arm64

platform:
  arch: arm64
  os: linux

steps:
- name: deploy
  image: docker
  volumes:
- name: docker-sock
  path: /var/run/docker.sock
  commands:
  - echo "Salut ça va ?"
  - echo "Bonjour"
  - hostname
  - apk update && apk add curl
  - curl 'https://api.ipify.org?format=json'
  - sleep 30

volumes:
- name: docker-sock
  host:
path: /var/run/docker.sock

```

Arm64 is handled by the server, arm64 is handled by agent 2 and arm is handled by agent 2.  
With this specific pipeline, build time are

![image](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/2/2e94a9fac186e17b2f72559eb0f26ffb447b92c4.png)

My agent docker:

```
docker run -d \
  --name drone-worker-prod-1 \
  --volume /var/run/docker.sock:/var/run/docker.sock \
  -e DRONE_RPC_PROTO=https \
  -e DRONE_RPC_HOST= \
  -e DRONE_RPC_SECRET= \
  -e DRONE_OPEN=true \
  -e DRONE_RPC_DEBUG=true \
  -e DRONE_RUNNER_NAME=${HOSTNAME} \
  -p 3001:3000 \
  drone/agent:1.4.0

```

I would like to understand why it takes 6 more time on my raspberry to make theses easy tasks.

Thank you 🙂

---

<div class="post-metadata">

### Author: ![KN4CK3R](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/kn4ck3r/32/6148_2.png) [@KN4CK3R](https://drone.discourse.group/u/KN4CK3R)
#### Post date: [September 27, 2019, 10:35pm UTC](https://drone.discourse.group/t/build-is-so-slow-on-raspberry-4/5326/2 "2019-09-27T22:35:57Z")

</div>

Works without problems on my Raspberry:

 ![grafik](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/3/397fa9c893b53fcac6d568a45b91f13aebc26f60.png)  
Maybe apk update/add is slow on your setup.

---

<div class="post-metadata">

### Author: ![Tchoupinax](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/tchoupinax/32/5345_2.png) [@Tchoupinax](https://drone.discourse.group/u/Tchoupinax)
#### Post date: [September 28, 2019, 4:13am UTC](https://drone.discourse.group/t/build-is-so-slow-on-raspberry-4/5326/3 "2019-09-28T04:13:28Z")

</div>

Hello,

Thank very much for your try. 🙂

I will update and see what happens
