* Re: 2.6.27-rc5 OLTP performance regression [not found] <BC02C49EEB98354DBA7F5DD76F2A9E8002FE60F751@azsmsx501.amr.corp.intel.com> @ 2008-09-08 18:00 ` Peter Zijlstra 2008-09-08 18:04 ` Peter Zijlstra 0 siblings, 1 reply; 8+ messages in thread From: Peter Zijlstra @ 2008-09-08 18:00 UTC (permalink / raw) To: Ma, Chinang Cc: Ingo Molnar, Srivatsa Vaddagiri, Mike Galbraith, Gregory Haskins, Steven Rostedt, Nick Piggin, Siddha, Suresh B, Wilcox, Matthew R, Tripathi, Sharad C, Chilukuri, Harita, linux-kernel On Mon, 2008-09-08 at 10:58 -0700, Ma, Chinang wrote: > We found the group scheduler in 2.6.27-rc5 has negative performance > impact on TPC Online Transaction Processing workload. The test was > conducted on a dual-socket quad-core Xeon server. OLTP workload is > disk i/o intensive and we have over 200 database shadow processes > running in the server during this test. Enabling group scheduler > (CONFIG_GROUP_SCHED=y) reduced performance by 2.0%. Oprofile data > indicates significant amount of cycles are spent in tg_shares_up(). > This is new regression as we did not find the same issue with 2.6.26 > kernel group scheduler. Is anybody looking into group scheduler > performance and any idea for reducing the performance impact? Because the .26 group scheduler wasn't SMP aware. The extra cost comes from the fact that .27 is. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2.6.27-rc5 OLTP performance regression 2008-09-08 18:00 ` 2.6.27-rc5 OLTP performance regression Peter Zijlstra @ 2008-09-08 18:04 ` Peter Zijlstra 2008-09-09 21:39 ` Ma, Chinang 0 siblings, 1 reply; 8+ messages in thread From: Peter Zijlstra @ 2008-09-08 18:04 UTC (permalink / raw) To: Ma, Chinang Cc: Ingo Molnar, Srivatsa Vaddagiri, Mike Galbraith, Gregory Haskins, Steven Rostedt, Nick Piggin, Siddha, Suresh B, Wilcox, Matthew R, Tripathi, Sharad C, Chilukuri, Harita, linux-kernel On Mon, 2008-09-08 at 20:00 +0200, Peter Zijlstra wrote: > On Mon, 2008-09-08 at 10:58 -0700, Ma, Chinang wrote: > > We found the group scheduler in 2.6.27-rc5 has negative performance > > impact on TPC Online Transaction Processing workload. The test was > > conducted on a dual-socket quad-core Xeon server. OLTP workload is > > disk i/o intensive and we have over 200 database shadow processes > > running in the server during this test. Enabling group scheduler > > (CONFIG_GROUP_SCHED=y) reduced performance by 2.0%. Oprofile data > > indicates significant amount of cycles are spent in tg_shares_up(). > > This is new regression as we did not find the same issue with 2.6.26 > > kernel group scheduler. Is anybody looking into group scheduler > > performance and any idea for reducing the performance impact? > > Because the .26 group scheduler wasn't SMP aware. The extra cost comes > from the fact that .27 is. What you can do it increase the /proc/sys/kernel/sched_shares_ratelimit value and thereby decrease the accuracy of the SMP fairness of the group scheduler. ^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: 2.6.27-rc5 OLTP performance regression 2008-09-08 18:04 ` Peter Zijlstra @ 2008-09-09 21:39 ` Ma, Chinang 2008-09-10 12:26 ` Ingo Molnar 0 siblings, 1 reply; 8+ messages in thread From: Ma, Chinang @ 2008-09-09 21:39 UTC (permalink / raw) To: Peter Zijlstra Cc: Ingo Molnar, Srivatsa Vaddagiri, Mike Galbraith, Gregory Haskins, Steven Rostedt, Nick Piggin, Siddha, Suresh B, Wilcox, Matthew R, Tripathi, Sharad C, Chilukuri, Harita, linux-kernel Peter, We increased sched_shares_ratelimit and were able to recover the 2% performance regression. Thanks, -----Original Message----- From: Peter Zijlstra [mailto:peterz@infradead.org] Sent: Monday, September 08, 2008 11:04 AM To: Ma, Chinang Cc: Ingo Molnar; Srivatsa Vaddagiri; Mike Galbraith; Gregory Haskins; Steven Rostedt; Nick Piggin; Siddha, Suresh B; Wilcox, Matthew R; Tripathi, Sharad C; Chilukuri, Harita; linux-kernel@vger.kernel.org Subject: Re: 2.6.27-rc5 OLTP performance regression On Mon, 2008-09-08 at 20:00 +0200, Peter Zijlstra wrote: > On Mon, 2008-09-08 at 10:58 -0700, Ma, Chinang wrote: > > We found the group scheduler in 2.6.27-rc5 has negative performance > > impact on TPC Online Transaction Processing workload. The test was > > conducted on a dual-socket quad-core Xeon server. OLTP workload is > > disk i/o intensive and we have over 200 database shadow processes > > running in the server during this test. Enabling group scheduler > > (CONFIG_GROUP_SCHED=y) reduced performance by 2.0%. Oprofile data > > indicates significant amount of cycles are spent in tg_shares_up(). > > This is new regression as we did not find the same issue with 2.6.26 > > kernel group scheduler. Is anybody looking into group scheduler > > performance and any idea for reducing the performance impact? > > Because the .26 group scheduler wasn't SMP aware. The extra cost comes > from the fact that .27 is. What you can do it increase the /proc/sys/kernel/sched_shares_ratelimit value and thereby decrease the accuracy of the SMP fairness of the group scheduler. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2.6.27-rc5 OLTP performance regression 2008-09-09 21:39 ` Ma, Chinang @ 2008-09-10 12:26 ` Ingo Molnar 2008-09-10 16:14 ` Ma, Chinang 0 siblings, 1 reply; 8+ messages in thread From: Ingo Molnar @ 2008-09-10 12:26 UTC (permalink / raw) To: Ma, Chinang Cc: Peter Zijlstra, Srivatsa Vaddagiri, Mike Galbraith, Gregory Haskins, Steven Rostedt, Nick Piggin, Siddha, Suresh B, Wilcox, Matthew R, Tripathi, Sharad C, Chilukuri, Harita, linux-kernel * Ma, Chinang <chinang.ma@intel.com> wrote: > Peter, > We increased sched_shares_ratelimit and were able to recover > the 2% performance regression. [...] great. Could you please post a patch for that? Ingo ^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: 2.6.27-rc5 OLTP performance regression 2008-09-10 12:26 ` Ingo Molnar @ 2008-09-10 16:14 ` Ma, Chinang 2008-09-10 17:34 ` Ingo Molnar 0 siblings, 1 reply; 8+ messages in thread From: Ma, Chinang @ 2008-09-10 16:14 UTC (permalink / raw) To: Ingo Molnar Cc: Peter Zijlstra, Srivatsa Vaddagiri, Mike Galbraith, Gregory Haskins, Steven Rostedt, Nick Piggin, Siddha, Suresh B, Wilcox, Matthew R, Tripathi, Sharad C, Chilukuri, Harita, linux-kernel I increased the /proc/sys/kernel/sched_shares_ratelimit from 1 millisecond to one second to reduce the frequency of shares update. That was okay for OLTP workload. As Peter mentioned, a larger value will reduce the accuracy of SMP fairness for group scheduler and the ratelimit and using a larger default value may not be good for general case. Thanks, Chinang -----Original Message----- From: Ingo Molnar [mailto:mingo@elte.hu] Sent: Wednesday, September 10, 2008 5:26 AM To: Ma, Chinang Cc: Peter Zijlstra; Srivatsa Vaddagiri; Mike Galbraith; Gregory Haskins; Steven Rostedt; Nick Piggin; Siddha, Suresh B; Wilcox, Matthew R; Tripathi, Sharad C; Chilukuri, Harita; linux-kernel@vger.kernel.org Subject: Re: 2.6.27-rc5 OLTP performance regression * Ma, Chinang <chinang.ma@intel.com> wrote: > Peter, > We increased sched_shares_ratelimit and were able to recover > the 2% performance regression. [...] great. Could you please post a patch for that? Ingo ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2.6.27-rc5 OLTP performance regression 2008-09-10 16:14 ` Ma, Chinang @ 2008-09-10 17:34 ` Ingo Molnar 2008-09-11 0:07 ` Ma, Chinang 2008-09-25 21:04 ` Ma, Chinang 0 siblings, 2 replies; 8+ messages in thread From: Ingo Molnar @ 2008-09-10 17:34 UTC (permalink / raw) To: Ma, Chinang Cc: Peter Zijlstra, Srivatsa Vaddagiri, Mike Galbraith, Gregory Haskins, Steven Rostedt, Nick Piggin, Siddha, Suresh B, Wilcox, Matthew R, Tripathi, Sharad C, Chilukuri, Harita, linux-kernel * Ma, Chinang <chinang.ma@intel.com> wrote: > I increased the /proc/sys/kernel/sched_shares_ratelimit from 1 > millisecond to one second to reduce the frequency of shares update. > That was okay for OLTP workload. As Peter mentioned, a larger value > will reduce the accuracy of SMP fairness for group scheduler and the > ratelimit and using a larger default value may not be good for general > case. does 10 msecs already get you most of the 2%? 1000 millisecond sounds very (and probably unacceptable) coarse. Ingo ^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: 2.6.27-rc5 OLTP performance regression 2008-09-10 17:34 ` Ingo Molnar @ 2008-09-11 0:07 ` Ma, Chinang 2008-09-25 21:04 ` Ma, Chinang 1 sibling, 0 replies; 8+ messages in thread From: Ma, Chinang @ 2008-09-11 0:07 UTC (permalink / raw) To: Ingo Molnar Cc: Peter Zijlstra, Srivatsa Vaddagiri, Mike Galbraith, Gregory Haskins, Steven Rostedt, Nick Piggin, Siddha, Suresh B, Wilcox, Matthew R, Tripathi, Sharad C, Chilukuri, Harita, linux-kernel When set to 10 ms the regression is about 0.4%. We get most of the 2%. Chinang -----Original Message----- From: Ingo Molnar [mailto:mingo@elte.hu] Sent: Wednesday, September 10, 2008 10:35 AM To: Ma, Chinang Cc: Peter Zijlstra; Srivatsa Vaddagiri; Mike Galbraith; Gregory Haskins; Steven Rostedt; Nick Piggin; Siddha, Suresh B; Wilcox, Matthew R; Tripathi, Sharad C; Chilukuri, Harita; linux-kernel@vger.kernel.org Subject: Re: 2.6.27-rc5 OLTP performance regression * Ma, Chinang <chinang.ma@intel.com> wrote: > I increased the /proc/sys/kernel/sched_shares_ratelimit from 1 > millisecond to one second to reduce the frequency of shares update. > That was okay for OLTP workload. As Peter mentioned, a larger value > will reduce the accuracy of SMP fairness for group scheduler and the > ratelimit and using a larger default value may not be good for general > case. does 10 msecs already get you most of the 2%? 1000 millisecond sounds very (and probably unacceptable) coarse. Ingo ^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: 2.6.27-rc5 OLTP performance regression 2008-09-10 17:34 ` Ingo Molnar 2008-09-11 0:07 ` Ma, Chinang @ 2008-09-25 21:04 ` Ma, Chinang 1 sibling, 0 replies; 8+ messages in thread From: Ma, Chinang @ 2008-09-25 21:04 UTC (permalink / raw) To: Ma, Chinang, Ingo Molnar Cc: Peter Zijlstra, Srivatsa Vaddagiri, Mike Galbraith, Gregory Haskins, Steven Rostedt, Nick Piggin, Siddha, Suresh B, Wilcox, Matthew R, Tripathi, Sharad C, Chilukuri, Harita, linux-kernel We also tested sched_shares_ratelimit = 100 ms and reduce the OLTP regression to 0.2%. (very small return in performance with 10x the value). Can we count on this sched_shares_ratelimit tunable be always accessible for workload that does not depend on group fairness? Chinang -----Original Message----- From: Ma, Chinang Sent: Wednesday, September 10, 2008 5:08 PM To: Ingo Molnar Cc: Peter Zijlstra; Srivatsa Vaddagiri; Mike Galbraith; Gregory Haskins; Steven Rostedt; Nick Piggin; Siddha, Suresh B; Wilcox, Matthew R; Tripathi, Sharad C; Chilukuri, Harita; linux-kernel@vger.kernel.org Subject: RE: 2.6.27-rc5 OLTP performance regression When set to 10 ms the regression is about 0.4%. We get most of the 2%. Chinang -----Original Message----- From: Ingo Molnar [mailto:mingo@elte.hu] Sent: Wednesday, September 10, 2008 10:35 AM To: Ma, Chinang Cc: Peter Zijlstra; Srivatsa Vaddagiri; Mike Galbraith; Gregory Haskins; Steven Rostedt; Nick Piggin; Siddha, Suresh B; Wilcox, Matthew R; Tripathi, Sharad C; Chilukuri, Harita; linux-kernel@vger.kernel.org Subject: Re: 2.6.27-rc5 OLTP performance regression * Ma, Chinang <chinang.ma@intel.com> wrote: > I increased the /proc/sys/kernel/sched_shares_ratelimit from 1 > millisecond to one second to reduce the frequency of shares update. > That was okay for OLTP workload. As Peter mentioned, a larger value > will reduce the accuracy of SMP fairness for group scheduler and the > ratelimit and using a larger default value may not be good for general > case. does 10 msecs already get you most of the 2%? 1000 millisecond sounds very (and probably unacceptable) coarse. Ingo ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-09-25 21:04 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <BC02C49EEB98354DBA7F5DD76F2A9E8002FE60F751@azsmsx501.amr.corp.intel.com>
2008-09-08 18:00 ` 2.6.27-rc5 OLTP performance regression Peter Zijlstra
2008-09-08 18:04 ` Peter Zijlstra
2008-09-09 21:39 ` Ma, Chinang
2008-09-10 12:26 ` Ingo Molnar
2008-09-10 16:14 ` Ma, Chinang
2008-09-10 17:34 ` Ingo Molnar
2008-09-11 0:07 ` Ma, Chinang
2008-09-25 21:04 ` Ma, Chinang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®