From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933582AbcI0Bit (ORCPT ); Mon, 26 Sep 2016 21:38:49 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34103 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932504AbcI0Bir (ORCPT ); Mon, 26 Sep 2016 21:38:47 -0400 Message-ID: <1474940324.28155.44.camel@edumazet-glaptop3.roam.corp.google.com> Subject: Re: [PATCH v2] fs/select: add vmalloc fallback for select(2) From: Eric Dumazet To: Andrew Morton Cc: Vlastimil Babka , Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michal Hocko , netdev@vger.kernel.org Date: Mon, 26 Sep 2016 18:38:44 -0700 In-Reply-To: <20160926170105.517f74cd67ecdd5ef73e1865@linux-foundation.org> References: <20160922164359.9035-1-vbabka@suse.cz> <20160926170105.517f74cd67ecdd5ef73e1865@linux-foundation.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2016-09-26 at 17:01 -0700, Andrew Morton wrote: > I don't share Eric's concerns about performance here. If the vmalloc() > is called, we're about to write to that quite large amount of memory > which we just allocated, and the vmalloc() overhead will be relatively > low. I did not care of the performance of this particular select() system call really, but other cpus because of more TLB invalidations. At least CONFIG_DEBUG_PAGEALLOC=y builds should be impacted, but maybe we do not care.