Noble SRU verification

[Notes]
Host vm.max_map_count was left at the default of 1048576

After `make -C b/qemu/ check-block`, run `make -C b/qemu check-qtest` to
build the `qtest` accelerator. All failures are expected per the [Test
plan].

Step 3 `fio` commands were modified, see below:
vdb: while true; do sudo fio --name=main_thread --ioengine=io_uring --direct=1 
--runtime=10 --time_based=1 --rw=randread --bs=4k --iodepth=128 --numjobs=256 
--group_reporting --filename=/dev/vdb; done
sr0: while true; do sudo fio --name=vcpu_threads --filename=/dev/sr0 
--ioengine=libaio --direct=1 --rw=read --bs=4k   --size=1M --runtime=10 
--time_based=1 --numjobs=4; done


[Step 1]
```
/home/ubuntu/a/qemu-8.2.2+ds/b/qemu/pyvenv/bin/meson test  --no-rebuild -t 0  
--num-processes 12 --print-errorlogs  --suite block
  1/132 qemu:block / io-qcow2-012                                   OK          
    0.59s   1 subtests passed
...
 78/132 qemu:block / io-qcow2-156                                   OK          
    1.81s   1 subtests passed
 79/132 qemu:block / io-qcow2-172                                   SKIP        
    0.34s   0 subtests passed
 80/132 qemu:block / io-qcow2-170                                   OK          
    1.42s   1 subtests passed
 81/132 qemu:block / io-qcow2-174                                   OK          
    0.42s   1 subtests passed
 82/132 qemu:block / io-qcow2-158                                   OK          
    1.88s   1 subtests passed
 83/132 qemu:block / io-qcow2-184                                   OK          
    0.78s   1 subtests passed
 84/132 qemu:block / io-qcow2-181                                   SKIP        
    0.89s   0 subtests passed
 85/132 qemu:block / io-qcow2-161                                   OK          
    2.71s   1 subtests passed
 86/132 qemu:block / io-qcow2-186                                   SKIP        
    0.41s   0 subtests passed
 87/132 qemu:block / io-qcow2-187                                   OK          
    0.57s   1 subtests passed
 88/132 qemu:block / io-qcow2-179                                   OK          
    1.58s   1 subtests passed
 89/132 qemu:block / io-qcow2-192                                   SKIP        
    0.31s   0 subtests passed
 90/132 qemu:block / io-qcow2-177                                   OK          
    2.31s   1 subtests passed
 91/132 qemu:block / io-qcow2-195                                   OK          
    0.80s   1 subtests passed
 92/132 qemu:block / io-qcow2-203                                   OK          
    0.82s   1 subtests passed
 93/132 qemu:block / io-qcow2-220                                   SKIP        
    0.31s   0 subtests passed
 94/132 qemu:block / io-qcow2-217                                   OK          
    0.57s   1 subtests passed
 95/132 qemu:block / io-qcow2-226                                   OK          
    0.41s   1 subtests passed
 96/132 qemu:block / io-qcow2-214                                   OK          
    1.48s   1 subtests passed
 97/132 qemu:block / io-qcow2-229                                   OK          
    0.90s   1 subtests passed
 98/132 qemu:block / io-qcow2-249                                   OK          
    1.04s   1 subtests passed
 99/132 qemu:block / io-qcow2-252                                   OK          
    0.75s   1 subtests passed
100/132 qemu:block / io-qcow2-108                                   OK          
   11.55s   1 subtests passed
101/132 qemu:block / io-qcow2-244                                   OK          
    2.78s   1 subtests passed
102/132 qemu:block / io-qcow2-154                                   OK          
    8.46s   1 subtests passed
103/132 qemu:block / io-qcow2-256                                   OK          
    1.17s   1 subtests passed
104/132 qemu:block / io-qcow2-190                                   OK          
    5.54s   1 subtests passed
105/132 qemu:block / io-qcow2-268                                   OK          
    0.43s   1 subtests passed
106/132 qemu:block / io-qcow2-265                                   OK          
    1.14s   1 subtests passed
107/132 qemu:block / io-qcow2-251                                   OK          
    3.22s   1 subtests passed
108/132 qemu:block / io-qcow2-176                                   OK          
    7.81s   1 subtests passed
109/132 qemu:block / io-qcow2-292                                   OK          
    0.70s   1 subtests passed
110/132 qemu:block / io-qcow2-290                                   OK          
    1.15s   1 subtests passed
111/132 qemu:block / io-qcow2-299                                   OK          
    0.71s   1 subtests passed
112/132 qemu:block / io-qcow2-283                                   OK          
    1.94s   1 subtests passed
113/132 qemu:block / io-qcow2-313                                   OK          
    0.86s   1 subtests passed
114/132 qemu:block / io-qcow2-287                                   OK          
    2.11s   1 subtests passed
115/132 qemu:block / io-qcow2-detect-zeroes-registered-buf          OK          
    0.45s   1 subtests passed
116/132 qemu:block / io-qcow2-iothreads-resize                      OK          
    0.62s   1 subtests passed
117/132 qemu:block / io-qcow2-iothreads-commit-active               OK          
    1.20s   1 subtests passed
118/132 qemu:block / io-qcow2-nbd-multiconn                         SKIP        
    0.53s   0 subtests passed
119/132 qemu:block / io-qcow2-iothreads-stream                      OK          
    1.28s   1 subtests passed
120/132 qemu:block / io-qcow2-267                                   OK          
    4.23s   1 subtests passed
121/132 qemu:block / io-qcow2-nbd-qemu-allocation                   OK          
    0.64s   1 subtests passed
122/132 qemu:block / io-qcow2-040                                   OK          
   21.97s   1 subtests passed
123/132 qemu:block / io-qcow2-qsd-jobs                              OK          
    0.54s   1 subtests passed
124/132 qemu:block / io-qcow2-regression-vhdx-log                   OK          
    0.49s   1 subtests passed
125/132 qemu:block / io-qcow2-copy-before-write                     OK          
    5.15s   1 subtests passed
126/132 qemu:block / io-qcow2-qemu-img-close-errors                 OK          
    3.46s   1 subtests passed
127/132 qemu:block / io-qcow2-314                                   OK          
    5.71s   1 subtests passed
128/132 qemu:block / io-qcow2-191                                   OK          
   19.62s   1 subtests passed
129/132 qemu:block / io-qcow2-271                                   OK          
   23.50s   1 subtests passed
130/132 qemu:block / io-qcow2-041                                   OK          
   47.45s   1 subtests passed
131/132 qemu:block / io-qcow2-080                                   OK          
   46.59s   1 subtests passed
132/132 qemu:block / io-qcow2-159                                   OK          
   64.39s   1 subtests passed

Ok:                 126 
Expected Fail:      0   
Fail:               0   
Unexpected Pass:    0   
Skipped:            6   
Timeout:            0   

Full log written to /home/ubuntu/a/qemu-8.2.2+ds/b/qemu/meson-logs/testlog.txt
make: Leaving directory '/home/ubuntu/a/qemu-8.2.2+ds/b/qemu'
ubuntu@noble-vm:~/a/qemu-8.2.2+ds$ 
- - - -
ubuntu@noble-vm:~/a/qemu-8.2.2+ds$ b/qemu/tests/qemu-iotests/check -qcow2 -j 12
QEMU          -- "/home/ubuntu/a/qemu-8.2.2+ds/b/qemu/qemu-system-x86_64" 
-nodefaults -display none -accel qtest
QEMU_IMG      -- "/home/ubuntu/a/qemu-8.2.2+ds/b/qemu/qemu-img" 
QEMU_IO       -- "/home/ubuntu/a/qemu-8.2.2+ds/b/qemu/qemu-io" --cache 
writeback --aio threads -f qcow2
QEMU_NBD      -- "/home/ubuntu/a/qemu-8.2.2+ds/b/qemu/qemu-nbd" 
IMGFMT        -- qcow2
IMGPROTO      -- file
PLATFORM      -- Linux/x86_64 noble-vm 6.8.0-151-generic
TEST_DIR      -- /home/ubuntu/a/qemu-8.2.2+ds/scratch
SOCK_DIR      -- /tmp/qemu-iotests-34g2bupu
GDB_OPTIONS   -- 
VALGRIND_QEMU -- 
PRINT_QEMU_OUTPUT -- 
...
-OK
+FAILED (errors=4)
Not run: 045 059 064 070 075 076 077 078 081 083 084 088 092 093 094 101 106 
109 113 116 118 119 123 128 131 135 136 146 147 148 149 160 171 172 173 175 181 
186 192 197 201 205 207 210 211 212 213 215 220 221 225 231 233 237 239 241 253 
259 266 282 288 294 296 301 block-status-cache fuse-allow-other iov-padding 
migration-permissions mirror-top-perms nbd-multiconn parallels-checks 
parallels-read-bitmap zoned
Some cases not run in: /home/ubuntu/a/qemu-8.2.2+ds/tests/qemu-iotests/297
Failures: 281 307 graph-changes-while-io
Failed 3 of 254 iotests
ubuntu@noble-vm:~/a/qemu-8.2.2+ds$ 
```

[Step 2]
Successfully ran by Hector; see comment #40.

[Step 3]
Unpatched package after 30 mins of reproducer:
```
ubuntu@noble-vm:~/a$ apt-cache policy qemu-system-common
qemu-system-common:
  Installed: 1:8.2.2+ds-0ubuntu1.18
  Candidate: 1:8.2.2+ds-0ubuntu1.18
  Version table:
     1:8.2.2+ds-0ubuntu1.20 100
        100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
 *** 1:8.2.2+ds-0ubuntu1.18 500
        500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:8.2.2+ds-0ubuntu1.16 500
        500 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages
     1:8.2.2+ds-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
ubuntu@noble-vm:~/a$ sudo grep -c '' /proc/$(pidof qemu-system-x86_64)/maps
75109
```

Patched package after 30 mins of reproducer:
```
ubuntu@noble-vm:~/a$ apt-cache policy qemu-system-common
qemu-system-common:
  Installed: 1:8.2.2+ds-0ubuntu1.20
  Candidate: 1:8.2.2+ds-0ubuntu1.20
  Version table:
 *** 1:8.2.2+ds-0ubuntu1.20 100
        100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     1:8.2.2+ds-0ubuntu1.18 500
        500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
     1:8.2.2+ds-0ubuntu1.16 500
        500 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages
     1:8.2.2+ds-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
ubuntu@noble-vm:~/a$ sudo grep -c '' /proc/$(pidof qemu-system-x86_64)/maps
11524
```

[Step 4]
Obtain scripts:
```
wget https://launchpadlibrarian.net/879991089/fio.sh
wget https://launchpadlibrarian.net/879991338/process-fio-output.py
```

Run fio script and store output:
On old QEMU version
```
sudo ./fio.sh
sudo chown --recursive ubuntu:ubuntu results
mkdir -p fio-output/old-1
mv results/* fio-output/old-1

On new QEMU version
```
sudo ./fio.sh
sudo chown --recursive ubuntu:ubuntu results
mkdir -p fio-output/new-1
mv results/* fio-output/new-1
```

Process output:
```
python3 process-fio-output.py
```

Result:
```
ubuntu@ubuntu:~/a$ python3 process-fio-output.py 
randread 4k 1 4142 4125 -0.4%
randread 4k 8 5599 5460 -2.5%
randread 4k 16 6341 6396 +0.9%
randread 4k 32 7594 6340 -16.5%
randread 4k 64 6504 6225 -4.3%
randread 128k 1 2877 3720 +29.3%
randread 128k 8 3753 3624 -3.4%
randread 128k 16 4265 3804 -10.8%
randread 128k 32 4073 4508 +10.7%
randread 128k 64 4131 4142 +0.3%
```

[Step 5]
```
ubuntu@noble-vm:~/a$ sudo apt install -t noble-proposed qemu-system-common 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  acl alsa-topology-conf alsa-ucm-conf libasound2-data libasound2t64 
libbrlapi0.8 libcacard0 libnspr4 libnss3 libpcsclite1 libpixman-1-0 liburing2 
libusb-1.0-0 libusbredirparser1t64
  libvirt-daemon-driver-qemu libvirt-l10n libvirt0
Suggested packages:
  alsa-utils libasound2-plugins pcscd passt
The following NEW packages will be installed:
  acl alsa-topology-conf alsa-ucm-conf libasound2-data libasound2t64 
libbrlapi0.8 libcacard0 libnspr4 libnss3 libpcsclite1 libpixman-1-0 liburing2 
libusb-1.0-0 libusbredirparser1t64
  qemu-system-common
The following packages will be upgraded:
  libvirt-daemon-driver-qemu libvirt-l10n libvirt0
3 upgraded, 15 newly installed, 0 to remove and 12 not upgraded.
Need to get 6,399 kB of archives.
After this operation, 16.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu noble/main amd64 libusb-1.0-0 amd64 
2:1.0.27-1 [54.0 kB]
...
Setting up libcacard0:amd64 (1:2.8.0-3build4)…
Setting up libvirt-l10n (10.0.0-2ubuntu8.20)…
Setting up libvirt-daemon-driver-qemu (10.0.0-2ubuntu8.20)…
Setting up qemu-system-common (1:8.2.2+ds-0ubuntu1.20)…
Created symlink /etc/systemd/system/multi-user.target.wants/qemu-kvm.service → 
/usr/lib/systemd/system/qemu-kvm.service.
Processing triggers for libc-bin (2.39-0ubuntu8.12)…
ubuntu@noble-vm:~/a$ apt-cache policy libvirt0
libvirt0:
  Installed: 10.0.0-2ubuntu8.20
  Candidate: 10.0.0-2ubuntu8.20
  Version table:
 *** 10.0.0-2ubuntu8.20 100
        100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     10.0.0-2ubuntu8.19 500
        500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages
     10.0.0-2ubuntu8 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
```


** Tags removed: verification-needed-noble
** Tags added: verification-done-noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2168803

Title:
  QEMU 8.2.2 guests crash by exhausting vm.max_map_count with coroutines

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2168803/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to