From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 8D127641BA for ; Sat, 18 Jul 2020 15:03:15 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 78A702235E for ; Sat, 18 Jul 2020 15:02:45 +0200 (CEST) Received: from mout.web.de (mout.web.de [212.227.17.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id A379E22351 for ; Sat, 18 Jul 2020 15:02:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1595077350; bh=6ctLvxWaFjAjZTy4PgUkz70Sa0U7f5bOEJ+iE/Wnyu4=; h=X-UI-Sender-Class:Subject:From:To:References:Date:In-Reply-To; b=qHaoJELjD2N/prpuZa0GS1tk3QPT7QQaI4JJRYuukR6cNNUMD18EiV6tENoVjVJSh DdqMyyfV29X2rhuVk5oXBHyIUT57ybWY4kBPB82tc7KScfNtKvxtOrvRSfIDIRNEEW ZWNEbox/3ElFJR5qsxhGS+8x57Y9feJe/1ZtVe5w= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from Rolands-MacBook-Pro.cybercon.de ([5.147.253.138]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MRl5x-1kPYnn20lN-00Sviq; Sat, 18 Jul 2020 15:02:30 +0200 From: Roland To: Proxmox VE user list , Atila Vasconcelos References: <4900ba10-107e-439c-9716-6e988ae7f5ef@web.de> <84b3b8ca-80f8-94d0-27c7-899743ac08e1@web.de> <79fb6f58-0d41-80da-4bfa-2cdc344a3245@web.de> Message-ID: <936489cc-8971-5e21-f25f-eafd4bb3795e@web.de> Date: Sat, 18 Jul 2020 15:02:38 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <79fb6f58-0d41-80da-4bfa-2cdc344a3245@web.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:VTqu1qMlYaxXQuzn+ibJOfub32AQa1KtuD7knAL1XNyVId7u9A3 dL1h91i/FeYTjeQ4kKjaQIADp2zB4YHtlZRJBeNc/9LABkvPYV+PXRzFiVO3B7AJFbQpxMW vyH8h3reKvn64mjQQQObAlE8Tq4dMRvsQZULBpaJmXn8QCPs0hr94HEwddsqC4n/neRdC// QHG16Ifdrl8KdkYk6JrGw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:fr5GSfzNTgc=:QJQrVOc4u1dTNQIwcKwlbw fSwuR7QnyIgRNp3cbtzeCKfX0NZCX224aSEiStUc1oIeajmeo/tC6lMKJppEZIolaCOiJ/Z7A gzYTZ4aYw/i6xfkscoZa7Y5KsnypfXcWjsnyTTC4UbqoCk7v/5621F7rkbqxQB4hiVGYGQZKv 2k4v4NlE82gkW3nSBZmZ6sdTUKh96s87U6AbocaB3exNUVhE6BeLoaoD5rCRRVVLShe4kOGHL cru8XM9ugWjYyq+pMo+ZCKzn/PNooOIT1pxWMjV7+UNuIdmjLIHGOAArQu+rgLQHClZN/UtNn P6Pyy6Nid9/4fp565DVZKdfo0NXjVRFPQMKRvJhIqFxkVY9fp2rZIqGHPvUzxxbd+2yevAswK OSAkx1RlG5Y1RY5nOfTAlLIwI1YT0pqyVaqjHHWVUyioTz0xC2Q27FvOdvQ3bj275L8oiXWgr hq5qO6T/WWW6W76x2qxYGvvw0QVdsYIIEc9DxSDeTU+UuzjYHq6CIvwXnTx9VleQUAsmPRH54 5HT+t9mJlQ40eJhS3VvenOKAipHX20+mEmutXRicFnD+GkvK024YX5diYfunJ+urTEDdXetQ8 GyNB6A/XTRWdoMpSCcSobin/65TO++KTgVpT69DzBovUKVLlUyZ81wSrLr/+iK/e+McuRkpDj SBXaTDodaMjzlDK1FZTpwEAYqNYx0eyrPyabQVmDoi6Qz9H9IJ86nxZNq6It3KyUo+3/DxxBi ZxLRvimYtjx47UrPcNtTafVw43RjnBo8xfjDBDxeDAqtJbH7bHJ6XwzCW+FwIRl5FkWDZQ2Zg xmsFvA2RsdVZX5TcHkcV7U9mXQYB9Rs9XhhwNEWF4p2PZOduBNalK0z53/4BYaLp53cPcs6zc Vlk4FIEExUffkaUcEdjvOKYvubhR26a8VQDxaXOXIgBfWFrTVSJkwzO0v9Tv9baxELaUc5zAx 76husUVRx345EjLwlkVmPvaIatPj2SI04tr1/a+dF1Qz6/H6b1Uarthdwoj6zEWIymfWRlqoy xhAhzkx+BTsxpWd++9tofY9q52w4M6t0+5QdSJz9Vqf5x1wmvyI1bth+S7KCE2IJFficUJuuO snZGHHcC0qVZzuX/LIoWBn/UFV/uTBv0txqo3Gwu3wp6JzGJkDNZt0h+ReWUeXEmCvYJv9E1X h5psI3s4ZrvsTxwX7FIkLgt9FoLibnmgKSSz0bOE6UdH4MvoLgU4DvojZqpPs76ReN3yplebo TLtxq4vSPJyF+qtWw X-SPAM-LEVEL: Spam detection results: 0 AWL -0.334 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider KAM_ASCII_DIVIDERS 0.8 Spam that uses ascii formatting tricks NICE_REPLY_A -0.001 Looks like a legit reply (A) RCVD_IN_DNSWL_LOW -0.7 Sender listed at https://www.dnswl.org/, low trust RCVD_IN_MSPIKE_H3 0.001 Good reputation (+3) RCVD_IN_MSPIKE_WL 0.001 Mailspike good senders SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com, gnu.org] Subject: Re: [PVE-User] linux idle cpu overhead in kvm - old issue, but still there in 2020... X-BeenThere: pve-user@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jul 2020 13:03:15 -0000 apparently, this issue will get fixed upstream (in systemd package): https://github.com/systemd/systemd/pull/353#issuecomment-658810289 https://github.com/systemd/systemd/pull/16476 roland Am 15.07.20 um 19:18 schrieb Roland: > > >if i change VMs machine type from i440fx(default) to q35 the problem > >goes away. > > > >the same applies when running "powertop --auto-tune" inside the guest > >(with i440fx type - enable autosuspend for usb-controller + tablet > device). > > third option (for VMs without gui): > > set "use tablet for pointer " to "No" in VM's options > > https://forum.proxmox.com/threads/high-cpu-usage-of-usb-tablet-device-in= -debian.45307/ > > https://forum.proxmox.com/threads/use-tablet-for-pointer-option-causing-= cpu-usage-on-linux.54084/ > > roland > > > Am 14.07.20 um 19:16 schrieb Roland: >> nice :) >> >> what guest OS do you use and which showed the problem ? >> >> as i think that q35 will not be default in kvm or proxmox anytime >> soon, shouldn't we perhaps file a bug report for every distro affected = ? >> >> is there someone who likes to work with this (help testing, >> writing/tracking bug reports...) ? >> >> could perhaps save some tons of CO2 .... >> >> roland >> >> >> Am 14.07.20 um 18:05 schrieb Atila Vasconcelos: >>> Wow, I just tried this at my servers (very old Dell PowerEdge 2950); >>> >>> The results are impressive! >>> >>> 8o >>> >>> >>> ABV >>> >>> >>> On 2020-07-13 3:15 a.m., Roland wrote: >>>> hello, >>>> >>>> i have found that there is an old bug still around in linux, which is >>>> causing quite an amount of unnecessary cpu consumption in kvm/proxmox= , >>>> and thus, wasting precious power. >>>> >>>> i run some proxmox installations on older systems and on those, it's >>>> quite significant difference. >>>> >>>> on the slowest system, a single debian 10 VM , kvm process is at >>>> 20% cpu >>>> (VM is 100% idle) when this issue is present. >>>> >>>> if i change VMs machine type from i440fx(default) to q35 the problem >>>> goes away. >>>> >>>> the same applies when running "powertop --auto-tune" inside the guest >>>> (with i440fx type - enable autosuspend for usb-controller + tablet >>>> device). >>>> >>>> on some L5630 machine, in proxmox summary i see "CPU usage" drop from >>>> 10% to <1%. >>>> >>>> see: >>>> https://bugzilla.redhat.com/show_bug.cgi?id=3D478317 >>>> https://bugzilla.redhat.com/show_bug.cgi?id=3D949547 >>>> >>>> i guess this information could make a difference for people who run a >>>> large amount of virtual machines or use older systems/cpu's. >>>> >>>> on most recent cpu's, i think the difference is not that big. >>>> >>>> anyway, i really wonder how linux bugs have such great survival >>>> capability.... >>>> >>>> regards >>>> roland >>>> >>>> more references: >>>> https://lists.gnu.org/archive/html/qemu-devel/2010-04/msg00149.html >>>> https://www.redhat.com/archives/vfio-users/2015-November/msg00159.htm= l >>>> >>>> >>>> _______________________________________________ >>>> pve-user mailing list >>>> pve-user@lists.proxmox.com >>>> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user >>>> >>> >>> _______________________________________________ >>> pve-user mailing list >>> pve-user@lists.proxmox.com >>> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user >>>