From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754939AbcHWTPs (ORCPT ); Tue, 23 Aug 2016 15:15:48 -0400 Received: from mail-oi0-f42.google.com ([209.85.218.42]:35574 "EHLO mail-oi0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754701AbcHWTPr (ORCPT ); Tue, 23 Aug 2016 15:15:47 -0400 MIME-Version: 1.0 In-Reply-To: <20160823073318.GA23577@dhcp22.suse.cz> References: <20160822093249.GA14916@dhcp22.suse.cz> <20160823045245.GC17039@js1304-P5Q-DELUXE> <20160823073318.GA23577@dhcp22.suse.cz> From: Linus Torvalds Date: Tue, 23 Aug 2016 15:08:05 -0400 X-Google-Sender-Auth: pYZBMQZ0ivXXrW7A2oZZjUO9Mms Message-ID: Subject: Re: OOM detection regressions since 4.7 To: Michal Hocko Cc: Joonsoo Kim , Andrew Morton , greg@suse.cz, Markus Trippelsdorf , Arkadiusz Miskiewicz , Ralf-Peter Rohbeck , Jiri Slaby , Olaf Hering , Vlastimil Babka , linux-mm , LKML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 23, 2016 at 3:33 AM, Michal Hocko wrote: > > I would argue that CONFIG_COMPACTION=n behaves so arbitrary for high > order workloads that calling any change in that behavior a regression > is little bit exaggerated. Well, the thread info allocations certainly haven't been big problems before. So regressing those would seem to be a real regression. What happened? We've done the order-2 allocation for the stack since May 2014, so that isn't new. Did we cut off retries for low orders? So I would not say that it's an exaggeration to say that order-2 allocations failing is a regression. Yes, yes, for 4.9 we may well end up using vmalloc for the kernel stack, but there are certainly other things that want low-order (non-hugepage) allocations. Like kmalloc(), which often ends up using small orders just to pack data more efficiently (allocating a single page can be hugely wasteful even if the individual allocations are smaller than that - so allocating a few pages and packing more allocations into it helps fight internal fragmentation) So this definitely needs to be fixed for 4.7 (and apparently there's a few patches still pending even for 4.8) Linus