lkml.org 
[lkml]   [2008]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] modules: Use a better scheme for refcounting
Andi Kleen a écrit :
> Eric Dumazet <dada1@cosmosbay.com> writes:
>
>> Instead of wasting NR_CPUS*128 bytes (on i386), we now use
>> num_possible_cpus*sizeof(local_t) bytes.
>>
>> On a typical distro, where NR_CPUS=8,
>>
>
> More typical would be NR_CPUS=128, with NR_CPUS=four digits
> when Mike Travis et.al. are finished
>
>
Yes. With NR_CPUS=4096, we save about half a megabyte per module. (!!!)

>> shiping 2000 modules, we reduce
>>
>
> Surely only the loaded modules count? Perhaps 20-30.
>
>
Well, I should have stated that this saving also takes place in the
module disk file.
(The "struct module" is included in it, in the
".gnu.linkonce.this_module" section)
Here on my distro, around 2000 modules are shiped.
> But it's a cool improvement. Very nice.
>
Thanks




--
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/

\
 
 \ /
  Last update: 2008-05-16 06:55    [W:0.138 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site