Re: [PATCH] cpuset oom lock fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kirill wrote:
> To tell the truth I don't like such approaches, when more and more hooks 
> are create and scattered all aroung. maybe it is possible to split 
> semaphore to lock and sem and use lock where possible?

Hmmm ...

I'm not sure what to make of your comments.

I guess you are suggesting a different locking scheme with your phrase
"split semaphore to lock and sem and use lock", but I can't parse
your phrase, nor guess what you have in mind.

And I am guessing that you recommend this alternative locking scheme
(whatever it is) because you think it would reduce the number of
cpuset_*() hooks in the kernel -- or at least avoid this one in the
oom code.

There are various reasons I could imagine why you might not like
"more and more hooks", but I don't have a guess as to which of these
possible reasons are your chief concerns, so cannot evaluate whether
said locking scheme would address those concerns.

I just went through a substantial amount of work refining and fine
tuning the cpuset locking structure, and at the moment am both
pleased with the result, and not enthusiastic about recommendations
to rework it all again.  The result we have now is very low impact
on the important code paths (oom is not an important code path,
performance wise).

So ...

Could you please elaborate on why you don't like the hooks, on
what this alternative locking scheme is (if indeed that's what
you meant) and how such a scheme addresses your concerns with
the hooks?

Take a close look at the comments in kernel/cpuset.c, explaining
the current cpuset locking mechanims, as part of your recommending
alternatives.

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <[email protected]> 1.925.600.0401
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux