From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754804AbYKKWcs (ORCPT ); Tue, 11 Nov 2008 17:32:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754649AbYKKWc2 (ORCPT ); Tue, 11 Nov 2008 17:32:28 -0500 Received: from ns2.suse.de ([195.135.220.15]:51271 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754146AbYKKWc0 (ORCPT ); Tue, 11 Nov 2008 17:32:26 -0500 Date: Tue, 11 Nov 2008 23:32:25 +0100 Message-ID: From: Takashi Iwai To: Eric Dumazet Cc: Rusty Russell , Andreas Gruenbacher , Jan Blunck , Andrew Morton , linux-kernel@vger.kernel.org, Mike Travis Subject: Re: [PATCH] Allocate module.ref array dynamically In-Reply-To: <491A0416.1040809@cosmosbay.com> References: <491A01E2.2010701@cosmosbay.com> <491A0416.1040809@cosmosbay.com> User-Agent: Wanderlust/2.12.0 (Your Wildest Dreams) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/22.3 (x86_64-suse-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Tue, 11 Nov 2008 23:15:50 +0100, Eric Dumazet wrote: > > Eric Dumazet a écrit : > > Takashi Iwai a écrit : > >> Hi, > >> > >> we found that the kernel module sizes and memory footprints > >> grow drastically when NR_CPUS is high. For example, with > >> NR_CPUS=4096, SUSE kernel packages weigh over 500MB (even w/o debug > >> info). > >> > >> A part of the reason is the fixed size array in struct module. > >> The patch below fixes the problem by allocating it dynamically. > >> With the patch, the size can go down to 20MB. > >> > >> > >> Any comments/suggestions appreciated. > >> > > > > Many attempts were done on this area on the past. > > Forgot to include a link to previous attempt : http://lkml.org/lkml/2008/5/15/402 Thanks, an interesting thread. Takashi