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 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45940C2D0CD for ; Thu, 15 May 2025 17:23:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AF58C10E1A8; Thu, 15 May 2025 17:23:20 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="M//QyOR+"; dkim-atps=neutral Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id EA6D610E1A8; Thu, 15 May 2025 17:23:18 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 660D3447F7; Thu, 15 May 2025 17:23:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F3C3C4CEE7; Thu, 15 May 2025 17:23:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1747329796; bh=RvmHfZZ1f0AzI8waiCOB+v4pZfKLdBr4L5DOr1Kq/kE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M//QyOR+F8Sa79Y916HbAENQvxd6ibec3oKeleXrm5HLvgWMiCGxH0vs74+Y4K+rw Gb02RgIQ94HfIkYL+eSVzZvAILbxpO5GtsWev2RoegYcrUkxCu14rxRB/g4THAYjjp 4nLvZ7nQw9bNYafm0fyEs6RRk5OFnu8hsEn35xRPtzUqIT+lYoIJlctSoK1GPZTWRP kr9tCpJq0UjoQ+JO+DdBT0V1yuCQAG7JN7Flw/e22c2nAN4pU7jeGbm+Voa4ZGkl48 O/xVkyWCUhl7kRKC7flJhOF5ZZZjE8vLYQQO5+ZQ2NSBnsf4Pk3bOtk/FqRGFNJQff LSH5KIyi1wzhA== Date: Thu, 15 May 2025 19:23:10 +0200 From: Danilo Krummrich To: Rob Clark Cc: phasta@kernel.org, Rob Clark , dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Connor Abbott , Matthew Brost , Christian =?iso-8859-1?Q?K=F6nig?= , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , open list Subject: Re: [PATCH v4 04/40] drm/sched: Add enqueue credit limit Message-ID: References: <20250514170118.40555-1-robdclark@gmail.com> <20250514170118.40555-5-robdclark@gmail.com> <51f87f358fa1b7ef8db8b67ee6cde38ae071fbe8.camel@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu, May 15, 2025 at 09:15:08AM -0700, Rob Clark wrote: > Basically it is a way to throttle userspace to prevent it from OoM'ing > itself. (I suppose userspace could throttle itself, but it doesn't > really know how much pre-allocation will need to be done for pgtable > updates.) I assume you mean prevent a single process from OOM'ing itself by queuing up VM_BIND requests much faster than they can be completed and hence pre-allocations for page tables get out of control?