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=-5.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 EB313C433DB for ; Thu, 11 Mar 2021 14:10:33 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 3CA4364FA8 for ; Thu, 11 Mar 2021 14:10:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3CA4364FA8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SHwCGN0AS+FseKZGMyibt69fWyrs+kZUUzPL7N/0w1U=; b=QX9JPBbK6QuW7aYGatmrzlPkr DWtbd0F9Izo2rI3MQHK72y6bF4jJBKLOoTeVj8me16qMRfMZBeB0Qfi6idoZYS24lq89zrJDOrEvc YTKYMfi4D6bfN+i2gO+dXJ5pturDz7N24n5oPm4txeBZu9YvFJZDYxnoCqbYdyKlvH1IU8MNCZjnN WTmn4m8grCfneGRabQVSctzwOezIXfDuSSKA7pT7PQzM0y+K7hHmZDtCf/OApHuvCE/k8N5OxrZlT muysu18KrErhuMjfTylFWYovWjnEmA59xHsn6lxmrvogL69RhJDbPLfS+MZnSPPrLtz/8DRVRBHdG W4ysurhDg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lKM02-009IFq-Ui; Thu, 11 Mar 2021 14:09:15 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lKLzy-009IF9-DT for linux-arm-kernel@lists.infradead.org; Thu, 11 Mar 2021 14:09:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7G9RE8ibk8Cjh1PDLSZgsGX/C//JGwxH+7KvhCZ1rR4=; b=sM7WD1z0FbxrOzcTZN87usr2U AuBZRMLaW8mUeXCpYG1XrJO3zRNu3xiybL2RwUNTqOJmDyraIifU42EmAeWb+nHH9+nDZxXPL4xN0 EK72UCRM6cfTaalRgYTelUmtQ7y+ODdB6Unk9BRk5wNCSkjG8LOeeBtbAjB42fAvID6pslbVvE+BU kgEYaTZagcGMLg1U8PWjYuopNEdLfAPXzeGYhcUqcvkpjAd4t0f4iQOKnOetwC8w/8IoSYAa1otMK ZEVZUqr5yMdfk9QvyevH6rj3J/fvwlhGGZZ7wfdRnfoThwo30u0FkwVQo/DuK4TFAh208BGf1BW0K /CES+vM0A==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:50770) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKLzt-0005cy-LZ; Thu, 11 Mar 2021 14:09:05 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lKLzs-0001hZ-Kf; Thu, 11 Mar 2021 14:09:04 +0000 Date: Thu, 11 Mar 2021 14:09:04 +0000 From: Russell King - ARM Linux admin To: Linus Walleij Cc: Dmitry Vyukov , Arnd Bergmann , Krzysztof Kozlowski , syzkaller , kasan-dev , Hailong Liu , Linux ARM Subject: Re: Arm + KASAN + syzbot Message-ID: <20210311140904.GJ1463@shell.armlinux.org.uk> References: <20210119123659.GJ1551@shell.armlinux.org.uk> <20210119194827.GL1551@shell.armlinux.org.uk> <20210127101911.GL1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210311_140910_635228_1EAA13E4 X-CRM114-Status: GOOD ( 14.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Mar 11, 2021 at 02:55:54PM +0100, Linus Walleij wrote: > On Thu, Mar 11, 2021 at 11:54 AM Dmitry Vyukov wrote: > > The instance has KASAN disabled because Go binaries don't run on KASAN kernel: > > https://lore.kernel.org/linux-arm-kernel/CACT4Y+YdJoNTqnBSELcEbcbVsKBtJfYUc7_GSXbUQfAJN3JyRg@mail.gmail.com/ > > I am still puzzled by this, but I still have the open question about how much > memory the Go runtime really use. I am suspecting quite a lot, and the > ARM32 instance isn't on par with any contemporary server or desktop > when it comes to memory, it has ~2GB for a userspace program, after > that bad things will happen: the machine will start thrashing. I believe grafana is a Go binary - I run this in a VM with only 1G of memory and no swap along with apache. It's happy enough. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND grafana 1122 0.0 5.9 920344 60484 ? Ssl Feb18 28:31 /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini ... So, I suspect it's basically KASAN upsetting Go somehow that then causes the memory usage to spiral out of control. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel