Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9281600ybl; Fri, 17 Jan 2020 09:15:39 -0800 (PST) X-Google-Smtp-Source: APXvYqwbBWE5H3YNdvd/baGhcgDDu8ayDoUiNvGk3PH03er+qgeX2NgzuR+EYrdwuUbc9gxoqaNf X-Received: by 2002:a05:6830:155a:: with SMTP id l26mr6943717otp.339.1579281339408; Fri, 17 Jan 2020 09:15:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579281339; cv=none; d=google.com; s=arc-20160816; b=matFGCQHz7GjwM7Grkn6NrOlt9YqDjr6/vvoFohnSF3/5suelmDwORIp9f1auUF5gZ 68KYiakJHJSZRnwezch9tSGiM74Oaighu4MGJcJV+8cGF0fOIbdloWU7ehoWolANpDoT ox4fxseC0szm7RsOK5af6UUFuUcPV6qBQoAxV+Ft+Ub5TdCyaRMkaHn4Ccq8bFJPikSG 5kwxbxrAdIs7GcJA4RcxUmrZWmO/RIH86WpIZ/my0mrSjfNjdBx7TnUfYx506Mhi6dyQ lhrVjPbAulUvgoo0whXWtYZOxWTNDW3CjXdg6ceJyHh1WjGtQ2wpQTscI0kfBQLpmL3D sb1g== 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=TALyKuK+YR8YKFUz6n+okPRhcux9Szw0fr4wr0bMPk4=; b=t3GqyYI3P07ZUKT+T3a7gQbE5hxDwMdA7HpnNLVV6Zc9pu5H6TkZE26fcntiYD60R3 /zVv/Zo+waDQNsmxc9qNhp0AuNIDvBqfsue0REFPIRFsKetQS5NSXfstorK2grFAlE+2 hIB1CKgiokEeGSKX/XiszAvJMSrGhPF3bSa1Y5T5On3EKcCKdt1hcWtAfD63jV/l5hTx xClxIrJkBr/BLhQj0unD2UhMK3R9Sx1ZDKte0Rt41Cz/k9d+WCDlW/CpbMZdo6mq32cx KGXUZvV/RACf0C6+unLamjqR97+b1iXMHKZkY5DAPdOtI7cZPgBZUyJzYDQ+zFZCXdnI /J8A== 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 c21si15932374oto.176.2020.01.17.09.15.26; Fri, 17 Jan 2020 09:15:39 -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 S1729035AbgAQRNl (ORCPT + 99 others); Fri, 17 Jan 2020 12:13:41 -0500 Received: from mx2.suse.de ([195.135.220.15]:37418 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726603AbgAQRNk (ORCPT ); Fri, 17 Jan 2020 12:13: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 0C422B2A7; Fri, 17 Jan 2020 17:13:35 +0000 (UTC) Date: Fri, 17 Jan 2020 18:13:31 +0100 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Andrew Morton Cc: Michal Hocko , Christopher Lameter , LKML , linux-mm@kvack.org Subject: Re: SLUB: purpose of sysfs events on cache creation/removal Message-ID: <20200117171331.GA17179@blackbody.suse.cz> References: <20191127174317.GD26807@dhcp22.suse.cz> <20191204132812.GF25242@dhcp22.suse.cz> <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline In-Reply-To: <20200109114415.cf01bd3ad30c5c4aec981653@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 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello. On Thu, Jan 09, 2020 at 11:44:15AM -0800, Andrew Morton wrote: > I looked at it - there wasn't really any compelling followup. FTR, I noticed udevd consuming non-negligible CPU cycles when doing some cgroup stress testing. And even extrapolating to less artificial situations, the udev events seem to cause useless tickling of udevd. I used the simple script below cat measure.sh </sys/fs/cgroup/memory/grp1/cgroup.procs ; /usr/bin/sleep $1 ; echo 0 >/sys/fs/cgroup/memory/cgroup.procs ; rmdir /sys/fs/cgroup/memory/grp1 ; done } for d in 0.004 0.008 0.016 0.032 0.064 0.128 0.256 0.5 1 ; do echo 0 >/sys/fs/cgroup/cpuacct/system.slice/systemd-udevd.service/cpuacct.usage time sample $d 2>&1 | grep real echo -n "udev " cat /sys/fs/cgroup/cpuacct/system.slice/systemd-udevd.service/cpuacct.usage done EOD and I drew the following ballpark conclusion: 1.7% CPU time at 1 event/s -> 60 event/s 100% cpu (The event is one mkdir/migrate/rmdir sequence. Numbers are from dummy test VM, so take with a grain of salt.) > If this change should be pursued then can we please have a formal > resend? Who's supposed to do that? Regards, Michal --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAl4h6zYACgkQia1+riC5 qSgKoA//ZHOaTtyAwAzIU0cfBkSxBLjGxpA8TqqGk7nRIhCI9CK9bQuIifOOfWQV YYL3ApPANU6o+bYOxM8xXe4G2TXZBF/Q23jjORGv7C2bRwldTNvYZ0dvYwq0bQ3n l0pXy1R8IDxSB3CPgUE6b7taBjrIuMds63i7MhwZ3CxW540cUGm8mPpB9RE5kinh IGduSTM73kbVypVHuw1hMhZu0QueepUAawpZIFK6wbOsade0NE0p6Pq0xxVCRp+B cYq9O161YcED0HIR+fdC8q63VN8tHJJovKJbVocrzweEonSmPdoBap32guhlMFTQ rPs3tD6MV0SIOfqTN4A6b7IHrxqiWYs4aqktiCt1iQj2WDKwVIVDweA73vyehQXa wXZE+mak1gNjxwKAWAtsMLZl7TupqPrwbZIUq2vNb/ob+zQ+wKfxHfq0BMRMG/v5 /QPzbZalrzfOZvtjgMrZXHY6eNfHUm7PkJWEHlY3WshN7Crb1tp0+UOi6DyexXsc Y0V3JAP3gUh2Y+hTZVQwmutNt7zDLSqo0F14SRN3bNhVL/3Hy59e6tIqVktJHq8b ZMwnpvclnBWdcLzoH5hq7PsAnNJDhdRRAFsN3xFfIjmIFEIN07fXTxWSrpasYohC g7eC1qGJf2vSWdvpj8kVLiaPRX6wYK0sUg4duwQbyg7Y26RG0JU= =VSEp -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--