lkml.org 
[lkml]   [2011]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] cpumask: convert cpumask_of_cpu() with cpumask_of()
>> The trick is,
>> - Typical linux userland applications don't use mempolicy and/or cpusets
>> API at all.
>> - Then, 99.99% thread's tsk->cpus_alloed have cpu_all_mask.
>> - cpu_all_mask case, every thread can share the same bitmap. It may help to
>> reduce L1 cache miss in scheduler.
>>
>> What do you think?
>
> Nice!
>
> If you finish the first patch (sort the TODOs) I'll take it.

Yeah, now I'm submitting a lot of cpumask cleanup patches to various arch and
subsystems. So, I expect I can finish this work in June.

> I'm unsure about the PF_THREAD_UNBOUND thing though, then again, the
> alternative is adding another struct cpumask * and have that point to
> the shared mask or the private mask.

Ahhh, I'm sorry. My explanation was bad. PF_THREAD_UNBOUND is not my point.
It's only concept proof patch, not for submitting. yes, I did cheat for getting
number easily. I think the good way is probably to add another cpumask* and
implement COW shared mask. but I'm ok other way too.


> But yeah, looks quite feasible.

Thank you to pay attention my patch!



\
 
 \ /
  Last update: 2011-05-30 03:43    [W:0.076 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site