summary refs log tree commit diff stats
path: root/results/classifier/118/performance/985
blob: b0d17f1f4754883566ffefb1b309af33a6744b88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
performance: 0.952
architecture: 0.752
boot: 0.719
network: 0.700
user-level: 0.600
device: 0.594
PID: 0.578
graphic: 0.573
x86: 0.498
debug: 0.442
virtual: 0.436
semantic: 0.404
ppc: 0.391
mistranslation: 0.331
assembly: 0.316
kernel: 0.314
permissions: 0.298
files: 0.235
VMM: 0.219
hypervisor: 0.200
socket: 0.199
register: 0.198
i386: 0.183
TCG: 0.154
peripherals: 0.152
vnc: 0.083
risc-v: 0.078
KVM: 0.058
arm: 0.057

pkg_add is working very slow on NetBSD
Description of problem:
pkg_add is working very slow, it installs one package in ~30 minutes although network speed is normal.
Steps to reproduce:
1. `wget https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/images/NetBSD-9.2-amd64.iso`
2. `qemu-img create -f qcow2 disk.qcow2 15G`
3. Install
```
qemu-system-x86_64 -m 2048 -enable-kvm \
  -drive if=virtio,file=disk.qcow2,format=qcow2 \
  -netdev user,id=mynet0,hostfwd=tcp::7722-:22 \
  -device e1000,netdev=mynet0 \
  -cdrom NetBSD-9.2-amd64.iso
```
       # Installation steps
       - 1) Boot Normally
       - a) Installation messages in English
       - a) unchanged
       - a) Install NetBSD to hard disk
       - b) Yes
       - a) 15G
       - a) GPT
       - a) This is the correct geometry
       - b) Use default partition sizes
       - x) Partition sizes are ok
       - b) Yes
       - a) Use BIOS console
       - b) Installation without X11
       - a) CD-ROM / DVD / install image media
       - Hit enter to continue
       - a) configure network (Select defaults here, perform autoconf)
       - x) Finished configuring
       - Hit enter to continue
       - x) Exit Install System
       - Close QEMU
4. Run
```
 qemu-system-x86_64 -m 2048 \
  -drive if=virtio,file=disk.qcow2,format=qcow2 \
  -enable-kvm  \
  -netdev user,id=mynet0,hostfwd=tcp:127.0.0.1:7722-:22 \
  -device e1000,netdev=mynet0
```
5. Login as root
6. In NetBSD
```
export PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r)/All/" && \
pkg_add pkgin

```
You should see that each of the package's installation takes ~30 minutes.
Additional information:
NetBSD 9.2 is also tested in Debian 11 with 'QEMU 6.2.0' and encountered same slowness. 

NetBSD 7.1 and 8.1 are tested on openSUSE Tumbleweed and encountered same slowness.

OpenBSD's pkg_add is working correctly.

I am not sure if it will help but Virtualbox(at least 6.1) is working correctly.