public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.5.64-mm2
@ 2003-03-08  2:51 Andrew Morton
       [not found] ` <1047095352.3483.0.camel@localhost.localdomain>
       [not found] ` <1047095088.727.5.camel@phantasy.awol.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Andrew Morton @ 2003-03-08  2:51 UTC (permalink / raw)
  To: linux-kernel, linux-mm


http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.5/2.5.64/2.5.64-mm2/

Just lots of little stuff here.  Mainly a resync with various people.

Note: there is a change to the console handling code in Linus's tree which
means that if you have both VT console and serial console enabled in kernel
config, the serial console now wins.  Nothing comes out on the screen during
bootup.  It used to be the case that the VT console was initialised first.

If this happens you will need to specify the console device on the boot
command line.

We appear to have at least three use-after-free bugs.  One is fixed here, and
there are extra debugging goodies which may help us find the others.  Please
enable memory debugging and keep an eye open.



Changes since 2.5.64-mm1:


 linus.patch

 Latest -bk

-balance_irq-cleanup.patch
-balance_irq-fix.patch
-rpc_rmdir-fix.patch
-aic-makefile-fix.patch
-flock-fix.patch
-rtc-locking-fix.patch
-sk98-build-fix.patch
-cciss-pci-hotplug-fix.patch
-export-pfn_to_nid.patch
-move-CONFIG_SWAP.patch
-random-stack-use.patch
-inode-pruning-fix.patch
-remove-__pgd_offset.patch
-remove-__pmd_offset.patch
-remove-__pte_offset.patch
-htree-lock_kernel-fix.patch
-pci-1.patch
-pci-2.patch
-pci-3.patch
-pci-4.patch
-pci-5.patch
-elf_core_dump-stack-size-reduction.patch
-uninline-binfmt_elf.patch

 Merged

+register_blkdev-cleanups.patch

 Toward 32-bit dev-t.

-shared-irq-warning.patch

 Dropped.  Need to do something different here.

+as-state-tracking-and-debug.patch
+as-state-tracking-fix.patch
+as-nr_dispatched-atomic-fix.patch

 Anticipatory scheduler work.

-sched-b3.patch

 Sort-of merged.

+vm_area-use-after-free-fix.patch

 Fix the use-after-free in the vma slab cache.

+slab-caller-tracking.patch

 Record the calling function inside slab objects, and report that on
 use-after-free erfors.

+slab-caller-tracking-symbolic.patch

 Teach the above about kallsyms.

+CONFIG_SWAP-fix.patch

 Fix up CONFIG_SWAP menus

+hugh-nonlinear-fixes.patch

 Try to make nonlinear VMAs and objrmap play better together.

+readdir-usercopy-check.patch

 Add some missing copy_to_user() checks.

+gcc3-inline-fix.patch

 Apply a club to gcc-3.x's head.

+pirq_enable_irq-warning-fix.patch

 Fix a compiler warning

+hugetlb-unmap_vmas-fix.patch

 Fix an oops with hugetlb pages, CONFIG_SMP && CONFIG_PREEMPT

+ext2-double-free-bug.patch

 Fix an error-path double-free.

+load_elf_binary-memleak-fix.patch

 Fix an error-path memory leak

+xattr-bug-fixes.patch

 Extended Attribute fixes

+noirqbalance-fix.patch

 Make the noirqalance boot option work

+show_interrupts-locking-fix.patch

 Put some locking into the /proc/interrupts handler code.

+eepro100-lockup-fix.patch

 Fix an eepro100 deadlock

+task_prio-fix.patch

 Scheduler fix for SCHED_RR tasks

+remove-kernel_flag.patch

 Eliminate lock_kernel()



All 79 patches:

linus.patch
  Latest from Linus

register_blkdev-cleanups.patch
  register_blkdev cleanups

mm.patch
  add -mmN to EXTRAVERSION

ppc64-reloc_hide.patch

ppc64-pci-patch.patch
  Subject: pci patch

ppc64-aio-32bit-emulation.patch
  32/64bit emulation for aio

ppc64-64-bit-exec-fix.patch
  Subject: 64bit exec

ppc64-scruffiness.patch
  Fix some PPC64 compile warnings

sym-do-160.patch
  make the SYM driver do 160 MB/sec

kgdb.patch

nfsd-disable-softirq.patch
  Fix race in svcsock.c in 2.5.61

report-lost-ticks.patch
  make lost-tick detection more informative

ptrace-flush.patch
  cache flushing in the ptrace code

buffer-debug.patch
  buffer.c debugging

warn-null-wakeup.patch

ext3-truncate-ordered-pages.patch
  ext3: explicitly free truncated pages

limit-write-latency.patch
  fix possible latency in balance_dirty_pages()

reiserfs_file_write-5.patch

tcp-wakeups.patch
  Use fast wakeups in TCP/IPV4

lockd-lockup-fix-2.patch
  Subject: Re: Fw: Re: 2.4.20 NFS server lock-up (SMP)

rcu-stats.patch
  RCU statistics reporting

ext3-journalled-data-assertion-fix.patch
  Remove incorrect assertion from ext3

nfs-speedup.patch

nfs-oom-fix.patch
  nfs oom fix

sk-allocation.patch
  Subject: Re: nfs oom

nfs-more-oom-fix.patch

nfs-sendfile.patch
  Implement sendfile() for NFS

rpciod-atomic-allocations.patch
  Make rcpiod use atomic allocations

linux-isp.patch

isp-update-1.patch

remove-unused-congestion-stuff.patch
  Subject: [PATCH] remove unused congestion stuff

atm_dev_sem.patch
  convert atm_dev_lock from spinlock to semaphore

as-iosched.patch
  anticipatory I/O scheduler

as-random-fixes.patch
  Subject: [PATCH] important fixes

as-comment-fix.patch
  AS: comment fix

as-naming-comments-BUG.patch
  AS: fix up naming, comments, add more BUGs

as-unnecessary-test.patch

as-atomicity-fix.patch

as-state-tracking-and-debug.patch
  AS: state tracking fix and debug additions

as-state-tracking-fix.patch
  AS: state tracking fix

as-nr_dispatched-atomic-fix.patch

readahead-shrink-to-zero.patch
  Allow VFS readahead to fall to zero

cfq-2.patch
  CFQ scheduler, #2

smalldevfs.patch
  smalldevfs

objrmap-2.5.62-5.patch
  object-based rmap

objrmap-X-fix.patch
  objrmap fix for X

objrmap-nr_mapped-fix.patch
  objrmap: fix /proc/meminfo:Mapped

objrmap-mapped-mem-fix-2.patch
  fix objrmap mapped mem accounting again

objrmap-atomic_t-fix.patch
  Make objrmap mapcount non-atomic

per-cpu-disk-stats.patch
  Make diskstats per-cpu using kmalloc_percpu

scheduler-tunables.patch
  scheduler tunables

show_task-free-stack-fix.patch
  show_task() fix and cleanup

vm_area-use-after-free-fix.patch
  Fix vm_area_struct slab corruption

use-after-free-check.patch
  slab use-after-free detector

slab-caller-tracking.patch
  slab debug: track caller program counter

slab-caller-tracking-symbolic.patch
  slab debug: symbolic output in caller tracking

reiserfs-fix-memleaks.patch
  ReiserFS: fix memleaks on journal opening failures

copy_page_range-invalid-page-fix.patch
  Fix copy_page_range()'s handling of invalid pages

yellowfin-set_bit-fix.patch
  yellowfin driver set_bit fix

CONFIG_SWAP-fix.patch
  move CONFIG_SWAP around

remap-file-pages-2.5.63-a1.patch
  Subject: [patch] remap-file-pages-2.5.63-A1

pte_file-always.patch
  enable file-offset-in-pte's for all mappings

hugh-nonlinear-fixes.patch
  Fix nonlinear oddities

htree-nfs-fix.patch
  Fix ext3 htree / NFS compatibility problems

bonding-zerodiv-fix.patch
  Subject: [PATCH][bonding] division by zero bug

update_atime-ng.patch
  inode a/c/mtime modification speedup

one-sec-times.patch
  Implement a/c/time speedup in ext2 & ext3

readdir-usercopy-check.patch
  usercopy checks in old_readdir()

gcc3-inline-fix.patch
  work around gcc-3.x inlining bugs

pirq_enable_irq-warning-fix.patch
  fix return value in arch/i386/pci/irq.c

hugetlb-unmap_vmas-fix.patch
  hugetlb unmap_vmas() SMP && PREEMPT fix

ext2-double-free-bug.patch
  ext2: fix error-path double-free

load_elf_binary-memleak-fix.patch
  fix memory leak in load_elf_binary()

xattr-bug-fixes.patch
  Extended attribute sharing and debug macro typo fixes

noirqbalance-fix.patch
  Fix noirqbalance

show_interrupts-locking-fix.patch
  protect 'action' in show_interrupts

eepro100-lockup-fix.patch
  fix SMP lockup in eepro100 with ethtool on unused interface

task_prio-fix.patch
  simple task_prio() fix

remove-kernel_flag.patch
  no need for kernel_flag on UP




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.64-mm2
       [not found]       ` <1047097353.727.18.camel@phantasy.awol.org>
@ 2003-03-08 13:59         ` Shawn
  2003-03-08 14:45           ` 2.5.64-mm2 Shawn
  0 siblings, 1 reply; 8+ messages in thread
From: Shawn @ 2003-03-08 13:59 UTC (permalink / raw)
  To: Robert Love; +Cc: Andrew Morton, linux-kernel@vger.kernel.org, linux-mm

Now I oops on boot justt when it trys to mount root (reiserfs),
unfortunately, I cannot page up to see the oops text.

I'll try booting with vesa fbcon to see if I can't see more.

On Fri, 2003-03-07 at 22:22, Robert Love wrote:
> On Fri, 2003-03-07 at 23:01, Shawn wrote:
> > Here's my .config. I am not SMP.
> > 
> > I suspected the distclean thing, but I made "Mr. Proper" too just in
> > case.
> 
> Oh.  Its those damn modules.  The bane of my existence.
> 
> Problem is, ksyms.c is exporting kernel_flag under PREEMPT.  Now we just
> need it exported under SMP.
> 
> Andrew, would you mind appending this to the current patch? Sorry.
> 
> Everyone else, you need this if you are UP+PREEMPT+MODULES.
> 
> 	Robert Love
> 
> 
>  kernel/ksyms.c |    2 +-
>  1 files changed, 1 insertion(+), 1 deletion(-)
> 
> 
> diff -urN linux-2.5.64-mm2/kernel/ksyms.c linux/kernel/ksyms.c
> --- linux-2.5.64-mm2/kernel/ksyms.c	2003-03-07 22:08:04.000000000 -0500
> +++ linux/kernel/ksyms.c	2003-03-07 23:19:32.098500176 -0500
> @@ -488,7 +488,7 @@
>  #if CONFIG_SMP
>  EXPORT_SYMBOL_GPL(set_cpus_allowed);
>  #endif
> -#if CONFIG_SMP || CONFIG_PREEMPT
> +#if CONFIG_SMP
>  EXPORT_SYMBOL(kernel_flag);
>  #endif
>  EXPORT_SYMBOL(jiffies);
> 
> 
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.64-mm2
  2003-03-08 13:59         ` 2.5.64-mm2 Shawn
@ 2003-03-08 14:45           ` Shawn
  2003-03-08 19:49             ` 2.5.64-mm2 Robert Love
  0 siblings, 1 reply; 8+ messages in thread
From: Shawn @ 2003-03-08 14:45 UTC (permalink / raw)
  To: Robert Love; +Cc: Andrew Morton, linux-kernel@vger.kernel.org, linux-mm

Eliminate initrd (eliminate using it, not support for it) and oops goes
away. Weird.

On Sat, 2003-03-08 at 07:59, Shawn wrote:
> Now I oops on boot justt when it trys to mount root (reiserfs),
> unfortunately, I cannot page up to see the oops text.
> 
> I'll try booting with vesa fbcon to see if I can't see more.
> 
> On Fri, 2003-03-07 at 22:22, Robert Love wrote:
> > On Fri, 2003-03-07 at 23:01, Shawn wrote:
> > > Here's my .config. I am not SMP.
> > > 
> > > I suspected the distclean thing, but I made "Mr. Proper" too just in
> > > case.
> > 
> > Oh.  Its those damn modules.  The bane of my existence.
> > 
> > Problem is, ksyms.c is exporting kernel_flag under PREEMPT.  Now we just
> > need it exported under SMP.
> > 
> > Andrew, would you mind appending this to the current patch? Sorry.
> > 
> > Everyone else, you need this if you are UP+PREEMPT+MODULES.
> > 
> > 	Robert Love
> > 
> > 
> >  kernel/ksyms.c |    2 +-
> >  1 files changed, 1 insertion(+), 1 deletion(-)
> > 
> > 
> > diff -urN linux-2.5.64-mm2/kernel/ksyms.c linux/kernel/ksyms.c
> > --- linux-2.5.64-mm2/kernel/ksyms.c	2003-03-07 22:08:04.000000000 -0500
> > +++ linux/kernel/ksyms.c	2003-03-07 23:19:32.098500176 -0500
> > @@ -488,7 +488,7 @@
> >  #if CONFIG_SMP
> >  EXPORT_SYMBOL_GPL(set_cpus_allowed);
> >  #endif
> > -#if CONFIG_SMP || CONFIG_PREEMPT
> > +#if CONFIG_SMP
> >  EXPORT_SYMBOL(kernel_flag);
> >  #endif
> >  EXPORT_SYMBOL(jiffies);
> > 
> > 
> > 
> -
> 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/

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [patch] updated scheduler-tunables for 2.5.64-mm2
       [not found] ` <1047095088.727.5.camel@phantasy.awol.org>
@ 2003-03-08 18:25   ` Martin J. Bligh
  2003-03-09  1:54     ` Robert Love
  0 siblings, 1 reply; 8+ messages in thread
From: Martin J. Bligh @ 2003-03-08 18:25 UTC (permalink / raw)
  To: Robert Love, Andrew Morton; +Cc: linux-kernel, linux-mm

Cool ... do you want to add the other two NUMA parameters as well to
your stack? (the idle and busy rebalance rates). Here's what I had
before with those in.

diff -urpN -X /home/fletch/.diff.exclude 143-schedstat-scripts/Documentation/filesystems/proc.txt 144-sched_tunables/Documentation/filesystems/proc.txt
--- 143-schedstat-scripts/Documentation/filesystems/proc.txt	Thu Feb 13 11:08:01 2003
+++ 144-sched_tunables/Documentation/filesystems/proc.txt	Wed Mar  5 10:22:46 2003
@@ -37,6 +37,7 @@ Table of Contents
   2.8	/proc/sys/net/ipv4 - IPV4 settings
   2.9	Appletalk
   2.10	IPX
+  2.11  /proc/sys/sched - scheduler tunables
 
 ------------------------------------------------------------------------------
 Preface
@@ -1662,6 +1663,104 @@ IPX.
 The /proc/net/ipx_route  table  holds  a list of IPX routes. For each route it
 gives the  destination  network, the router node (or Directly) and the network
 address of the router (or Connected) for internal networks.
+
+2.11 /proc/sys/sched - scheduler tunables
+-----------------------------------------
+
+Useful knobs for tuning the scheduler live in /proc/sys/sched.
+
+child_penalty
+-------------
+
+Percentage of the parent's sleep_avg that children inherit.  sleep_avg is
+a running average of the time a process spends sleeping.  Tasks with high
+sleep_avg values are considered interactive and given a higher dynamic
+priority and a larger timeslice.  You typically want this some value just
+under 100.
+
+exit_weight
+-----------
+
+When a CPU hog task exits, its parent's sleep_avg is reduced by a factor of
+exit_weight against the exiting task's sleep_avg.
+
+interactive_delta
+-----------------
+
+If a task is "interactive" it is reinserted into the active array after it
+has expired its timeslice, instead of being inserted into the expired array.
+How "interactive" a task must be in order to be deemed interactive is a
+function of its nice value.  This interactive limit is scaled linearly by nice
+value and is offset by the interactive_delta.
+
+max_sleep_avg
+-------------
+
+max_sleep_avg is the largest value (in ms) stored for a task's running sleep
+average.  The larger this value, the longer a task needs to sleep to be
+considered interactive (maximum interactive bonus is a function of
+max_sleep_avg).
+
+max_timeslice
+-------------
+
+Maximum timeslice, in milliseconds.  This is the value given to tasks of the
+highest dynamic priority.
+
+min_timeslice
+-------------
+
+Minimum timeslice, in milliseconds.  This is the value given to tasks of the
+lowest dynamic priority.  Every task gets at least this slice of the processor
+per array switch.
+
+parent_penalty
+--------------
+
+Percentage of the parent's sleep_avg that it retains across a fork().
+sleep_avg is a running average of the time a process spends sleeping.  Tasks
+with high sleep_avg values are considered interactive and given a higher
+dynamic priority and a larger timeslice.  Normally, this value is 100 and thus
+task's retain their sleep_avg on fork.  If you want to punish interactive
+tasks for forking, set this below 100.
+
+prio_bonus_ratio
+----------------
+
+Middle percentage of the priority range that tasks can receive as a dynamic
+priority.  The default value of 25% ensures that nice values at the
+extremes are still enforced.  For example, nice +19 interactive tasks will
+never be able to preempt a nice 0 CPU hog.  Setting this higher will increase
+the size of the priority range the tasks can receive as a bonus.  Setting
+this lower will decrease this range, making the interactivity bonus less
+apparent and user nice values more applicable.
+
+starvation_limit
+----------------
+
+Sufficiently interactive tasks are reinserted into the active array when they
+run out of timeslice.  Normally, tasks are inserted into the expired array.
+Reinserting interactive tasks into the active array allows them to remain
+runnable, which is important to interactive performance.  This could starve
+expired tasks, however, since the interactive task could prevent the array
+switch.  To prevent starving the tasks on the expired array for too long. the
+starvation_limit is the longest (in ms) we will let the expired array starve
+at the expense of reinserting interactive tasks back into active.  Higher
+values here give more preferance to running interactive tasks, at the expense
+of expired tasks.  Lower values provide more fair scheduling behavior, at the
+expense of interactivity.  The units are in milliseconds.
+
+idle_node_rebalance_ratio
+-------------------------
+
+On NUMA machines, we normally rebalance within nodes, but we also rebalance
+globally every N idle rebalance ticks, where N = idle_node_rebalance_ratio.
+
+busy_node_rebalance_ratio
+-------------------------
+
+On NUMA machines, we normally rebalance within nodes, but we also rebalance
+globally every N busy rebalance ticks, where N = busy_node_rebalance_ratio.
 
 ------------------------------------------------------------------------------
 Summary
diff -urpN -X /home/fletch/.diff.exclude 143-schedstat-scripts/include/linux/sysctl.h 144-sched_tunables/include/linux/sysctl.h
--- 143-schedstat-scripts/include/linux/sysctl.h	Tue Feb 25 23:03:51 2003
+++ 144-sched_tunables/include/linux/sysctl.h	Wed Mar  5 10:22:46 2003
@@ -66,7 +66,8 @@ enum
 	CTL_DEV=7,		/* Devices */
 	CTL_BUS=8,		/* Busses */
 	CTL_ABI=9,		/* Binary emulation */
-	CTL_CPU=10		/* CPU stuff (speed scaling, etc) */
+	CTL_CPU=10,		/* CPU stuff (speed scaling, etc) */
+	CTL_SCHED=11,		/* scheduler tunables */
 };
 
 /* CTL_BUS names: */
@@ -157,6 +158,20 @@ enum
 	VM_LOWER_ZONE_PROTECTION=20,/* Amount of protection of lower zones */
 };
 
+/* Tunable scheduler parameters in /proc/sys/sched/ */
+enum {
+	SCHED_MIN_TIMESLICE=1,		/* minimum process timeslice */
+	SCHED_MAX_TIMESLICE=2,		/* maximum process timeslice */
+	SCHED_CHILD_PENALTY=3,		/* penalty on fork to child */
+	SCHED_PARENT_PENALTY=4,		/* penalty on fork to parent */
+	SCHED_EXIT_WEIGHT=5,		/* penalty to parent of CPU hog child */
+	SCHED_PRIO_BONUS_RATIO=6,	/* percent of max prio given as bonus */
+	SCHED_INTERACTIVE_DELTA=7,	/* delta used to scale interactivity */
+	SCHED_MAX_SLEEP_AVG=8,		/* maximum sleep avg attainable */
+	SCHED_STARVATION_LIMIT=9,	/* no re-active if expired is starved */
+	SCHED_IDLE_NODE_REBALANCE_RATIO=10,  /* how often to global balance */
+	SCHED_BUSY_NODE_REBALANCE_RATIO=11,  /* how often to global balance */
+};
 
 /* CTL_NET names: */
 enum
diff -urpN -X /home/fletch/.diff.exclude 143-schedstat-scripts/kernel/sched.c 144-sched_tunables/kernel/sched.c
--- 143-schedstat-scripts/kernel/sched.c	Wed Mar  5 10:22:45 2003
+++ 144-sched_tunables/kernel/sched.c	Wed Mar  5 10:22:46 2003
@@ -63,16 +63,30 @@
  * Minimum timeslice is 10 msecs, default timeslice is 150 msecs,
  * maximum timeslice is 300 msecs. Timeslices get refilled after
  * they expire.
+ *
+ * They are configurable via /proc/sys/sched
  */
-#define MIN_TIMESLICE		( 10 * HZ / 1000)
-#define MAX_TIMESLICE		(300 * HZ / 1000)
-#define CHILD_PENALTY		95
-#define PARENT_PENALTY		100
-#define EXIT_WEIGHT		3
-#define PRIO_BONUS_RATIO	25
-#define INTERACTIVE_DELTA	2
-#define MAX_SLEEP_AVG		(2*HZ)
-#define STARVATION_LIMIT	(2*HZ)
+
+int min_timeslice = (10 * HZ) / 1000;
+int max_timeslice = (300 * HZ) / 1000;
+int child_penalty = 95;
+int parent_penalty = 100;
+int exit_weight = 3;
+int prio_bonus_ratio = 25;
+int interactive_delta = 2;
+int max_sleep_avg = 2 * HZ;
+int starvation_limit = 2 * HZ;
+
+#define MIN_TIMESLICE         (min_timeslice)
+#define MAX_TIMESLICE         (max_timeslice)
+#define CHILD_PENALTY         (child_penalty)
+#define PARENT_PENALTY                (parent_penalty)
+#define EXIT_WEIGHT           (exit_weight)
+#define PRIO_BONUS_RATIO      (prio_bonus_ratio)
+#define INTERACTIVE_DELTA     (interactive_delta)
+#define MAX_SLEEP_AVG         (max_sleep_avg)
+#define STARVATION_LIMIT      (starvation_limit)
+
 #define NODE_THRESHOLD          125
 
 /*
@@ -917,6 +931,9 @@ static int find_busiest_node(int this_no
 
 #endif /* CONFIG_NUMA */
 
+int idle_node_rebalance_ratio = 10;
+int busy_node_rebalance_ratio = 100;
+
 #if CONFIG_SMP
 
 /*
@@ -1149,8 +1166,9 @@ out:
  */
 #define IDLE_REBALANCE_TICK (HZ/1000 ?: 1)
 #define BUSY_REBALANCE_TICK (HZ/5 ?: 1)
-#define IDLE_NODE_REBALANCE_TICK (IDLE_REBALANCE_TICK * 5)
-#define BUSY_NODE_REBALANCE_TICK (BUSY_REBALANCE_TICK * 100)
+
+#define IDLE_NODE_REBALANCE_TICK (IDLE_REBALANCE_TICK * idle_node_rebalance_ratio)
+#define BUSY_NODE_REBALANCE_TICK (BUSY_REBALANCE_TICK * busy_node_rebalance_ratio)
 
 #if CONFIG_NUMA
 static void balance_node(runqueue_t *this_rq, int idle, int this_cpu)
diff -urpN -X /home/fletch/.diff.exclude 143-schedstat-scripts/kernel/sysctl.c 144-sched_tunables/kernel/sysctl.c
--- 143-schedstat-scripts/kernel/sysctl.c	Mon Dec 16 21:50:51 2002
+++ 144-sched_tunables/kernel/sysctl.c	Wed Mar  5 10:22:46 2003
@@ -55,6 +55,17 @@ extern char core_pattern[];
 extern int cad_pid;
 extern int pid_max;
 extern int sysctl_lower_zone_protection;
+extern int min_timeslice;
+extern int max_timeslice;
+extern int child_penalty;
+extern int parent_penalty;
+extern int exit_weight;
+extern int prio_bonus_ratio;
+extern int interactive_delta;
+extern int max_sleep_avg;
+extern int starvation_limit;
+extern int idle_node_rebalance_ratio;
+extern int busy_node_rebalance_ratio;
 
 /* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */
 static int maxolduid = 65535;
@@ -112,6 +123,7 @@ static struct ctl_table_header root_tabl
 
 static ctl_table kern_table[];
 static ctl_table vm_table[];
+static ctl_table sched_table[];
 #ifdef CONFIG_NET
 extern ctl_table net_table[];
 #endif
@@ -156,6 +168,7 @@ static ctl_table root_table[] = {
 	{CTL_FS, "fs", NULL, 0, 0555, fs_table},
 	{CTL_DEBUG, "debug", NULL, 0, 0555, debug_table},
         {CTL_DEV, "dev", NULL, 0, 0555, dev_table},
+	{CTL_SCHED, "sched", NULL, 0, 0555, sched_table},
 	{0}
 };
 
@@ -358,7 +371,46 @@ static ctl_table debug_table[] = {
 
 static ctl_table dev_table[] = {
 	{0}
-};  
+};
+
+static ctl_table sched_table[] = {
+	{SCHED_MAX_TIMESLICE, "max_timeslice", &max_timeslice,
+	 sizeof(int), 0644, NULL, &proc_dointvec_minmax,
+	 &sysctl_intvec, NULL, &one, NULL},
+	{SCHED_MIN_TIMESLICE, "min_timeslice", &min_timeslice,
+	 sizeof(int), 0644, NULL, &proc_dointvec_minmax,
+	 &sysctl_intvec, NULL, &one, NULL},
+	{SCHED_CHILD_PENALTY, "child_penalty", &child_penalty,
+	 sizeof(int), 0644, NULL, &proc_dointvec_minmax,
+	 &sysctl_intvec, NULL, &zero, NULL},
+	{SCHED_PARENT_PENALTY, "parent_penalty", &parent_penalty,
+	 sizeof(int), 0644, NULL, &proc_dointvec_minmax,
+	 &sysctl_intvec, NULL, &zero, NULL},
+	{SCHED_EXIT_WEIGHT, "exit_weight", &exit_weight,
+	 sizeof(int), 0644, NULL, &proc_dointvec_minmax,
+	 &sysctl_intvec, NULL, &zero, NULL},
+	{SCHED_PRIO_BONUS_RATIO, "prio_bonus_ratio", &prio_bonus_ratio,
+	 sizeof(int), 0644, NULL, &proc_dointvec_minmax,
+	 &sysctl_intvec, NULL, &zero, NULL},
+	{SCHED_INTERACTIVE_DELTA, "interactive_delta", &interactive_delta,
+	 sizeof(int), 0644, NULL, &proc_dointvec_minmax,
+	 &sysctl_intvec, NULL, &zero, NULL},
+	{SCHED_MAX_SLEEP_AVG, "max_sleep_avg", &max_sleep_avg,
+	 sizeof(int), 0644, NULL, &proc_dointvec_minmax,
+	 &sysctl_intvec, NULL, &one, NULL},
+	{SCHED_STARVATION_LIMIT, "starvation_limit", &starvation_limit,
+	 sizeof(int), 0644, NULL, &proc_dointvec_minmax,
+	 &sysctl_intvec, NULL, &zero, NULL},
+	{SCHED_IDLE_NODE_REBALANCE_RATIO, "idle_node_rebalance_ratio", 
+						&idle_node_rebalance_ratio,
+	 sizeof(int), 0644, NULL, &proc_dointvec_minmax,
+	 &sysctl_intvec, NULL, &zero, NULL},
+	{SCHED_BUSY_NODE_REBALANCE_RATIO, "busy_node_rebalance_ratio", 
+						&busy_node_rebalance_ratio,
+	 sizeof(int), 0644, NULL, &proc_dointvec_minmax,
+	 &sysctl_intvec, NULL, &zero, NULL},
+	{0}
+};
 
 extern void init_irq_proc (void);
 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.64-mm2
  2003-03-08 14:45           ` 2.5.64-mm2 Shawn
@ 2003-03-08 19:49             ` Robert Love
  0 siblings, 0 replies; 8+ messages in thread
From: Robert Love @ 2003-03-08 19:49 UTC (permalink / raw)
  To: Shawn; +Cc: Andrew Morton, linux-kernel@vger.kernel.org, linux-mm

On Sat, 2003-03-08 at 09:45, Shawn wrote:

> Eliminate initrd (eliminate using it, not support for it) and oops goes
> away. Weird.

Almost certainly not related to the previous problem.

	Robert Love


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [patch] updated scheduler-tunables for 2.5.64-mm2
  2003-03-08 18:25   ` [patch] updated scheduler-tunables for 2.5.64-mm2 Martin J. Bligh
@ 2003-03-09  1:54     ` Robert Love
  2003-03-09  2:18       ` Martin J. Bligh
  0 siblings, 1 reply; 8+ messages in thread
From: Robert Love @ 2003-03-09  1:54 UTC (permalink / raw)
  To: Martin J. Bligh; +Cc: Andrew Morton, linux-kernel, linux-mm

On Sat, 2003-03-08 at 13:25, Martin J. Bligh wrote:

> Cool ... do you want to add the other two NUMA parameters as well to
> your stack? (the idle and busy rebalance rates). Here's what I had
> before with those in.

Sure.

But at least in 2.5.64 and 2.5.64-mm3, I do not see those parameters. 
There is no {IDLE|BUSY}_NODE_REBALANCE_TICK define.

	Robert Love


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [patch] updated scheduler-tunables for 2.5.64-mm2
  2003-03-09  1:54     ` Robert Love
@ 2003-03-09  2:18       ` Martin J. Bligh
  2003-03-09  3:28         ` Valdis.Kletnieks
  0 siblings, 1 reply; 8+ messages in thread
From: Martin J. Bligh @ 2003-03-09  2:18 UTC (permalink / raw)
  To: Robert Love; +Cc: Andrew Morton, linux-kernel, linux-mm

>> Cool ... do you want to add the other two NUMA parameters as well to
>> your stack? (the idle and busy rebalance rates). Here's what I had
>> before with those in.
> 
> Sure.
> 
> But at least in 2.5.64 and 2.5.64-mm3, I do not see those parameters. 
> There is no {IDLE|BUSY}_NODE_REBALANCE_TICK define.

Ooops. Sorry ... we have to merge Ingo's NUMA sched updates first ;-)
/me goes back to swinging about in his own tree ...

M.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [patch] updated scheduler-tunables for 2.5.64-mm2
  2003-03-09  2:18       ` Martin J. Bligh
@ 2003-03-09  3:28         ` Valdis.Kletnieks
  0 siblings, 0 replies; 8+ messages in thread
From: Valdis.Kletnieks @ 2003-03-09  3:28 UTC (permalink / raw)
  To: Martin J. Bligh; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 395 bytes --]

On Sat, 08 Mar 2003 18:18:51 PST, "Martin J. Bligh" said:

> > But at least in 2.5.64 and 2.5.64-mm3, I do not see those parameters. 
> > There is no {IDLE|BUSY}_NODE_REBALANCE_TICK define.
> 
> Ooops. Sorry ... we have to merge Ingo's NUMA sched updates first ;-)
> /me goes back to swinging about in his own tree ...

Hey Larry - looks like some people you can sell a Bitkeeper license to. ;)

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-03-09  3:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-08  2:51 2.5.64-mm2 Andrew Morton
     [not found] ` <1047095352.3483.0.camel@localhost.localdomain>
     [not found]   ` <1047096331.727.14.camel@phantasy.awol.org>
     [not found]     ` <1047096093.3483.4.camel@localhost.localdomain>
     [not found]       ` <1047097353.727.18.camel@phantasy.awol.org>
2003-03-08 13:59         ` 2.5.64-mm2 Shawn
2003-03-08 14:45           ` 2.5.64-mm2 Shawn
2003-03-08 19:49             ` 2.5.64-mm2 Robert Love
     [not found] ` <1047095088.727.5.camel@phantasy.awol.org>
2003-03-08 18:25   ` [patch] updated scheduler-tunables for 2.5.64-mm2 Martin J. Bligh
2003-03-09  1:54     ` Robert Love
2003-03-09  2:18       ` Martin J. Bligh
2003-03-09  3:28         ` Valdis.Kletnieks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox