Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3744890ybl; Mon, 27 Jan 2020 09:34:46 -0800 (PST) X-Google-Smtp-Source: APXvYqwRIossRs1mZ6i74DppUr4/swbgrgnJjHN4ZgJ7NjvqbkMx+a74fR1ZWRQBTSqQAYd+LKq0 X-Received: by 2002:a9d:53c4:: with SMTP id i4mr14103874oth.48.1580146486309; Mon, 27 Jan 2020 09:34:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580146486; cv=none; d=google.com; s=arc-20160816; b=PY8eYPbAlAHcaJOqLMMdRNoZLSSBjM0jAROM1DLaGMOpnW51M6apSoGAqHE9PE+q7j HGYVOuL6zqlW5MjI1qAE1FVGcB+vU46oUfwPoii0clI4ZofpytbenFgDS9obmlv8Jd0X oZrlVMChqvpNrU6t7TcKtK0vYEQbWnlf13asUtnHfgC7U2fzVWUZv+vOsE2QTvVMR2rn AC/7zbO/YOB+SM5QzlbI87lRTMoxmuwFmgasOT/6ocjdZvINzIcp+gY2YNY8J5nhT2mD +ogQ3BXpCbv6+TgpUNPuojy05PtFI1bS/xFtjKYwkKbiF3IiQVsDz1L4B1mfCtC/ehCY eZig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=rc5Wy+SkIYCa92LMnMQngyPu1fX6PSqZLq9Jqeaq8gc=; b=Lm7bO0hnc6C50IoTMIYXEj5tivfYga1akCF7sroCsWKyVSAeY9GqLCv7psXQR5QDOc twqAUeBluVsHyvaw0xbwEIdZh86VOaPlatYp1G8c9NEl3UIun5xPiwGixXk2XPVWqQBf 0Bv3grgCp5T/3NUI6BFA70u8a9NTbNIyTutU1z0qdFAMuTTaWW9xgoR3+vA9MZ3JsE8l NgR4IIttQ+BCnE5OsZGjfr9FnalFmLhxCO0GuLa8r7ZBGDWbC9WgqUpgk1ECAGaaiAAB AVBgPpsOSgZZQgsXcWLIbzBoH3f4Me9cdNl4l+/Lz6wux7Ym1IcsdGFA5zhJyFhZTkT9 3oZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si3965230oic.62.2020.01.27.09.34.34; Mon, 27 Jan 2020 09:34:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726036AbgA0Rdk (ORCPT + 99 others); Mon, 27 Jan 2020 12:33:40 -0500 Received: from mx2.suse.de ([195.135.220.15]:34674 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbgA0Rdk (ORCPT ); Mon, 27 Jan 2020 12:33:40 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 50032AC53; Mon, 27 Jan 2020 17:33:38 +0000 (UTC) Date: Mon, 27 Jan 2020 18:33:36 +0100 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Andrew Morton , Christopher Lameter Cc: Michal Hocko , Christopher Lameter , LKML , linux-mm@kvack.org Subject: Re: SLUB: purpose of sysfs events on cache creation/removal Message-ID: <20200127173336.GB17425@blackbody.suse.cz> References: <20191204153225.GM25242@dhcp22.suse.cz> <20191204173224.GN25242@dhcp22.suse.cz> <20200106115733.GH12699@dhcp22.suse.cz> <20200109145236.GS4951@dhcp22.suse.cz> <20200109114415.cf01bd3ad30c5c4aec981653@linux-foundation.org> <20200117171331.GA17179@blackbody.suse.cz> <20200118161528.94dc18c074aeaa384200486b@linux-foundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XF85m9dhOBO43t/C" Content-Disposition: inline In-Reply-To: <20200118161528.94dc18c074aeaa384200486b@linux-foundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --XF85m9dhOBO43t/C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Jan 18, 2020 at 04:15:28PM -0800, Andrew Morton wrote: > > situations, the udev events seem to cause useless tickling of udevd. > > [...] > > and I drew the following ballpark conclusion: > > 1.7% CPU time at 1 event/s -> 60 event/s 100% cpu > Thanks. What effect does this patch have upon these numbers? When I rerun the script with patched kernel, udev sit mostly idle (there were no other udev event sources). So the number can be said to drop to 0% CPU time / event/s. > Typically the author, but not always. If someone else is particularly > motivated to get a patch merged up they can take it over. Christopher, do you consider resending your patch? (I second that it exposes the internal details (wrt cgroup caches) and I can observe the just reading the events by udevd wastes CPU time.) Thanks, Michal --XF85m9dhOBO43t/C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAl4vHuoACgkQia1+riC5 qSglHw/+OsFYcoJy3FzkbfwtOd2tJfVaDTpasyXswReAFnBRnJmkYbcuaZbFBn6e C98PumV6RYN+Etv7n1RTqxcgj6QCki4kMqNYD758IJqIExsXue9ftCTfwF9iG3CQ DUgppdSbCXdE04oprliEQs7EhY+d6X/Ln5ENZaNTVgXXOjVcAvH5vaiRFfMFyhno +0CsE77seYzs2LjgaS4zcb5FhjhOd3QJ7E0ZdKadnsRpLQ7NqqEsItAOiWBPoqXU 118kbFzjjf84nA7IyH+G34K0XSslmBUzOb3wkjSpTOd6ZuQ3FhPw3Q705PRHrYKM rY8qet8C9/hfHs9Qq/Io/RwZv+2M3J7+DN4o/F4lyZgRb1FNaixZMe4lbGGr6TT3 c9ck2izlt42kT9MqMnHov7qvhI9nkERaCbJ+Xv7BPRRtF/aMH2KYiSucXHRjQh8L 45YOPArLRLzbPYcq/KmDYbCT36yFWrfphOk8iTu2XjjcdXvpcZauAAGJVOyUxDK7 0KL4C9AkkQEhrVs8AI5u6u08jeajbu71R7zopg+2CI34qGco4d63v7hLKxO8CopS N0VUmr+zv6VfPbeGPMPJfsTuZmE6g+14CbKl1DWSdNshlohuyyws5DjruNYEGKvF 59XBuK0JzZ0txSzj5srtLUBtzUwOGdaNS5dJqRXIryV1UpeYPaM= =CZSY -----END PGP SIGNATURE----- --XF85m9dhOBO43t/C--