Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp467437pxb; Thu, 21 Oct 2021 03:15:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwxp5MGsbbtZUweYxEQLoOWVUZzSennSJhss948lKJnGrcheIawIjm5Zam+OP4kKayGryu X-Received: by 2002:a17:90b:3910:: with SMTP id ob16mr5560794pjb.234.1634811300408; Thu, 21 Oct 2021 03:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634811300; cv=none; d=google.com; s=arc-20160816; b=zz6hKwOtXqIDbO0xgKmxNP5GnIyYY5hjDp+6xw8R7jbRUeyo8UTiv1Kdc8sq+6yBQM DxCLqf+oQ2he/bH1eyagRI59tuyHlYl5GvLqJkV8fHjrOnYcfGXywodsOEWkL4a009gQ 2LXsxQ9gzRTVatfLfezSUdzaiJjFyekLpSgQGI/o0aA580vJq6ZigFa+RNO/cVRlaTar s2rieVcArXO30WWdH29/SeTlNJ4MzBaDbMjl2uTTdbqORr/e3oywjSkwn1EZZUj2aw6X oIEmT7ncyBBUbBZAbQEu5b9qRgefTgRCso9Sxnw5ZaMchVOOFHlbRp4iyjWzrcXFK4eg 8/jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=kqKaSrVU3TFEpX9K803TdDDSaLm9aRwfDWOI2dQb5l0=; b=RDSkJExdZVeujcg6PQlQdLHspirXIXfJHEABOyrCYGGcf4KFJD6VVCvhGUnRQVSQhV vN3AOGV34+uozOdBsKrXDb85k9/jDD9eMeY+/i6TNC/8V4n3nT4pg9PvOrO7WDZo3FWf 3jAiQiIqrXf1r9SbxlxfE2HW732xoF9qEwBiPAtmjwY5+wo3pQCXoqEVJ/apg6U8FYJa GMMTvS0SbJTOhHrXfQhCnXj5bQCJx/jI0NcyoTT2ErIzA4njhWBg/rKiaLiup2FYPl5i NPCWJvBXX/MV7dHHY6o27odGSHjMCq8f2puyPSDCKNp9ShiAuGQ8uISLJNXAeSl+QBCP mSqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=LfqQc63I; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k5si7163152pgg.278.2021.10.21.03.14.47; Thu, 21 Oct 2021 03:15:00 -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.de header.s=susede2_rsa header.b=LfqQc63I; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230190AbhJUKQA (ORCPT + 99 others); Thu, 21 Oct 2021 06:16:00 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:46792 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230072AbhJUKP7 (ORCPT ); Thu, 21 Oct 2021 06:15:59 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id DC63421989; Thu, 21 Oct 2021 10:13:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1634811222; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kqKaSrVU3TFEpX9K803TdDDSaLm9aRwfDWOI2dQb5l0=; b=LfqQc63IqePPTrGfvArXOgm51JCIHXPNkLSYgA6w521jb1CBbgD7OXJjmlFT8LbQzjnOqY qUg5pOtkLWmn5qQs7R0Ynuor2Sssh3PM7fw9e6NlCyXN1d4UPMBpoedxHbM2kZELMzWEzR OXxMhJQ+uixx0PQlKv+K9HN8Rd1+jHw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1634811222; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kqKaSrVU3TFEpX9K803TdDDSaLm9aRwfDWOI2dQb5l0=; b=H2XjTRNORgvbgaSkMi0HBg+H46kOYPNoxpk6IhC0HhIyKu0ZKqJAKgcgpRdOVeMkA3s0xb SV2t7o+I+B++F1Ag== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5F7C3140DA; Thu, 21 Oct 2021 10:13:39 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id jhdbBFM9cWHWRQAAMHmgww (envelope-from ); Thu, 21 Oct 2021 10:13:39 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Uladzislau Rezki" Cc: "Michal Hocko" , "Michal Hocko" , "Linux Memory Management List" , "Dave Chinner" , "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 In-reply-to: <20211020192430.GA1861@pc638.lan> References: <20211018114712.9802-3-mhocko@kernel.org>, <20211019110649.GA1933@pc638.lan>, , <20211019194658.GA1787@pc638.lan>, , , , , , , <20211020192430.GA1861@pc638.lan> Date: Thu, 21 Oct 2021 21:13:35 +1100 Message-id: <163481121586.17149.4002493290882319236@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Oct 2021, 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 th= e 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_timeo= ut(1) > >=20 > A small nit, it is better to replace it by the simple msleep() call: msleep= (jiffies_to_msecs(1)); I disagree. I think schedule_timeout_uninterruptible(1) is the best wait to sleep for 1 ticl msleep() contains timeout =3D msecs_to_jiffies(msecs) + 1; and both jiffies_to_msecs and msecs_to_jiffies might round up too. So you will sleep for at least twice as long as you asked for, possible more. NeilBrown >=20 > -- > Vlad Rezki >=20 >=20