From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757929AbYLLMhn (ORCPT ); Fri, 12 Dec 2008 07:37:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756407AbYLLMhd (ORCPT ); Fri, 12 Dec 2008 07:37:33 -0500 Received: from ecfrec.frec.bull.fr ([129.183.4.8]:45269 "EHLO ecfrec.frec.bull.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756390AbYLLMhd (ORCPT ); Fri, 12 Dec 2008 07:37:33 -0500 Message-ID: <49425B0A.9090808@ext.bull.net> Date: Fri, 12 Dec 2008 13:37:30 +0100 From: "Gilles.Carry" User-Agent: Thunderbird 2.0.0.12 (X11/20080213) MIME-Version: 1.0 To: "Ma, Chinang" Cc: Ingo Molnar , "linux-kernel@vger.kernel.org" , "Wilcox, Matthew R" , "Van De Ven, Arjan" , "Styner, Douglas W" , "Chilukuri, Harita" , "Wang, Peter Xihong" , "Nueckel, Hubert" Subject: Re: CFS scheduler OLTP perforamnce References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ma, Chinang a écrit : > We are evaluating the CFS OLTP performance with 2.6.28-c7 kernel. In this workload once a database foreground process commit a transaction it will signal the log writer process to write to the log file. Foreground processes will wait until log writer finish writing and wake them up. With hundreds of foreground process running in the system, it is important that the log writer get to run as soon as data is available. > > Here are the experiments we have done with 2.6.28-rc7. > 1. Increase log writer priority "renice -20 " while keeping all other processes running in default CFS priority. We get a baseline performance with log latency (scheduling + i/o) at 7 ms. > > 2. To reduce log latency, we set log writer to SCHED_RR with higher priority. We tried "chrt -p 49 " and got 0.7% boost in performance with log latency reduced to 6.4 ms. > > It seems that in this case renice to higher priority with CFS did not reduce scheduling latency as well as SCHED_RR. Maybe you should try an RT kernel. Gilles.