summary refs log tree commit diff stats
path: root/results/classifier/zero-shot-user-mode/output/instruction/1756807
blob: 9c75e0c1c194a718ae367938b674fe04920c99e0 (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
instruction: 0.389
runtime: 0.351
syscall: 0.260



performance regression in qemu-user + proot

To reproduce:

1. Install qemu-user-static and proot
2. Enter some arm chroot using them:

    proot -0 -q qemu-arm-static -w / -r chroot/ /bin/bash

3. Run a command which normally takes a short but measurable amount of time:

    cd /usr/share/doc && time grep -R hello

Result:

This is over 100 times slower on 18.04 than it was on 16.04. I am not sure if proot or qemu is causing the problem, but proot version has not changed. Also note that on 16.04 I am using the cloud repo version of qemu, which is newer than 16.04 stock, but still older than 18.04.

Although system 2 is lower spec than system 1, it should not be this much slower. No other software seems to be affected.

If required I can supply a chroot tarball. It is essentially just a Debian bootstrap though.

Logs:



System 1: i7-6700 3.4GHz, 32GB RAM, 512GB Crucial MX100 SSD, Ubuntu 16.04
qemu-arm version 2.10.1(Debian 1:2.10+dfsg-0ubuntu3.4~cloud0)
proot 5.1.0

al@al-desktop:~/rpi-ramdisk/raspbian$ proot -0 -q qemu-arm-static -w / -r root/ /bin/bash
root@al-desktop:/# cd /usr/share/doc
root@al-desktop:/usr/share/doc# time grep -R hello
dash/copyright:Debian GNU/Linux hello source package as the file COPYING.  If not,

real	0m0.066s
user	0m0.040s
sys	0m0.008s





System 2: i5-5300U 2.30GHz, 8GB RAM, 256GB Crucial MX300 SSD, Ubuntu 18.04
qemu-arm version 2.11.1(Debian 1:2.11+dfsg-1ubuntu4)
proot 5.1.0

al@al-thinkpad:~/rpi-ramdisk/raspbian$ proot -0 -q qemu-arm-static -w / -r root/ /bin/bash
root@al-thinkpad:/# cd /usr/share/doc
root@al-thinkpad:/usr/share/doc# time grep -R hello
dash/copyright:Debian GNU/Linux hello source package as the file COPYING.  If not,

real	0m24.176s
user	0m0.366s
sys	0m11.352s

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: qemu (not installed)
ProcVersionSignature: Ubuntu 4.15.0-12.13-generic 4.15.7
Uname: Linux 4.15.0-12-generic x86_64
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
Date: Mon Mar 19 07:13:25 2018
InstallationDate: Installed on 2018-03-18 (0 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180318)
SourcePackage: qemu
UpgradeStatus: No upgrade log present (probably fresh install)