lkml.org 
[lkml]   [2008]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 00/41] cpu alloc / cpu ops v3: Optimize per cpu access
Andrew Morton a écrit :
>
> It was just an example. There will be others.
>
> tcp_v4_md5_do_add
> ->tcp_alloc_md5sig_pool
> ->__tcp_alloc_md5sig_pool
>
> does an alloc_percpu for each md5-capable TCP connection. I think - it
> doesn't matter really, because something _could_. And if something
> _does_, we're screwed.
>
Last time I took a look on this stuff, this was a percpu allocation for
all connections, not for each TCP session.
(It should be static, instead of dynamic )

Really, percpu allocations are currently not frequent at all.

vmalloc()/vfreee() are way more frequent and still use a list.





--
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-30 12:31    [W:0.083 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site