Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4112imu; Thu, 10 Jan 2019 16:38:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN56GY+kzdgM/OxkeG9AzRhchMj98OC2o5ZbtVuSr8kys8CpdQvIPdlVYpmWJfmYrKhOKucO X-Received: by 2002:a65:520a:: with SMTP id o10mr11724549pgp.276.1547167122323; Thu, 10 Jan 2019 16:38:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547167122; cv=none; d=google.com; s=arc-20160816; b=RJ15vbYGRZaXdIyZkx9HSvu4HRgRYMwO+T8L+5O0NhmYBtKSoHjBt5XCo2wtT7qNjG 9y01DPpmaRq3xi6yVhNU3c57JSfnH3JneTuM8Dv29aj00cgD8E4L6IUrrXAqszJUZvDi f4gk1iRQz1EVtOkp1sfoUKagaurFuhZuDqCQ/xzDepRRwMAEzwyEjtv61uSyc2iX2SqX qvIbU9uh3LAbdtgzf5KR71w5HZdtrzFs1tp7Y+trihKptRDZAXBjLbFfC4uB4QsYSt60 tiaoqRVa4b78Ab84D80pn8Kx0UTUy+vq6pKaQYXZPawmfNso1nYwiHM6B2ajY8NMGjAY EcIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=J6PQwM4pLIemfW0dHOA5jdflLfNMw1dEKYbFLc+YtS0=; b=qnR0K+Bo9s3s4UBQz8y1GPH/xV3WKOAfrSXy+u6XUfkskANz9g6GZJ7dWKCznwMmnh ZjsA00kFatr4VpMPcBb0L2JPs9vofJXcVyaJASL+JYeGE9YPJe5U6+ed+HbEwsAiQEbL ZkPu5jxC08DZxtllSlQU5f6+U2HVl2wOOdEIOuousfrnSrTLX607lOOEWI3CkqGyvtpR AfaJKYh1VsvZTTzoCYFS4hhnLW3wbXX52hy4bAJ12Ujrs8cI2TzzfeAXpU5kxPkrqO/B itczr4oVRNGvWnoo6DqdzPRG0oGyFF6Ngy6wBi4PZ4A4K3SnjAONNrEl7LcoQKHdOQiW UrcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x23si33752427pgj.247.2019.01.10.16.38.27; Thu, 10 Jan 2019 16:38:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730505AbfAJXvL (ORCPT + 99 others); Thu, 10 Jan 2019 18:51:11 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:36504 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727799AbfAJXvK (ORCPT ); Thu, 10 Jan 2019 18:51:10 -0500 Received: from localhost.localdomain (c-24-6-170-16.hsd1.ca.comcast.net [24.6.170.16]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id CDC2E123B; Thu, 10 Jan 2019 23:51:09 +0000 (UTC) Date: Thu, 10 Jan 2019 15:51:08 -0800 From: Andrew Morton To: peter enderborg Cc: Linus Torvalds , Olof Johansson , Linux List Kernel Mailing , Huang Shijie , Alexey Skidanov Subject: Re: [PATCH] lib/genalloc.c: include vmalloc.h Message-Id: <20190110155108.a9a54ff592d00c0586691717@linux-foundation.org> In-Reply-To: <1b876fba-28dc-ba7d-41f3-04580bc0c4b6@sony.com> References: <20190105212118.61022-1-olof@lixom.net> <20190107145614.2152eb5e59248d17994759ea@linux-foundation.org> <1b876fba-28dc-ba7d-41f3-04580bc0c4b6@sony.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Jan 2019 14:13:44 +0100 peter enderborg wrote: > On 1/7/19 11:56 PM, Andrew Morton wrote: > > On Sat, 5 Jan 2019 13:35:33 -0800 Linus Torvalds wrote: > > > >> On Sat, Jan 5, 2019 at 1:21 PM Olof Johansson wrote: > >>> Fixes build break on most ARM/ARM64 defconfigs: > >> Interesting. > >> > >> Andrew, I thought ARM was one of the platforms that your tree compiled > >> against? Or was some other change just hiding this? > >> > > I've become a bit lazy with the cross-compiling because linux-next's > > build coverage is pretty broad. But Stephen's holiday interrupted > > things and this one fell in that window. > > > Is it now OK to use vmalloc in fast path's on all platforms? I'd say not. It is slower than kmalloc and these changes did nothing to speed it up. That being said, vmalloc is for "large" memory allocations and large amounts of memory take large amount of time to utilize, so unless the code is allocating then freeing memory without using it (don't do that) then vmalloc() can never be a "fast path" thing?