From mboxrd@z Thu Jan 1 00:00:00 1970 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 839FA748D for ; Mon, 27 Jan 2025 21:20:10 +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=1738012810; cv=none; b=HFhpsaWGdVzCd7Inl7AnJ6KdUZHk2ij312J7YOASyiSnsvv+EDprGPxw7IdYlg8GGG/moculhbq04n1GcyGtlj4uYxK48y0AEn1Aniv8kXV8WWPRsks9iztafoBk49KC1ub33hiLDR7dWvesxSZKcBE4O8DuOp/vZMjAA8Eq++0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738012810; c=relaxed/simple; bh=11o62fENbg8hhT0ehZIpc80cZrnbWiHXoHwB7oR20CY=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=dZCxER6rtgOQ7j1qwl0/Z0KNHdnhjJrfwo4wF+xLkItGuYYhpP2BcbHlUu6e0gcDgAJ6YAH8vSZ7uN1rJrEppCH77i30+NaS+WinNnxSnO9YiCUunwyCFkhyxhv3q56Hd4Hx14+Dqp90l8Aco5NrpYLsXXxWz7zfr9rZxbpdhYw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=DMldx9tg; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="DMldx9tg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BF80C4CEE0; Mon, 27 Jan 2025 21:20:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1738012809; bh=11o62fENbg8hhT0ehZIpc80cZrnbWiHXoHwB7oR20CY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DMldx9tg+HdYwfuQQxRWzBc7wyw1rnti/NG9wDkQFNaoq4tlbXOg+L6PTiky8iar2 mRGOTL1D7xofBsoaEpp7coe8KJKxI7wBNIK2wNFEsNr3lMs7P9HrmUkeZCZKwQRwAB fLkITnxhqGomddh2Ed9jNN4DD2rhtdX2iUqEqDRQ= Date: Mon, 27 Jan 2025 13:20:08 -0800 From: Andrew Morton To: yangge1116@126.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, 21cnbao@gmail.com, david@redhat.com, baolin.wang@linux.alibaba.com, hannes@cmpxchg.org, vbabka@suse.cz, liuzixing@hygon.cn Subject: Re: [PATCH V4] mm: compaction: use the proper flag to determine watermarks Message-Id: <20250127132008.917711e60d76d334cbde8525@linux-foundation.org> In-Reply-To: <1737788037-8439-1-git-send-email-yangge1116@126.com> References: <1737788037-8439-1-git-send-email-yangge1116@126.com> X-Mailer: Sylpheed 3.8.0beta1 (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, 25 Jan 2025 14:53:57 +0800 yangge1116@126.com wrote: > From: yangge > > There are 4 NUMA nodes on my machine, and each NUMA node has 32GB > of memory. I have configured 16GB of CMA memory on each NUMA node, > and starting a 32GB virtual machine with device passthrough is > extremely slow, taking almost an hour. > > ... > > After this fix, it only takes a few tens of seconds to start a 32GB > virtual machine with device passthrough functionality. An hour is unacceptable - I'll add cc:stable to this. If this is a regression then a Link: tag would be nice. Or perhaps the kernel had always done this.