Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2498743ima; Mon, 22 Oct 2018 10:44:36 -0700 (PDT) X-Google-Smtp-Source: AJdET5dOK0VAoURMOfmM+DyABGgoyspPj9av7wJwTGdqXCAt/RJu4OD5QZn+UjET64rGQvK9sy0H X-Received: by 2002:a63:91c1:: with SMTP id l184mr5123924pge.29.1540230276120; Mon, 22 Oct 2018 10:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540230276; cv=none; d=google.com; s=arc-20160816; b=GURSOX8zcAfhhd7oRow/2IJdp1jVQq2GhdOu6IrxDdGfv3PNqnU/jpcsW4AukCTwuZ B2PhvTwnsu1xUW0EToDwULYPvYvZ/G/jtbFzhiLytJK5enfXiWtO+vz/+3o3c2UbR8OV OEueasObwEuIvuJjUZTsx4LJHws9Ay5FivXESN88vFdmCFId/VTfpHg4UKclCpAvEfQH GDbenBSwhyMqal5UGUj6T55gjEjldsnd+4jb7nIG5owqbshY9e0SAF0tqMVcpzQdpNF3 tkrZeDrCBZqYKDNSYk2RGe3qVKz31u7AcYAo0yPtoue3C4tg2QlpkUDVK0IOJuY/gESW 0aSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=OQRy6bWiFyWNxW02VDulhGCt9vf+K4KgUWsQA2ATsgE=; b=N96igSFFn+Y2qCj+0xaBw+RQm0Gvo/3ziFGd0gZ0EvdUzTQRHY22XH1onPwJd95QU4 jOc/9PaxB9S3AkVbXASxdsFiebpVcwtYDBuMTj6N0+SD9/0FYS0s+FFykTzJLPsPNRh3 ym3W3mVsRr3hS8egKFaouPiAUj/3pYAQYS+Gr63LI7poLQIl3k68z8a0Krjp1eGXz/aW i7Sa2Yv0+QU1R6qDzBprNo0koxLlLWZkETqIGzd1UYZOcEMrVkgvupaPSnBlH8sEY9r9 70J5lJvezEOxi8i5RnNyyCQ4H1ovHmrb+tIQzIXPV2ufvx6zj+wY5A7rNzDMmEE1TEi3 d4Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JAAETX+F; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x24-v6si32623002pll.184.2018.10.22.10.44.17; Mon, 22 Oct 2018 10:44:36 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JAAETX+F; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728523AbeJWBMP (ORCPT + 99 others); Mon, 22 Oct 2018 21:12:15 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:44287 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727820AbeJWBMP (ORCPT ); Mon, 22 Oct 2018 21:12:15 -0400 Received: by mail-lj1-f194.google.com with SMTP id v6-v6so37613544ljc.11 for ; Mon, 22 Oct 2018 09:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OQRy6bWiFyWNxW02VDulhGCt9vf+K4KgUWsQA2ATsgE=; b=JAAETX+FvYV+UxfgdrS3de/cpZaW0BSWdZyQIts+64RzecX3M7dSix+h72xBVrWKKM VcfUlqi8j4qTdsQKj2sq42umLMDjXPDDQRMm587Qz8/qjooTdP7fcbGj7cu2i5zKa/mN kZPJFgDDcmiNKWdFQSipirTZscOZBwybK/lXqSeLwv9WMC+hd32HGUmtjky2umK27eXe qEdtu3uMekI+A1sx1mpR6qIH2WL0xlbFMc5Pgq53zXpqt77yxokugTIdWL7KrZ5D5w73 wm2ivUz4/AV3yeBx6lHMXZdY4S45w7SLFk65ViUScyCk+nld+lA0Btnt5QFT3DHkXBCt KKmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=OQRy6bWiFyWNxW02VDulhGCt9vf+K4KgUWsQA2ATsgE=; b=Wv54HYjLLm0oOJhcFtjOvBynmotrCqVZv4OcGF54dFU2KRwYCh4+3JuYjjyzaFIsxc dxUHg2rNcniSI9Eee5B8aIl9s0zLqn3O7uZE8UBPqBXX3LJpIa7HvkgjlIRJfl0OhVS2 QGv02USN6A71aCnbuzjvVIpmSVTW9WsWMnALwieHaoBYYibKwJlcSO/nQw3yhpJCOHxY KSehbHFeNDeP/t7iOWYx660JaK9cUc8tizGi2FIEijJrmp1ozmvPv46R58+pWb4nvix0 3RgCXzt37vNlainImBgcuqQj8oPG8gKHpqgO4U+JiNVp6xYHvb1Cny9Cudj1ib9FGJeJ 28jA== X-Gm-Message-State: ABuFfoh8d43ZG9h5MinXun7rNM2SoDwzv/I/NSec77fRMrI1E6gsdItY EpEhF1J8aKwz/VZZVrJsid4= X-Received: by 2002:a2e:121:: with SMTP id 33-v6mr29611477ljb.96.1540227177197; Mon, 22 Oct 2018 09:52:57 -0700 (PDT) Received: from pc636 ([37.139.158.167]) by smtp.gmail.com with ESMTPSA id 1-v6sm6968219ljc.46.2018.10.22.09.52.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 09:52:56 -0700 (PDT) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Mon, 22 Oct 2018 18:52:53 +0200 To: Michal Hocko Cc: "Uladzislau Rezki (Sony)" , Matthew Wilcox , Andrew Morton , linux-mm@kvack.org, LKML , Thomas Garnier , Oleksiy Avramchenko , Steven Rostedt , Joel Fernandes , Thomas Gleixner , Ingo Molnar , Tejun Heo Subject: Re: [RFC PATCH 0/2] improve vmalloc allocation Message-ID: <20181022165253.uphv3xzqivh44o3d@pc636> References: <20181019173538.590-1-urezki@gmail.com> <20181022125142.GD18839@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181022125142.GD18839@dhcp22.suse.cz> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 22, 2018 at 02:51:42PM +0200, Michal Hocko wrote: > Hi, > I haven't read through the implementation yet but I have say that I > really love this cover letter. It is clear on intetion, it covers design > from high level enough to start discussion and provides a very nice > testing coverage. Nice work! > > I also think that we need a better performing vmalloc implementation > long term because of the increasing number of kvmalloc users. > > I just have two mostly workflow specific comments. > > > A test-suite patch you can find here, it is based on 4.18 kernel. > > ftp://vps418301.ovh.net/incoming/0001-mm-vmalloc-stress-test-suite-v4.18.patch > > Can you fit this stress test into the standard self test machinery? > If you mean "tools/testing/selftests", then i can fit that as a kernel module. But not all the tests i can trigger from kernel module, because 3 of 8 tests use __vmalloc_node_range() function that is not marked as EXPORT_SYMBOL. > > It is fixed by second commit in this series. Please see more description in > > the commit message of the patch. > > Bug fixes should go first and new functionality should be built on top. > Thanks for the good point. > A kernel crash sounds serious enough to have a fix marked for stable. If > the fix is too hard/complex then we might consider a revert of the > faulty commit. > The fix is straightforward and easy. It adds a threshold passing which we forbid cond_resched_lock() and continue draining of lazy pages. > > > > 3) This one is related to PCPU allocator(see pcpu_alloc_test()). In that > > stress test case i see that SUnreclaim(/proc/meminfo) parameter gets increased, > > i.e. there is a memory leek somewhere in percpu allocator. It sounds like > > a memory that is allocated by pcpu_get_vm_areas() sometimes is not freed. > > Resulting in memory leaking or "Kernel panic": > > > > ---[ end Kernel panic - not syncing: Out of memory and no killable processes... > > It would be great to pin point this one down before the rework as well. > Actually it has been fixed recently. Roman Gushchin pointed to the: 6685b357363b ("percpu: stop leaking bitmap metadata blocks") i have checked, it works fine and fixes a leak i see. Thank you! -- Vlad Rezki > Thanks a lot! > -- > Michal Hocko > SUSE Labs