From mboxrd@z Thu Jan 1 00:00:00 1970 From: Theodore Ts'o Subject: Re: [PATCH 3/3] sched: Implement interface for cgroup unified hierarchy Date: Sun, 25 Oct 2015 06:41:45 -0400 Message-ID: <20151025104145.GE27558@thunk.org> References: <20150912144007.GA8942@htj.duckdns.org> <20151001184629.GB26498@mtj.duckdns.org> <20151023222110.GA4390@mtj.duckdns.org> <1445661367.3218.62.camel@gmail.com> <20151025021829.GA15471@mtj.duckdns.org> <20151025093331.GA4834@gmail.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=9wFaYhlwqD2b4C+X68JmpvGyRcrWG/seJPvos0LLs8o=; b=uCooAznRB0iEIVM1gNB1aoiu8QBWo2vZy25hlKdGnqyE0DjCvQsQcLE+6nR9f95S6weMtHmHjdfdJSmYbTdIUjEPx1k7BQvGx9tiU+KQUPEu34bHxQ9D1rUujBxIOgRGsHW8daQacnaU3dSwD+fAZCkfIANtgsEn/uCKml3RJTI=; Content-Disposition: inline In-Reply-To: <20151025093331.GA4834-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Ingo Molnar Cc: Linus Torvalds , Tejun Heo , Mike Galbraith , Paul Turner , Peter Zijlstra , Ingo Molnar , Johannes Weiner , Li Zefan , cgroups , LKML , kernel-team , Andrew Morton On Sun, Oct 25, 2015 at 10:33:32AM +0100, Ingo Molnar wrote: > > Hm, that's weird - all our sched_*() system call APIs that set task scheduling > priorities are fundamentally per thread, not per process. Same goes for the old > sys_nice() interface. The scheduler has no real notion of 'process', and certainly > not at the system call level. > I suspect the main issue is that the games programmers were trying to access it via libc / pthreads, which hides a lot of the power available at the raw syscall level. This is probably more of a "tutorial needed for userspace programmers" issue, at a guess. - Ted