From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753386AbbCBKBJ (ORCPT ); Mon, 2 Mar 2015 05:01:09 -0500 Received: from cantor2.suse.de ([195.135.220.15]:45022 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750906AbbCBKBG (ORCPT ); Mon, 2 Mar 2015 05:01:06 -0500 Date: Mon, 2 Mar 2015 11:01:03 +0100 From: Jean Delvare To: LKML Cc: Andrew Morton Subject: [PATCH] fork_init: Update max_threads comment Message-ID: <20150302110103.02ff7dae@endymion.delvare> Organization: SUSE Linux X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.23; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The comment explaining what value max_threads is set to is outdated. The maximum memory consumption ratio for thread structures was 1/2 until February 2002, then it was briefly changed to 1/16 before being set to 1/8 which we still use today. The comment was never updated to reflect that change, it's about time. Signed-off-by: Jean Delvare Cc: Andrew Morton --- kernel/fork.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-4.0-rc1.orig/kernel/fork.c 2015-02-23 03:21:14.000000000 +0100 +++ linux-4.0-rc1/kernel/fork.c 2015-03-02 10:48:45.407215590 +0100 @@ -270,8 +270,8 @@ void __init fork_init(unsigned long memp /* * The default maximum number of threads is set to a safe - * value: the thread structures can take up at most half - * of memory. + * value: the thread structures can take up at most one + * eighth of the memory. */ max_threads = mempages / (8 * THREAD_SIZE / PAGE_SIZE); -- Jean Delvare SUSE L3 Support