Re: [RFC] optimize the locking in the rebalance_domains()

2012-07-23 Thread Vlad Zolotarov
On Mon, 2012-07-23 at 11:25 +0900, Namhyung Kim wrote: > Hi, Vlad > > On Sun, 22 Jul 2012 19:23:55 +0300, Vlad Zolotarov wrote: > > Ingo, we've noticed that rebalance_domains() will try to take a lock > > every time it's called (every jiffy) if SD_SERIALIZE is set (which is a > > default configura

Re: [RFC] optimize the locking in the rebalance_domains()

2012-07-22 Thread Namhyung Kim
Hi, Vlad On Sun, 22 Jul 2012 19:23:55 +0300, Vlad Zolotarov wrote: > Ingo, we've noticed that rebalance_domains() will try to take a lock > every time it's called (every jiffy) if SD_SERIALIZE is set (which is a > default configuration). This is done regardless the fact that maybe > there hasn't p

Re: [RFC] optimize the locking in the rebalance_domains()

2012-07-22 Thread Vlad Zolotarov
On Sun, 2012-07-22 at 19:23 +0300, Vlad Zolotarov wrote: > Ingo, we've noticed that rebalance_domains() will try to take a lock > every time it's called (every jiffy) This is of course when NOHZ is off... ;) > if SD_SERIALIZE is set (which is a > default configuration). This is done regardless t

[RFC] optimize the locking in the rebalance_domains()

2012-07-22 Thread Vlad Zolotarov
Ingo, we've noticed that rebalance_domains() will try to take a lock every time it's called (every jiffy) if SD_SERIALIZE is set (which is a default configuration). This is done regardless the fact that maybe there hasn't passed enough time since the last rebalancing in which case there is no need