From: Andy P. <at...@us...> - 2002-04-09 16:55:52
|
Update of /cvsroot/linux-vax/kernel-2.4/Documentation/sysctl In directory usw-pr-cvs1:/tmp/cvs-serv7449/sysctl Modified Files: kernel.txt vm.txt Log Message: synch 2.4.15 commit 28 Index: kernel.txt =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/Documentation/sysctl/kernel.txt,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- kernel.txt 14 Jan 2001 20:04:35 -0000 1.1.1.1 +++ kernel.txt 9 Apr 2002 16:55:47 -0000 1.2 @@ -39,6 +39,7 @@ - rtsig-max - sg-big-buff [ generic SCSI device (sg) ] - shmmax [ sysv ipc ] +- tainted - version - zero-paged [ PPC only ] @@ -217,6 +218,19 @@ on the maximum shared memory segment size that can be created. Shared memory segments up to 1Gb are now supported in the kernel. This value defaults to SHMMAX. + +============================================================== + +tainted: + +Non-zero if the kernel has been tainted. Numeric values, which +can be ORed together: + + 1 - A module with a non-GPL license has been loaded, this + includes modules with no license. + Set by modutils >= 2.4.9. + 2 - A module was force loaded by insmod -f. + Set by modutils >= 2.4.9. ============================================================== Index: vm.txt =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/Documentation/sysctl/vm.txt,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- vm.txt 14 Jan 2001 20:04:34 -0000 1.1.1.1 +++ vm.txt 9 Apr 2002 16:55:47 -0000 1.2 @@ -32,33 +32,30 @@ This file controls the operation of the bdflush kernel daemon. The source code to this struct can be found in -linux/mm/buffer.c. It currently contains 9 integer values, -of which 6 are actually used by the kernel. +linux/fs/buffer.c. It currently contains 9 integer values, +of which 4 are actually used by the kernel. From linux/fs/buffer.c: -------------------------------------------------------------- -union bdflush_param{ - struct { - int nfract; /* Percentage of buffer cache dirty to - activate bdflush */ - int ndirty; /* Maximum number of dirty blocks to - write out per wake-cycle */ - int nrefill; /* Number of clean buffers to try to - obtain each time we call refill */ - int nref_dirt; /* Dirty buffer threshold for activating - bdflush when trying to refill buffers. */ - int dummy1; /* unused */ - int age_buffer; /* Time for normal buffer to age before - we flush it */ - int age_super; /* Time for superblock to age before we - flush it */ - int dummy2; /* unused */ - int dummy3; /* unused */ - } b_un; - unsigned int data[N_PARAM]; -} bdf_prm = {{40, 500, 64, 256, 15, 30*HZ, 5*HZ, 1884, 2}}; +union bdflush_param { + struct { + int nfract; /* Percentage of buffer cache dirty to + activate bdflush */ + int dummy1; /* old "ndirty" */ + int dummy2; /* old "nrefill" */ + int dummy3; /* unused */ + int interval; /* jiffies delay between kupdate flushes */ + int age_buffer; /* Time for normal buffer to age */ + int nfract_sync;/* Percentage of buffer cache dirty to + activate bdflush synchronously */ + int dummy4; /* unused */ + int dummy5; /* unused */ + } b_un; + unsigned int data[N_PARAM]; +} bdf_prm = {{30, 64, 64, 256, 5*HZ, 30*HZ, 60, 0, 0}}; -------------------------------------------------------------- +int nfract: The first parameter governs the maximum number of dirty buffers in the buffer cache. Dirty means that the contents of the buffer still have to be written to disk (as opposed @@ -66,32 +63,31 @@ Setting this to a high value means that Linux can delay disk writes for a long time, but it also means that it will have to do a lot of I/O at once when memory becomes short. A low -value will spread out disk I/O more evenly. - -The second parameter (ndirty) gives the maximum number of -dirty buffers that bdflush can write to the disk in one time. -A high value will mean delayed, bursty I/O, while a small -value can lead to memory shortage when bdflush isn't woken -up often enough... - -The third parameter (nrefill) is the number of buffers that -bdflush will add to the list of free buffers when -refill_freelist() is called. It is necessary to allocate free -buffers beforehand, since the buffers often are of a different -size than memory pages and some bookkeeping needs to be done -beforehand. The higher the number, the more memory will be -wasted and the less often refill_freelist() will need to run. - -When refill_freelist() comes across more than nref_dirt dirty -buffers, it will wake up bdflush. - -Finally, the age_buffer and age_super parameters govern the -maximum time Linux waits before writing out a dirty buffer -to disk. The value is expressed in jiffies (clockticks), the -number of jiffies per second is 100, except on Alpha machines -(1024). Age_buffer is the maximum age for data blocks, while -age_super is for filesystem metadata. - +value will spread out disk I/O more evenly, at the cost of +more frequent I/O operations. The default value is 30%, +the minimum is 0%, and the maximum is 100%. + +int interval: +The fifth parameter, interval, is the minimum rate at +which kupdate will wake and flush. The value is expressed in +jiffies (clockticks), the number of jiffies per second is +normally 100 (Alpha is 1024). Thus, x*HZ is x seconds. The +default value is 5 seconds, the minimum is 0 seconds, and the +maximum is 600 seconds. + +int age_buffer: +The sixth parameter, age_buffer, governs the maximum time +Linux waits before writing out a dirty buffer to disk. The +value is in jiffies. The default value is 30 seconds, +the minimum is 1 second, and the maximum 6,000 seconds. + +int nfract_sync: +The seventh parameter, nfract_sync, governs the percentage +of buffer cache that is dirty before bdflush activates +synchronously. This can be viewed as the hard limit before +bdflush forces buffers to disk. The default is 60%, the +minimum is 0%, and the maximum is 100%. + ============================================================== buffermem: |