Skip to content
Snippets Groups Projects
Commit 47d2e929 authored by Yang Sheng's avatar Yang Sheng
Browse files

Branch b1_6

b=13518
i=shadow
i=johann

Modify the vm-tunables-rhel4.patch for RHEL4 kernel-2.6.9-55.0.6.
parent d4013e45
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ tbd Cluster File Systems, Inc. <info@clusterfs.com>
* version 1.6.4
* Support for kernels:
2.6.5-7.286 (SLES 9),
2.6.9-55.0.2.EL (RHEL 4),
2.6.9-55.0.6.EL (RHEL 4),
2.6.16.46-0.14 (SLES 10),
2.6.18-8.1.10.el5 (RHEL 5),
2.6.18.8 vanilla (kernel.org)
......@@ -88,6 +88,10 @@ Details : If LAST_ID value on disk is smaller than the objects existing in
LBUG(). If the object is 0-length, then we should use the existing
object. This will help to avoid a full fsck in most cases.
Severity : normal
Bugzilla : 13518
Description: Kernel patches update for RHEL4 2.6.9-55.0.6.
Details : Modify vm-tunables-rhel4.patch.
--------------------------------------------------------------------------------
......
......@@ -17,57 +17,3 @@ Index: linux+rhel4+chaos/mm/page_alloc.c
spin_unlock_irqrestore(&zone->lru_lock, flags);
}
}
@@ -1982,24 +1986,25 @@ static void setup_per_zone_pages_min(voi
* Initialise min_free_kbytes.
*
* For small machines we want it small (128k min). For large machines
- * we want it large (16MB max). But it is not linear, because network
+ * we want it large (64MB max). But it is not linear, because network
* bandwidth does not increase linearly with machine size. We use
*
- * min_free_kbytes = sqrt(lowmem_kbytes)
+ * min_free_kbytes = 4 * sqrt(lowmem_kbytes), for better accuracy
+ * min_free_kbytes = sqrt(lowmem_kbytes * 16)
*
* which yields
*
- * 16MB: 128k
- * 32MB: 181k
- * 64MB: 256k
- * 128MB: 362k
- * 256MB: 512k
- * 512MB: 724k
- * 1024MB: 1024k
- * 2048MB: 1448k
- * 4096MB: 2048k
- * 8192MB: 2896k
- * 16384MB: 4096k
+ * 16MB: 512k
+ * 32MB: 724k
+ * 64MB: 1024k
+ * 128MB: 1448k
+ * 256MB: 2048k
+ * 512MB: 2896k
+ * 1024MB: 4096k
+ * 2048MB: 5792k
+ * 4096MB: 8192k
+ * 8192MB: 11584k
+ * 16384MB: 16384k
*/
static int __init init_per_zone_pages_min(void)
{
@@ -2007,11 +2012,11 @@ static int __init init_per_zone_pages_mi
lowmem_kbytes = nr_free_buffer_pages() * (PAGE_SIZE >> 10);
- min_free_kbytes = int_sqrt(lowmem_kbytes);
+ min_free_kbytes = int_sqrt(lowmem_kbytes * 16);
if (min_free_kbytes < 128)
min_free_kbytes = 128;
- if (min_free_kbytes > 16384)
- min_free_kbytes = 16384;
+ if (min_free_kbytes > 65536)
+ min_free_kbytes = 65536;
setup_per_zone_pages_min();
setup_per_zone_protection();
return 0;
lnxmaj="2.6.9"
lnxrel="55.0.2.EL"
lnxrel="55.0.6.EL"
KERNEL=linux-${lnxmaj}-${lnxrel}.tar.bz2
SERIES=2.6-rhel4.series
......
......@@ -3,7 +3,7 @@ SERIES VERSION COMMENT
SUPPORTED KERNELS:
2.6-suse SLES9 before SP1 already in SLES9 SP1 kernel
2.6-suse-newer SLES9: 2.6.5-7.286 extra patches for SLES9 after SP1
2.6-rhel4 RHEL4: 2.6.9-55.0.2.EL
2.6-rhel4 RHEL4: 2.6.9-55.0.6.EL
2.6-sles10 SLES10: 2.6.16.46-0.14
2.6-rhel5.series RHEL5: 2.6.18-8.1.10.el5
2.6.18-vanilla.series kernel.org: 2.6.18.8
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment