Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp463803lqb; Sat, 16 Mar 2024 11:20:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMAaGq6jjRYcI0m8U19oUQ1N2hOT04j5fgMG5PQeWgp8EbYmmNkueh4CeE+lgJn/3xaqNWTvdonOweMB/ep2ahRl/v/umAo7TwJ7W6YA== X-Google-Smtp-Source: AGHT+IFCJbsBSG5WqBmmklD6prHg7g63keg0XjJmmeSA4Jacz7FesEkw753Ig6fbCdOGU7kZLRSQ X-Received: by 2002:a05:620a:1672:b0:789:ea35:4465 with SMTP id d18-20020a05620a167200b00789ea354465mr4934649qko.31.1710613213722; Sat, 16 Mar 2024 11:20:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710613213; cv=pass; d=google.com; s=arc-20160816; b=TzfKsJl95Yd9vnFRvDy0rN/SVaFK2wLxRrMR6Nfg+Thy3ClxE9301s1yMTyryvPyEI MmMr1T5L/qIXd5Ir8lgdA8OWd9PXhp2RwLHXjCwLco/h3vnr83et2vgy8N1x89nVIYih fvBkNnkyVpTvDkuDD9FETMqCZlIW9dBiaX8ttCovgleXomedK7gmqyuqyzx19Sdl8OX6 wY0EFsWHzHEI/LJoyJmjBTLb5weDYz7Pum1WYp7ASbdT6KWk0BFU6sa0LGgPHcId7p+9 c3LBXXWobGDdoQWRHhE5p8TK9axeLj1w/ys8jq4AEu6RBuRsRmX954vAILhv1fQ1psrg /i3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=os+EvDljXGbg8GjxDBYxL66R+JBO8VAdJwil186GYK8=; fh=xSvLfoLJgslZ/uFSPvKcojWGvi3v7aKrZK5mgCylPN8=; b=RhY7EGCAJd2l4T/Y6OsWikNFfhWTH3yR/kfGZ0SLOvu/iVaVHk620RdaGWeCmsm87w GOGz25NcyAd1Dlqhcm75lJVEXxRaFJZnQgsj+XaiEgmr6z/pzLpg5KFXBfhIUW14+R5m zDNu0WgCo5muQmJR0/z5uf8RyELMESywudrcpHzxW8LrZbyUl6OhYWJnZMS6gIRH9fNT HKBiYXqcT0VzFeR2K2LKlINo6C3kDt9W6Lr4X5u287/0HCXnV37bkGPjzq429x1vlL8U nF1FqZTAlVBmr2mK6fj5RsGxCsoeN7SQTudbLQaL+MhpE3EBNPsUVRmfuZK0AOFekY4/ SSWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-105268-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105268-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b23-20020a05620a04f700b0078802f0ba65si5886467qkh.376.2024.03.16.11.20.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Mar 2024 11:20:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105268-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-105268-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105268-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5E3171C216E3 for ; Sat, 16 Mar 2024 18:20:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CCFB1C696; Sat, 16 Mar 2024 18:20:08 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89F1D1C684 for ; Sat, 16 Mar 2024 18:20:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710613207; cv=none; b=a9/exS0iJ1QtYtbqAMqGL9PDyO0H/AArFpD6Qv6ofO6WHRnB57QjxfCTKkUIsXfS9EQC51Sl3IvNxq1mrktthE/pFImp8nDxGkbu3apD6zo/iMOL3/bTdnomRs3yggomvRodOAXIhveDYKhnCle7idZZA23fsqvKqMW5uz9yVik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710613207; c=relaxed/simple; bh=06+THI7XWuKGGgLhTsUilyeitLcdxYOnW2Qj20XE09Q=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=haSaZASy9BfgVyxry1PzreSFLR/TfXrq1bmaHr4yNBmg7rxS6YOKOEFkvqyAp1kblNkNWk8ONl+yMNOTsbssK9rj6jpc2AaOK2+Hp6u7dhJM/pAqBidyI4W1nI6xdBLroQuWi1gdyMrhkummNJiUAOYWUVimiEm8pE0W+vO6+T8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6828CC433C7; Sat, 16 Mar 2024 18:20:05 +0000 (UTC) Date: Sat, 16 Mar 2024 14:20:02 -0400 From: Steven Rostedt To: Linus Torvalds Cc: LKML , Masami Hiramatsu , Mathieu Desnoyers , Beau Belgrave , Chengming Zhou , Huang Yiwei , John Garry , Randy Dunlap , Thorsten Blum , Vincent Donnefort , linke li , Daniel Bristot de Oliveira Subject: Re: [GIT PULL] tracing: Updates for v6.9 Message-ID: <20240316142002.7480d74b@rorschach.local.home> In-Reply-To: References: <20240315122934.1d3231ce@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 16 Mar 2024 09:59:57 -0700 Linus Torvalds wrote: > On Sat, 16 Mar 2024 at 09:31, Linus Torvalds > wrote: > > > > So instead of merging a new feature that was mis-designed and is > > already having code working around its mis-design, I'm not merging it > > at all. > > Here's a clue: when hacking up VFS code, ask for ACK's from the VFS people. > > And when hacking up MM code, make damn sure that you have VM people involved. > > No more of this "random code that happens to work in my tests" > garbage. Yes, I'm sure that others have done this same disgusting page > counting hack and this was copied-and-pasted from some other I admit that this was taken from looking at how other code did it. > disgusting source, but because of all the history, I'm now looking at > tracing pulls arefully, and I'm simply not allowing any broken hacks. That's pretty obvious. > > So in addition to getting actual VM people to help you with mapping > stuff (hard requirement), I would also suggest: > > - your allocation has to be live over the whole mmap (and that's due > to other fundamental issues - you're not even trying to deal with > actual dynamic allocations and thank Cthulhu for that), and the code > is literally designed that way, so then faulting pages in one at a > time and refcounting them one at a time is just pointless and wrong. > Just do it all at mmap time. > > - I'd suggest marking it all VM_DONTCOPY | VM_IO | VM_DONTEXPAND to > not let people play games with the mapping. > > - avoid all the sub-page ref-counts entirely by using VM_PFNMAP, and > use vm_insert_pages() > > and a random note: > > - from a TLB pressure standpoint, it might be a good idea to try to > keep the page table entries naturally aligned, so putting that one > status page at the beginning is likely a bad idea. It will typically > mean that hardware that can silently use larger TLB entries for > aligned pages won't be able to do so. This is actually something that I wanted to do, but how much to allocate was stored in that status page. I could easily make the status page as big as the sub-buffers themselves so that everything is naturally aligned. The status pages states how big it is. > > but the effect of that is likely fairly small. I'm not going to be able to get this done this week, but I don't want the other changes not to be pulled. As the ring buffer mappings near the beginning, what do you want me to do in the mean time? 1) Rebase without them (I know how much you love rebasing) 2) revert the entire series. 3) Just make it disabled. -- Steve