Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp997937ybl; Sat, 18 Jan 2020 16:17:33 -0800 (PST) X-Google-Smtp-Source: APXvYqyPViJ0/hQ/87UYWH9q0dxuLflP4L1v8MiyMjF5kAeLkysSBIvxQISMgjo9QuZJxRBCpoIP X-Received: by 2002:a9d:73d9:: with SMTP id m25mr11525222otk.350.1579393053132; Sat, 18 Jan 2020 16:17:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579393053; cv=none; d=google.com; s=arc-20160816; b=xdi5YdmseYOyZDshcET3fLhGXq1EWV6UVON9+uaBsWMbm6+OgPqKEp0Bv/0OWji8SW z5YUzumN+8bTwhfSWZoUj1M6eK38WlYn1ODaBjwQ2P4PVcr113EBDsBgOjb7JA63qpX2 s3xxUqqeDPdUMrLy9BEfqN/AavLWQr50CKfmoLknlkAcPCseYxRPjIFR1vDc8w8eG1ux T/o58YZ4qhS1jvVHcA4eVdUUYkm+pLq+yz6gkuzNdm5vxsr2iHcwJ0xCTOHdJzGxgLl5 VT1StUFX2RCDBxiNdoQ0AUg11MHyRrorYMvUU9BPZxTBrHWtyt1V/Q6/9vW4Aop9n7nI 93nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=XQ+mabCv2tNm/VOdQ07hmitbHVoO0Tz0Yo+pHpbSTl8=; b=rIhnVf9GX8Pzuhpv4ZW780g2ZzTdBmqtv9IRY3NwpmPM9ucQvxjeOmB+d3gKyARMsr HdtRv4Q4v4PMno0KDkr+8i1/xxxCnOSnp2xVoKSzyf32xumacxxlAl+/tA24d6tTJEeJ Ah8H1gWb/71+k1hOJJJqKWVHyWqcTBg+KidFIVpQ0/9yGWdUdCcd+5EEqx9I1HIteyqs dVwIN0tccRMCmT7+2a968HRpGmPKhfnrSIsSOHYF82oc2INUZ+opHC+9AaiG12ujg2uZ N6n99mbKmJEisoYW4O5uB7RlyOVyo9rj+gr/CDobjbCpOlGOx4AfUstuCDG55kc+GKDS Zb9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TBXEcN4i; 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 q1si18548337oti.234.2020.01.18.16.17.21; Sat, 18 Jan 2020 16:17:33 -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; dkim=pass header.i=@kernel.org header.s=default header.b=TBXEcN4i; 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 S1727085AbgASAP3 (ORCPT + 99 others); Sat, 18 Jan 2020 19:15:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:58616 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727028AbgASAP3 (ORCPT ); Sat, 18 Jan 2020 19:15:29 -0500 Received: from X1 (nat-ab2241.sltdut.senawave.net [162.218.216.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9968A2467C; Sun, 19 Jan 2020 00:15:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579392928; bh=QxrhY1ZKchdqWCJT4FNp5gz+287Q3KNekwrVRqV+e94=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TBXEcN4iqXSY4fSimgm4USfM8u4H+05c1/LKA2xyic31a3LtvlsRc+Vr5e0rvtD/Q Wz+JdoLGxxwOwO4E0xMrZc6/DQXc3Y98Owk9i0ssYJZN9daSwM469C1nMGDXD+t2Sy I4Amt+WEGFpi+Nch/DSPpKghDlp8xhKw99iqRdWo= Date: Sat, 18 Jan 2020 16:15:28 -0800 From: Andrew Morton To: Michal =?ISO-8859-1?Q?Koutn=FD?= Cc: Michal Hocko , Christopher Lameter , LKML , linux-mm@kvack.org Subject: Re: SLUB: purpose of sysfs events on cache creation/removal Message-Id: <20200118161528.94dc18c074aeaa384200486b@linux-foundation.org> In-Reply-To: <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> <20200117171331.GA17179@blackbody.suse.cz> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 17 Jan 2020 18:13:31 +0100 Michal Koutn=FD wrote: > Hello. >=20 > 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. >=20 > I used the simple script below > cat measure.sh < sample() { > local n=3D$(echo|awk "END {print int(40/$1)}") >=20 > for i in $(seq $n) ; do > mkdir /sys/fs/cgroup/memory/grp1 ; > echo 0 >/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 > } >=20 > 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/cpu= acct.usage > done > EOD >=20 > and I drew the following ballpark conclusion: > 1.7% CPU time at 1 event/s -> 60 event/s 100% cpu >=20 > (The event is one mkdir/migrate/rmdir sequence. Numbers are from dummy > test VM, so take with a grain of salt.) Thanks. What effect does this patch have upon these numbers? >=20 > > If this change should be pursued then can we please have a formal > > resend? > Who's supposed to do that? Typically the author, but not always. If someone else is particularly motivated to get a patch merged up they can take it over.