Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751831AbaKYTkU (ORCPT ); Tue, 25 Nov 2014 14:40:20 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:38692 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751117AbaKYTkS (ORCPT ); Tue, 25 Nov 2014 14:40:18 -0500 Message-ID: <5474DAAF.2050300@oracle.com> Date: Tue, 25 Nov 2014 12:38:23 -0700 From: Khalid Aziz Organization: Oracle Corp User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Mike Galbraith CC: Thomas Gleixner , corbet@lwn.net, mingo@redhat.com, hpa@zytor.com, peterz@infradead.org, riel@redhat.com, akpm@linux-foundation.org, rientjes@google.com, ak@linux.intel.com, mgorman@suse.de, liwanp@linux.vnet.ibm.com, raistlin@linux.it, kirill.shutemov@linux.intel.com, atomlin@redhat.com, avagin@openvz.org, gorcunov@openvz.org, serge.hallyn@canonical.com, athorlton@sgi.com, oleg@redhat.com, vdavydov@parallels.com, daeseok.youn@gmail.com, keescook@chromium.org, yangds.fnst@cn.fujitsu.com, sbauer@eng.utah.edu, vishnu.ps@samsung.com, axboe@fb.com, paulmck@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH v3] sched/fair: Add advisory flag for borrowing a timeslice References: <1416862595-24513-1-git-send-email-khalid.aziz@oracle.com> <1416889208.4335.127.camel@maggy.simpson.net> <54749725.3050307@oracle.com> <1416937564.3512.15.camel@maggy.simpson.net> In-Reply-To: <1416937564.3512.15.camel@maggy.simpson.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/25/2014 10:46 AM, Mike Galbraith wrote: > On Tue, 2014-11-25 at 07:50 -0700, Khalid Aziz wrote: > >> It is definitely not an attempt to solve any kind of RT problem. > > No no, I'm saying that giving certain tasks special dispensations > effectively elevates them. Temporarily or otherwise, they play by > different rules, will block more deserving tasks, and it's not cut and > dried that that blocking will not do more harm than good. > > Is it a clear win to make say some kworker or other global asset wait > when it could have preempted and been gone in usecs? Nope. I understand. You are right, this allows some apps to gain special dispensation. On a general purpose system, I agree this can be problematic and it is important that it be easy to disable this. This is why I added sysctl tunable and made "disabled" the default state for this feature. Allowing temporary elevation of a task as part of the overall system design is ok when it is intentional and done after considering impact on other tasks running on the system. A large database server typically is not a general purpose server that runs any arbitrary tasks. These systems are tweaked in many ways to ensure optimal performance for database and not necessarily other apps. This patch gives admins one more knob to turn when maximizing performance. Any general purpose system that sees no use for this feature can leave this feature in its default state of disabled. I can see usefulness of this patch for other servers used in telecommunication infrastructure for instance, where the server is dedicated to specific task(s) and needs to update critical database with minimal contention, for example switch map on a telco switch controller or channel allocation map on a base station controller. I am sure people more familiar with other industries can see usefulness in other dedicated applications. Thanks, Khalid -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/