Received: by 10.192.165.148 with SMTP id m20csp5182971imm; Tue, 1 May 2018 10:24:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrND6qeGCtQrxZbjO4HRjvJtGf3wFQaZjH1B9hC72XPBCbOsO1KcZjVq8nWV+mn6W8k3XnH X-Received: by 2002:a17:902:20eb:: with SMTP id v40-v6mr16883249plg.277.1525195455449; Tue, 01 May 2018 10:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525195455; cv=none; d=google.com; s=arc-20160816; b=pUoQ9OjrtRf7oDnMx8cC6Cddl+aAozq7I4I/xx91Of9AWrDCJ1IrEMPwbMJTLz27bT DnjnNBd7mAym+x8Af7AB8MtDxtsyjnxi0R3Jj330JmYoPl9qv86VOzrEZP1q3uZ59tPx ZUjvH3tW9ZuHyqvjalM5fWs7t50dQ3CGyP+/BfWIEvgJFpyj/NeZgMz0l64JlKT70I8E pMfOeApJh1I4lAPLP8geaiDS445pU2NFFBvZkb5WB8VGcUFI3VTUZHigQcAuHHmQR7// aYZa9FmQKK43/xEVwf0uQhACWR4szPM/n5c67tbnrDMlSnGUxaO9yB/wfQgVhHjWBTRP IyOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from :arc-authentication-results; bh=2Fb0Dy63ddtuEDQoyeLFmxc7RKYigyKCUgSnu2JhAds=; b=oI5DR1BBGci6gYeIv4SDpWQMuMDquboJY5fBHqkk2g/uxCeX/93+gqdOkudE/Ymd5O FlVQOcbQHXGIo+Gvi3rYAWLKKB7+4SJ42/q7SwpB7psCUdI/jk2wge71ck65jG+5CBbt /XBydHcfzTuXVjeXl9znXkFaSNS9p5o5VN07AyC2vCzD8IS6M/hthhKHEEY6sHYaOUcK L19H8N67NA5OAqBOHsLmVUCoBjceLje+rO4WsChVnsDAIfDn1Da87j1dT6aGrKJcbNmB /y7/0xQle0ExNpoYYAtP0MiYdG6IhZdWSbINh3YD+lwMfws+Y6CAQMsYxWZ7Pie/fGuC 2SoQ== 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 v4-v6si9827242ply.351.2018.05.01.10.24.01; Tue, 01 May 2018 10:24:15 -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; 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 S1756263AbeEARWQ (ORCPT + 99 others); Tue, 1 May 2018 13:22:16 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:53885 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754790AbeEARWM (ORCPT ); Tue, 1 May 2018 13:22:12 -0400 Received: from in02.mta.xmission.com ([166.70.13.52]) by out02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1fDYyg-0003Xb-Ix; Tue, 01 May 2018 11:22:10 -0600 Received: from [97.119.174.25] (helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1fDYyf-00080K-Tx; Tue, 01 May 2018 11:22:10 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Michal Hocko Cc: Kirill Tkhai , akpm@linux-foundation.org, peterz@infradead.org, oleg@redhat.com, viro@zeniv.linux.org.uk, mingo@kernel.org, paulmck@linux.vnet.ibm.com, keescook@chromium.org, riel@redhat.com, tglx@linutronix.de, kirill.shutemov@linux.intel.com, marcos.souza.org@gmail.com, hoeun.ryu@gmail.com, pasha.tatashin@oracle.com, gs051095@gmail.com, dhowells@redhat.com, rppt@linux.vnet.ibm.com, linux-kernel@vger.kernel.org References: <152473763015.29458.1131542311542381803.stgit@localhost.localdomain> <20180426130700.GP17484@dhcp22.suse.cz> <87efj2q6sq.fsf@xmission.com> <20180426192818.GX17484@dhcp22.suse.cz> <20180427070848.GA17484@dhcp22.suse.cz> <87r2n01q58.fsf@xmission.com> Date: Tue, 01 May 2018 12:22:04 -0500 In-Reply-To: <87r2n01q58.fsf@xmission.com> (Eric W. Biederman's message of "Fri, 27 Apr 2018 13:05:23 -0500") Message-ID: <87o9hz2sw3.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1fDYyf-00080K-Tx;;;mid=<87o9hz2sw3.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=97.119.174.25;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX19wtSI5TP+DbFXdxhoTwi/6wvub8OboKtk= X-SA-Exim-Connect-IP: 97.119.174.25 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa06.xmission.com X-Spam-Level: ** X-Spam-Status: No, score=2.5 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,T_TM2_M_HEADER_IN_MSG,T_TooManySym_01,T_TooManySym_02, T_TooManySym_03,XMGappySubj_01,XMNoVowels,XMSubLong autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.7 XMSubLong Long Subject * 0.5 XMGappySubj_01 Very gappy subject * 1.5 XMNoVowels Alpha-numberic number with no vowels * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa06 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_03 6+ unique symbols in subject * 0.0 T_TooManySym_02 5+ unique symbols in subject * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa06 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: **;Michal Hocko X-Spam-Relay-Country: X-Spam-Timing: total 205 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 4.6 (2.2%), b_tie_ro: 3.7 (1.8%), parse: 0.75 (0.4%), extract_message_metadata: 12 (5.8%), get_uri_detail_list: 0.81 (0.4%), tests_pri_-1000: 7 (3.3%), tests_pri_-950: 1.21 (0.6%), tests_pri_-900: 1.01 (0.5%), tests_pri_-400: 17 (8.5%), check_bayes: 16 (8.0%), b_tokenize: 5 (2.6%), b_tok_get_all: 5 (2.6%), b_comp_prob: 1.59 (0.8%), b_tok_touch_all: 2.5 (1.2%), b_finish: 0.57 (0.3%), tests_pri_0: 150 (73.2%), check_dkim_signature: 0.45 (0.2%), check_dkim_adsp: 2.6 (1.3%), tests_pri_500: 9 (4.2%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH 0/4] exit: Make unlikely case in mm_update_next_owner() more scalable X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ebiederm@xmission.com (Eric W. Biederman) writes: > Kirill Tkhai do you think you would be able adapt Michal Hoko's old > patch at https://marc.info/?l=linux-kernel&m=143635857131756&w=2 > that replaces mm->owner with mm->memcg? Ouch. At least compared to the current kernel your patch is wide of the mark of what is needed to use mm->memcg correctly. I have however written my own and if someone can review it I would really appreciate it. It looks like we can change mm->owner to mm->memcg without too much trouble and reduce the amount of code in the kernel at the same time. Eric