From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E8DBC433DF for ; Sat, 4 Jul 2020 08:10:15 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2780A207D4 for ; Sat, 4 Jul 2020 08:10:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2780A207D4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1jrdFB-0000y5-IN; Sat, 04 Jul 2020 04:09:53 -0400 Received: from omr2.cc.ipv6.vt.edu ([2607:b400:92:8400:0:33:fb76:806e] helo=omr2.cc.vt.edu) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1jrdF8-0000y0-Pt for Kernelnewbies@kernelnewbies.org; Sat, 04 Jul 2020 04:09:50 -0400 Received: from mr3.cc.vt.edu (mr3.cc.vt.edu [IPv6:2607:b400:92:8500:0:7f:b804:6b0a]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id 06489o53008127 for ; Sat, 4 Jul 2020 04:09:50 -0400 Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mr3.cc.vt.edu (8.14.7/8.14.7) with ESMTP id 06489iup009842 for ; Sat, 4 Jul 2020 04:09:50 -0400 Received: by mail-qt1-f197.google.com with SMTP id 71so15540628qte.5 for ; Sat, 04 Jul 2020 01:09:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=yIlyVkWU1titUM0DIwZ4H8KDTq5i+yCPoMVzuLpfbFc=; b=f3qGYdByVxKl31CAjh51rTg4xA4r4+pZDuaMrro0c7t1wUWzydYpYCILIdkG+OyXdv YrmSdP8+eKKhUyC/7iOnrseTZHPtCzxNO71PN6MKOBrrLyjc1jIZXQJwNCTDFuEzQsbO FgQ1vr0eDLzWCJKbxrdNM7rp2zK4KlZOIOabfTPWvsY0eckRET11Zg9akFKY1YIIvcUp obV/TLz7nK/MzCnqcjfEVzRlHgScc7qgVWA1rhBIKBUQKBt/DJ5zS7mh0l12bXkM6TCL 0TVxY6uPdfZLnuQRcLYSYClMxh1Aa957YQ/+gpZANWP+XJNuSs+Dyhy64vbJuV91SRYf RkPA== X-Gm-Message-State: AOAM530kwUs4HSY2e0kzTUjX7KrNrGGn+8oCIKqeKhKqzQsHYw6cu72Q GfzO2scZnqw6+v+RvQBNQY3Wkb9aG8MIY6Fl/W1gwF2Kf+eBl+yCwZokVhcdl4Mdm444awqLCSQ RDa209ABMocgGTNlbLv08fsjo5NMwYMZKbR3iCsA= X-Received: by 2002:ad4:4812:: with SMTP id g18mr37518072qvy.56.1593850184544; Sat, 04 Jul 2020 01:09:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxyc0SoT8PBbVi8Scj6JSdvrEzcpGm6cyMSclhdjeGwsTYekA9qqR792rQxgwnIgzv3KphbQ== X-Received: by 2002:ad4:4812:: with SMTP id g18mr37518061qvy.56.1593850184255; Sat, 04 Jul 2020 01:09:44 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:c9e1::359]) by smtp.gmail.com with UTF8SMTPSA id x26sm12506710qtr.4.2020.07.04.01.09.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jul 2020 01:09:42 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: 孙世龙 sunshilong Subject: Re: How can I investigate the cause of "watchdog: BUG: soft lockup"? In-Reply-To: References: <36373.1593837553@turing-police> Mime-Version: 1.0 Date: Sat, 04 Jul 2020 04:09:41 -0400 Message-ID: <44849.1593850181@turing-police> Cc: kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3022283391984810023==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============3022283391984810023== Content-Type: multipart/signed; boundary="==_Exmh_1593850181_13204P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1593850181_13204P Content-Type: text/plain; charset=us-ascii > Can I draw the conclusion that continually acquiring the spinlock causes the soft > lockup and the CPU has been stuck for 22s? > Can I think in this way? No. It's been stuck for 22s *TRYING* and *FAILING* to get the spinlock. For comparison - spinlocks are usually used when you need a lock, but the code protected by the lock is short (things like adding to a linked list, etc), so it should again become available in milliseconds - things where it would take longer to put this thread to sleep and wake another one up than we expect to be waiting for this lock. --==_Exmh_1593850181_13204P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXwA5RQdmEQWDXROgAQJ3PA//SvmtSwZAtZ8p2mXmS2GZHFsoJ5+gLJtB 0RYNouEHd83oXX2NDPXw9DaUuaXb+XEIrSK0/CKMSpYfNi45tXj7aU9L+MkVH02g KMGTuneMKvqoUcQf2hadJQ1y1bIykVUfaHByd1VhqQ8RCu6ITC0EIORfk7mhGBmz HMq/jRE7J3eQ7zMDUnB/Td3+jD38Y4u3KRYRay47+fdQwicEMH8Fx4A4qNLkNas8 xhz6IM663/pwOtNln2/6+4IauplT4Hvc+5c3XaRg/9k5K0pFP0ijD9EVxUnONZ+Q OSu0x+YkU2fGCmeqo95DAM3svHn71A8xC2P7S6nL9v8SrM2OiwK7EMYHkAQukHQe jWT0StnxP95CgTYX0fsp4QMhXU4pBKpLXZmHEr1mgDpF1LJ2opCwCypuDd6Ntx7j a5x0Zbkg7t7s3IAY1j3W88kdAw4zgt/Mhs3eSFPs/q+ONF5Zyr8mmoDkRMxa9UlA J6RJw806H+lrRuIqULNbqJJO/hkOo4OsnrVyy1u/yuMRho6JBoYhONKxg23Ts2rm ApmYxdIgDsTcO9YfxFy46t+nso8hzkSelzhu27foeGJnnFcZIjO29oDLjZcxkYVZ yMiGOg5jbbMh51FQRT6BjEOtklQGRBEJgf9wQYapX3AT9GM2PYPhODxSAncEaysW vpL8BekA5Co= =8fzu -----END PGP SIGNATURE----- --==_Exmh_1593850181_13204P-- --===============3022283391984810023== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============3022283391984810023==--