[PATCH v3 14/17] Optimize our cpu selection based on topology

2007-11-16 Thread Steven Rostedt
From: Gregory Haskins <[EMAIL PROTECTED]> The current code base assumes a relatively flat CPU/core topology and will route RT tasks to any CPU fairly equally. In the real world, there are various toplogies and affinities that govern where a task is best suited to run with the smallest amount of o

[PATCH v3 04/17] RT overloaded runqueues accounting

2007-11-16 Thread Steven Rostedt
This patch adds an RT overload accounting system. When a runqueue has more than one RT task queued, it is marked as overloaded. That is that it is a candidate to have RT tasks pulled from it. Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- kernel/sched_rt.c | 36 ++

[PATCH v3 12/17] Allow current_cpu to be included in search

2007-11-16 Thread Steven Rostedt
From: Gregory Haskins <[EMAIL PROTECTED]> It doesn't hurt if we allow the current CPU to be included in the search. We will just simply skip it later if the current CPU turns out to be the lowest. We will use this later in the series Signed-off-by: Gregory Haskins <[EMAIL PROTECTED]> Signed-off

[PATCH v3 06/17] wake up balance RT

2007-11-16 Thread Steven Rostedt
This patch adds pushing of overloaded RT tasks from a runqueue that is having tasks (most likely RT tasks) added to the run queue. TODO: We don't cover the case of waking of new RT tasks (yet). Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- kernel/sched.c|3 +++ kernel/sched_rt.c

[PATCH v3 10/17] Remove some CFS specific code from the wakeup path of RT tasks

2007-11-16 Thread Steven Rostedt
From: Gregory Haskins <[EMAIL PROTECTED]> The current wake-up code path tries to determine if it can optimize the wake-up to "this_cpu" by computing load calculations. The problem is that these calculations are only relevant to CFS tasks where load is king. For RT tasks, priority is king. So th

[PATCH v3 15/17] RT: Optimize rebalancing

2007-11-16 Thread Steven Rostedt
From: Gregory Haskins <[EMAIL PROTECTED]> We have logic to detect whether the system has migratable tasks, but we are not using it when deciding whether to push tasks away. So we add support for considering this new information. Signed-off-by: Gregory Haskins <[EMAIL PROTECTED]> Signed-off-by: S

[PATCH v3 07/17] disable CFS RT load balancing.

2007-11-16 Thread Steven Rostedt
Since we now take an active approach to load balancing, we don't need to balance RT tasks via CFS. In fact, this code was found to pull RT tasks away from CPUS that the active movement performed, resulting in large latencies. Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- kernel/sched_rt.c

[PATCH v3 03/17] push RT tasks

2007-11-16 Thread Steven Rostedt
This patch adds an algorithm to push extra RT tasks off a run queue to other CPU runqueues. When more than one RT task is added to a run queue, this algorithm takes an assertive approach to push the RT tasks that are not running onto other run queues that have lower priority. The way this works i

[PATCH v3 01/17] Add rt_nr_running accounting

2007-11-16 Thread Steven Rostedt
This patch adds accounting to keep track of the number of RT tasks running on a runqueue. This information will be used in later patches. Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- kernel/sched.c|1 + kernel/sched_rt.c | 17 + 2 files changed, 18 insertions(+

[PATCH v3 11/17] RT: Break out the search function

2007-11-16 Thread Steven Rostedt
From: Gregory Haskins <[EMAIL PROTECTED]> Isolate the search logic into a function so that it can be used later in places other than find_locked_lowest_rq(). Signed-off-by: Gregory Haskins <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- kernel/sched_rt.c | 62 +++

[PATCH v3 13/17] RT: Pre-route RT tasks on wakeup

2007-11-16 Thread Steven Rostedt
From: Gregory Haskins <[EMAIL PROTECTED]> In the original patch series that Steven Rostedt and I worked on together, we both took different approaches to low-priority wakeup path. I utilized "pre-routing" (push the task away to a less important RQ before activating) approach, while Steve utilized

[PATCH v3 09/17] Consistency cleanup for this_rq usage

2007-11-16 Thread Steven Rostedt
From: Gregory Haskins <[EMAIL PROTECTED]> "this_rq" is normally used to denote the RQ on the current cpu (i.e. "cpu_rq(this_cpu)"). So clean up the usage of this_rq to be more consistent with the rest of the code. Signed-off-by: Gregory Haskins <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <

[PATCH v3 16/17] Fix schedstat handling

2007-11-16 Thread Steven Rostedt
Gregory Haskins RT balancing broke sched domains. This is a fix to allow it to still work. Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- include/linux/sched.h |3 ++- kernel/sched.c | 17 ++--- kernel/sched_fair.c | 19 ++- kernel/sched_

[PATCH v3 02/17] track highest prio queued on runqueue

2007-11-16 Thread Steven Rostedt
This patch adds accounting to each runqueue to keep track of the highest prio task queued on the run queue. We only care about RT tasks, so if the run queue does not contain any active RT tasks its priority will be considered MAX_RT_PRIO. This information will be used for later patches. Signed-of

[PATCH v3 05/17] pull RT tasks

2007-11-16 Thread Steven Rostedt
This patch adds the algorithm to pull tasks from RT overloaded runqueues. When a pull RT is initiated, all overloaded runqueues are examined for a RT task that is higher in prio than the highest prio task queued on the target runqueue. If another runqueue holds a RT task that is of higher prio tha

Re: [PATCH v3 17/17] (Avoid overload)

2007-11-16 Thread Steven Rostedt
Sorry! I forgot to put in a prologue for this patch. Here it is. This patch changes the searching for a run queue by a waking RT task to try to pick another runqueue if the currently running task is an RT task. The reason is that RT tasks behave different than normal tasks. Preempting a

Re: Is it possible to give the user the option to cancel forkbombs?

2007-11-16 Thread Dane Mutters
I thought you might find this helpful. (I brought this issue up with the Slackware folks once, and they told me basically this.) http://wiki.craz1.homelinux.com/index.php/Linux:Security:Forkbomb I was also told that the ability to spawn such rampant forks/processes is controlled by default in De

Re: Is it possible to give the user the option to cancel forkbombs?

2007-11-16 Thread Peter Zijlstra
On Fri, 2007-11-16 at 22:45 -0800, Dane Mutters wrote: > I thought you might find this helpful. (I brought this issue up with > the Slackware folks once, and they told me basically this.) > > http://wiki.craz1.homelinux.com/index.php/Linux:Security:Forkbomb > > I was also told that the ability

Re: Kconfig: ARCH=x86 causes wrong utsname.machine

2007-11-16 Thread Sam Ravnborg
> > > >Any good suggestions here??? > >UTS_MACHINE is set in top-level Makefile and if we specify > >make ARCH=x86 > >we do not know if i386 or x86_&4 is correct until the configuration > >has been read. > > > >Should we report a "make ARCH=x86" as uname -m == x86?? > > > > That would break 5 year

alpha: fix sg_page breakage

2007-11-16 Thread FUJITA Tomonori
arch/alpha/kernel/pci-noop.c:167: warning: 'virt_to_bus' is deprecated (declared at include2/asm/io.h:117) arch/alpha/kernel/pci-noop.c: In function 'dma_map_sg': arch/alpha/kernel/pci-noop.c:183: error: 'struct scatterlist' has no member named 'page' arch/alpha/kernel/pci-noop.c:184: error: 'str

Re: More LSM vs. Containers (having nothing at all to do with the AppArmor Security Goal)

2007-11-16 Thread Peter Dolding
On Nov 17, 2007 11:08 AM, Crispin Cowan <[EMAIL PROTECTED]> wrote: > Peter Dolding wrote: > >>> What is left unspecified here is 'how' a child 'with its own profile' is > >>> confined here. Are it is confined to just its own profile, it may that > >>> the "complicit process" communication may need

<    1   2   3   4   5