Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp414217pxb; Thu, 21 Oct 2021 02:00:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWQjZl+oy3N3LBLu05GywU1iQj4unOUjRHAF2XZBnPJ5jCBz7iu5mngOAnbKkmgx+hqCrl X-Received: by 2002:a17:906:fad4:: with SMTP id lu20mr5976513ejb.316.1634806804022; Thu, 21 Oct 2021 02:00:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634806804; cv=none; d=google.com; s=arc-20160816; b=WWAiglogaumzW7sJe7p/XKNpyAsw/7lso3VaTIfxzobEr7wqhdUKlLGBrl91vgk8J7 l0nbkyyX+sB3dAwwoK5bB2r11OZrj0e3WQWbpfWZVwVDUNAh81ulPcuNen3lHasjF++f D7FdUKySt1/ixq2xxh05KQaOAZnlAY+gW80FQb2IOUFZOBnTYug+lvb79NZttKmSugYC HSmNBLDyInaJxpCiLAtYAjTZgqdEGBcmEFM6uaY7Wdv6oSGtFRzWGso/yXUYHQPa90/i ZuVhWJEdoLO3kpYCbYKapFoKezProHq9FRu35hVSgtTmCANidD2H6tclF7BlxZkg2rc4 c+ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kpeGLRKbnlmOm6fEFAowHlW4B0c6o3WCsqPV+QnxPs8=; b=xdOysVqGGCK70IaYIzExqYdM/qCVEZm6J5swNbFKrMg7NIjJoAzG9PwEW3jJo862T1 +/GyK005P0wL6sNwRO3JkxSszyMsWE3VsTjKN6fltF0UacGJ6gCGtk6hb+MyPcsMVzb6 xMX1gu352AtZ/02myT6BGuwvMDbQrB+Xd0wlJVsr3mWi5qD12PZgzHSqY81KwYXkiUB8 fh7xRqHRwytUMVr8yQRaMT/rM86VmkVNQgAPP2EMarjkdQfN0ozZSVtBlZNotjlY0fHm PFfhxiJRQbtAa/5D7mSvClsaNYk7DujC4z4zptR4p2nLsccnhz/5hTRcWaQNCyUZc9T0 zriw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=lKNuU5yF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si11795370ede.360.2021.10.21.01.59.39; Thu, 21 Oct 2021 02:00:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=lKNuU5yF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231482AbhJUI6x (ORCPT + 99 others); Thu, 21 Oct 2021 04:58:53 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:52440 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231461AbhJUI6w (ORCPT ); Thu, 21 Oct 2021 04:58:52 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 413D71FD53; Thu, 21 Oct 2021 08:56:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1634806596; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kpeGLRKbnlmOm6fEFAowHlW4B0c6o3WCsqPV+QnxPs8=; b=lKNuU5yFt7bUcL3PD73O+nTClJA/6RYuQFrJ0DibDtDeDytMFilbotlF9CeMsJ13BP2OCS WWsFb9iX0L3+qqhMYjh47s+6CYsDHeh9vD7kDtkYjXG30MVOJ8uNu88fyyHtrk09BIX/HJ E9kzJTlYqTi9SSrVNAo57T4h25Hh9XA= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 0E64BA3B89; Thu, 21 Oct 2021 08:56:36 +0000 (UTC) Date: Thu, 21 Oct 2021 10:56:34 +0200 From: Michal Hocko To: Uladzislau Rezki Cc: Linux Memory Management List , Dave Chinner , Neil Brown , Andrew Morton , Christoph Hellwig , linux-fsdevel@vger.kernel.org, LKML , Ilya Dryomov , Jeff Layton Subject: Re: [RFC 2/3] mm/vmalloc: add support for __GFP_NOFAIL Message-ID: References: <20211019110649.GA1933@pc638.lan> <20211019194658.GA1787@pc638.lan> <20211020192430.GA1861@pc638.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211020192430.GA1861@pc638.lan> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 20-10-21 21:24:30, Uladzislau Rezki wrote: > On Wed, Oct 20, 2021 at 05:00:28PM +0200, Uladzislau Rezki wrote: > > > > > > On Wed 20-10-21 16:29:14, Uladzislau Rezki wrote: > > > > On Wed, Oct 20, 2021 at 4:06 PM Michal Hocko wrote: > > > [...] > > > > > As I've said I am OK with either of the two. Do you or anybody have any > > > > > preference? Without any explicit event to wake up for neither of the two > > > > > is more than just an optimistic retry. > > > > > > > > > From power perspective it is better to have a delay, so i tend to say > > > > that delay is better. > > > > > > I am a terrible random number generator. Can you give me a number > > > please? > > > > > Well, we can start from one jiffy so it is one timer tick: schedule_timeout(1) OK, I will go with 1 jiffy. > A small nit, it is better to replace it by the simple msleep() call: msleep(jiffies_to_msecs(1)); I have planned to use schedule_timeout_uninterruptible. Why do you think msleep is better? -- Michal Hocko SUSE Labs