Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262639AbVAVAic (ORCPT ); Fri, 21 Jan 2005 19:38:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262640AbVAVASL (ORCPT ); Fri, 21 Jan 2005 19:18:11 -0500 Received: from waste.org ([216.27.176.166]:34951 "EHLO waste.org") by vger.kernel.org with ESMTP id S262610AbVAVAJz (ORCPT ); Fri, 21 Jan 2005 19:09:55 -0500 Date: Fri, 21 Jan 2005 18:09:48 -0600 From: Matt Mackall To: Andrew Morton X-PatchBomber: http://selenic.com/scripts/mailpatches Cc: Linux Kernel In-Reply-To: <4.464233479@selenic.com> Message-Id: <5.464233479@selenic.com> Subject: [PATCH 4/8] core-small: Shrink PID lookup tables Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1061 Lines: 33 CONFIG_CORE_SMALL reduce size of pidmap table for small machines Signed-off-by: Matt Mackall Index: tiny/include/linux/threads.h =================================================================== --- tiny.orig/include/linux/threads.h 2004-12-04 15:42:35.000000000 -0800 +++ tiny/include/linux/threads.h 2004-12-04 19:42:19.032212529 -0800 @@ -25,11 +25,19 @@ /* * This controls the default maximum pid allocated to a process */ +#ifdef CONFIG_CORE_SMALL +#define PID_MAX_DEFAULT 0x1000 +#else #define PID_MAX_DEFAULT 0x8000 +#endif /* * A maximum of 4 million PIDs should be enough for a while: */ +#ifdef CONFIG_CORE_SMALL +#define PID_MAX_LIMIT (PAGE_SIZE*8) /* one pidmap entry */ +#else #define PID_MAX_LIMIT (sizeof(long) > 4 ? 4*1024*1024 : PID_MAX_DEFAULT) +#endif #endif - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/