Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp3300848rdb; Thu, 7 Sep 2023 10:19:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGvPXhHe4C8NhL1R9DF6UMa+vhh+lUYFCjNw5Mdm171Sdu/aTgxyfZcWvhQ7Ts9qoEmNYl X-Received: by 2002:a05:6a00:1a41:b0:68b:4e07:133f with SMTP id h1-20020a056a001a4100b0068b4e07133fmr33030pfv.7.1694107192083; Thu, 07 Sep 2023 10:19:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694107192; cv=none; d=google.com; s=arc-20160816; b=JQl4AZwZKLHKfP8ba3nEcsa2AvhsDBXt6PF3uME7McgeX5uLH26lmRpORXW2LczHi4 he8OO8Tbl4g99S/vOXeD53M/fggJjAOxPb8puBuLy/BWrkMceZ8OEhB4FoDeGOClE9OI uHV9g4u8/SAN6sOxqldsdKF7Ik/M9KiADF0FYRJoOmqjHq9CBrNJHAzk8Eok91N8hx/t ykuzBoQ3E3Z+X2aP5iMDDnrXFdMlUbUbrRtFwLX1Lz+2OTya5E8VAO7Eyb8L/nIEtQHl cvKYVp3/fIOd0Oi/Ijbj2xtxYAZhYg+HtRln9+mmerEv/VR5lNfo052kvqXWrWn1Mdeb oWuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=6ltXk9sBA0wcqc8xmj0wbZxaMN+wXJLb/uOZm7dNAuk=; fh=3JQm257gCZqlI3SBUCR/bu7R83GA1MxPqRXQivZUvlc=; b=xKkRRghPIzQhr8CvmRAX0NNz77cpBVIg0K8YN3zoTRpMh1WDLYkWNvG72ftpeYJHwy Ck5wupewA+HfrfWDoe4QOD07yhsYl3Tz0AyUOZ4UL57zWzt+PcUF3Gk2w9izlzb98rT5 vGqbg8k/wUE4VzE/BMPOD8Pkl6gyeZjNLHsHH6BuYsf8s0JUp/MNpwMSHiOWTRRronvv bQMc03ZC+k6dkj3bwXttOS69GfBaNIi5JFTlKYQttiYhwg7u8P0g/6DnyfIAE+vdyO1x BYZCRIS/mHaM3Pq6+J8JPso8ZmIs/c6Hyt5YftMFGGFy+eC6Ukm9CG9gYBuoSJCKZ94v aVAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x14-20020a056a00188e00b0068aca5175f7si14012380pfh.255.2023.09.07.10.19.38; Thu, 07 Sep 2023 10:19:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238842AbjIGPwu (ORCPT + 99 others); Thu, 7 Sep 2023 11:52:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243127AbjIGPuY (ORCPT ); Thu, 7 Sep 2023 11:50:24 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9FF5855B4; Thu, 7 Sep 2023 08:40:48 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 0CB9880F9; Thu, 7 Sep 2023 10:51:52 +0000 (UTC) Date: Thu, 7 Sep 2023 13:51:50 +0300 From: Tony Lindgren To: Marc Haber Cc: Sean Christopherson , Bagas Sanjaya , linux-kernel@vger.kernel.org, Linux Regressions , Linux KVM , Paolo Bonzini Subject: Re: Linux 6.5 speed regression, boot VERY slow with anything systemd related Message-ID: <20230907105150.GJ11676@atomide.com> References: <20230901122431.GU11676@atomide.com> <20230906152107.GD11676@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Marc Haber [230907 10:14]: > The most basic reproducer I found is: > > /usr/bin/qemu-system-x86_64 \ > -m 768 \ > -machine pc-i440fx-2.1,accel=kvm,usb=off,dump-guest-core=off \ > -nodefaults \ > -drive file=/dev/prom/lasso2,format=raw,if=none,id=drive-virtio-disk0,cache=none,discard=unmap,aio=native \ > -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x3,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1,write-cache=on \ > -serial stdio So I tried something similar with just kernel and ramdisk: qemu-system-x86_64 \ -m 768 \ -machine pc-i440fx-2.1,accel=kvm,usb=off,dump-guest-core=off \ -nodefaults \ -kernel ~/bzImage \ -initrd ~/ramdisk.img \ -serial stdio \ -append "console=ttyS0 debug" It boots just fine for me. Console seems to come up a bit faster if I leave out the machine option. I tried this with qemu 8.0.3 on a m1 laptop running linux in case the machine running the qemu host might make some difference.. On dmesg I see 8250 come up: [ 0.671877] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.680185] 00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A > Simplifying the drive and device virtio-blk-pci lines prevents the > initramfs of the VM from finding the disk and thus the system doesn't > get as far to show the issue. > > If you want to see it work, add > -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pci.0,addr=0x2 \ > -vnc :1 > point a vncviewer to port 5901, remove the "serial=ttyS0" configuration > and see the system run normally. > > What else can I do? Still a minimal reproducable test case is needed.. Or do you have the dmesg output of the failing boot? Regards, Tony