lkml.org 
[lkml]   [2008]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [Patch] Scale pidhash_shift/pidhash_size up based on num_possible_cpus().
Robin Holt <holt@sgi.com> writes:

> Like so???
>
> I have not tested this yet.

Looks reasonable to me.

In what circumstances was the lookup in the pid hash table with
long changes causing a performance slowdown?. We don't perform
a lot of lookups.


> - pidhash_shift = min(12, pidhash_shift);
> + pidhash_shift = min(fls(PID_MAX_LIMIT) - 6, pidhash_shift);
> pidhash_size = 1 << pidhash_shift;


\
 
 \ /
  Last update: 2008-08-01 00:15    [W:0.048 / U:1.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site