From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7D3E1FCD08 for ; Fri, 17 Jan 2025 11:43:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737114239; cv=none; b=sKKXNK2vzuav42yqZERmjf8jKAhfdpsLavm7SSDA/ENDEFtpM/4JI2L1uSfscreh/Zw0b1VvSPN6hbD2DSt1bP+oEhm+5HBrv3VTBr3NwHwMU22bZQSUg9N1HJlEo3YdSeSqnmeKrnlxSLkQoEKLSlCCKcRivvgdbms3r6DM0mQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737114239; c=relaxed/simple; bh=x1pZ2+NWWGFp00TYoCsdcvWhjXVo0gEuAeli/wzRMVw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tVJ3fbUrcXXVnyxh9p0omRMRw2SLDAGgKFpzbk7WvnDOsefRzXPpav4o0Xyqs3vLx+wwjZgF30gYSancSF3EEpDhcXes12bWs+WSlVK6Oc5MP7iSf1fbLiXQZLpIY3ZQctvxf7btLUXF7Y1DNjIwU8/vCAtFMyo1W7xCmzf9DE8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=ZGnh2ci2; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="ZGnh2ci2" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-43690d4605dso12934735e9.0 for ; Fri, 17 Jan 2025 03:43:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1737114236; x=1737719036; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=hUuW6LaXAzQ4ddmq/8F+bgdsSQzi5OE6ZPQ7s3KDBMg=; b=ZGnh2ci2hdz1XnahDspkBI3m7zBCeDo2l33n9ow0hMNYMAT1SjkJJYVDRBvK42P+lH BVCpLR1i8XfrWTxK2WUgV0SeD3xsE/03SDGLv05VcPIXZHFPtSPK+vxur5JQ/XTDw4C4 rNd0cIBw3zP5aSCKEEZ9lnIXfFHsIZ4Kn7Xl6gxJG98s2RVYq1E965h2lorNxYvrKhQm H2UMk2NWROEozxJEQDyy7GamyvyOiYf12NOhjaeN2juOFHd8F8D+PYsawOhXMkMt6YZL J+SJ02dyJc0vqlGz4vUOYqpyyu0BAS6u0ruTHJVGTOlPCqgZkQd61rPsit7LaHpCGZdv M7PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737114236; x=1737719036; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hUuW6LaXAzQ4ddmq/8F+bgdsSQzi5OE6ZPQ7s3KDBMg=; b=SBdxnQqyp9e6Iv18XsscwjReqlPqRXrdqvj7lAdt83ZQGnSCvSXlFPOoNRqNG2xCLv odvsCz+vaqYhssytGBk7NXm19Ykk/v+5ZQCn1eMZNXceALLxhjsl7mBiLRN7YCr8bnNo WprdbHiElO2fjXhOBJoi3G9YqPm5dlRGsDh/qNpWAQBop3GiGekt16LdqQHcpVWT7qos 9bAZXoBgeC4To4Xa3S4uKeOUUrVT0w97ehF3XMnwpE4mAODzUoOarfYA/pGwd00eJHDs AijxRq7J31JRW8Hfl/kWL5+lomx/TO/+6pW4s7yKnZ589t5ka4XlMP/l6ai4Ws0Mw+fq qYWQ== X-Forwarded-Encrypted: i=1; AJvYcCVTZYOUAMAbJSvixQILJjBxJKz/6kNRe9OdJXFBrgm8x9qQ8DEETZZB0G0OdTOrSHz2C/K6xuvZr9t0P4A=@vger.kernel.org X-Gm-Message-State: AOJu0Yyy30Hmd9kD/bGI4VovLai5Tb7U00WUmwzV2gmR8MedRg6iVGka v9VaNv71FkQ0W1fLBXlLm8L5DZGYapFjLWHVfAXcX1TsKxuY2EOrRFUhO41VoxFm8UXOW0HgyNW Q X-Gm-Gg: ASbGncvg4kiZ5yAC52Qb6rQN4KcNVhTMAoQTb29buRhB6q41rfPK9we/ujqzKogtSwD 40tzydAp0BOD17RkyQawlGzDrcMMyDtzSYIHXf9ZC0sX53KsIRMWb6KV6tXPKTccGksDq/pl2jn mDQZEl8tfsRHCUeWMjPupaxNZlPPWV1TO6uv+3dHIYXRK2dxSZLuL8X6KZ0TQZI/o5PREjSU2IW qM6OCMDY287tcwKfUUu2kJOTbNYAVePyExHBkpf5hFOQRG041OcINVQjTzkkGWxfD80nw== X-Google-Smtp-Source: AGHT+IFaHWJbC48oF3hpgHSBXUqG6jy4KSI+cLoiycTrsPbXkX+F6N0oMZn1e4sry1caAjXknYiBkw== X-Received: by 2002:a05:600c:1389:b0:431:52f5:f48d with SMTP id 5b1f17b1804b1-43891460bbemr23967465e9.31.1737114236195; Fri, 17 Jan 2025 03:43:56 -0800 (PST) Received: from localhost (109-81-84-225.rct.o2.cz. [109.81.84.225]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38bf3288f79sm2279111f8f.100.2025.01.17.03.43.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2025 03:43:55 -0800 (PST) Date: Fri, 17 Jan 2025 12:43:55 +0100 From: Michal Hocko To: zhiguojiang Cc: Johannes Weiner , Roman Gushchin , Shakeel Butt , Muchun Song , Andrew Morton , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, opensource.kernel@vivo.com Subject: Re: [PATCH] mm: memcg supports freeing the specified zone's memory Message-ID: References: <20250116142242.615-1-justinjiang@vivo.com> <3156c69f-b52d-4777-ba38-4c32ebc16b24@vivo.com> 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-Disposition: inline In-Reply-To: <3156c69f-b52d-4777-ba38-4c32ebc16b24@vivo.com> On Fri 17-01-25 18:25:13, zhiguojiang wrote: [...] > > Could you describe problem that you are trying to solve? > > In a dual zone system with both movable and normal zones, we encountered > the problem where the GFP_KERNEL flag failed to allocate memory from the > normal zone and crashed. Analyzing the logs, we found that there was > very little free memory in the normal zone, but more free memory in the > movable zone at this time. Therefore, we want to reclaim accurately > the normal zone's memory occupied by memcg through > try_to_free_mem_cgroup_pages(). Could you be more specific please? What was the allocation request. Has the allocation or charge failed? Do you have allocation failure memory info or oom killer report? -- Michal Hocko SUSE Labs