From: William Lee Irwin III <wli@holomorphy.com>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.8-rc3-mm2
Date: Mon, 9 Aug 2004 01:43:38 -0700 [thread overview]
Message-ID: <20040809084338.GL11200@holomorphy.com> (raw)
In-Reply-To: <20040808152936.1ce2eab8.akpm@osdl.org>
On Sun, Aug 08, 2004 at 03:29:36PM -0700, Andrew Morton wrote:
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.8-rc3/2.6.8-rc3-mm2/
> - Added a little patch to the CPU scheduler which disables its array
> switching.
[...]
PAE is artificially limited in terms of swapspace to the same bitsplit
as ordinary i386, a 5/24 split (32 swapfiles, 64GB max swapfile size),
when a 5/27 split (32 swapfiles, 512GB max swapfile size) is feasible.
This patch transparently removes that limitation by using more of the
space available in PAE's wider ptes for swap ptes.
While this is obviously not likely to be used directly, it is important
from the standpoint of strict non-overcommit, where the swapspace must
be potentially usable in order to be reserved for non-overcommit. There
are workloads with Committed_AS of over 256GB on ia32 PAE wanting
strict non-overcommit to prevent being OOM killed.
Index: premm2-2.6.8-rc3/include/asm-i386/pgtable.h
===================================================================
--- premm2-2.6.8-rc3.orig/include/asm-i386/pgtable.h 2004-08-05 06:09:56.000000000 -0700
+++ premm2-2.6.8-rc3/include/asm-i386/pgtable.h 2004-08-07 03:22:42.794425352 -0700
@@ -398,13 +398,6 @@
} \
} while (0)
-/* Encode and de-code a swap entry */
-#define __swp_type(x) (((x).val >> 1) & 0x1f)
-#define __swp_offset(x) ((x).val >> 8)
-#define __swp_entry(type, offset) ((swp_entry_t) { ((type) << 1) | ((offset) << 8) })
-#define __pte_to_swp_entry(pte) ((swp_entry_t) { (pte).pte_low })
-#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
-
#endif /* !__ASSEMBLY__ */
#ifndef CONFIG_DISCONTIGMEM
Index: premm2-2.6.8-rc3/include/asm-i386/pgtable-3level.h
===================================================================
--- premm2-2.6.8-rc3.orig/include/asm-i386/pgtable-3level.h 2004-08-05 06:09:56.000000000 -0700
+++ premm2-2.6.8-rc3/include/asm-i386/pgtable-3level.h 2004-08-07 03:22:42.791425808 -0700
@@ -134,4 +134,11 @@
#define pgoff_to_pte(off) ((pte_t) { _PAGE_FILE, (off) })
#define PTE_FILE_MAX_BITS 32
+/* Encode and de-code a swap entry */
+#define __swp_type(x) (((x).val) & 0x1f)
+#define __swp_offset(x) ((x).val >> 5)
+#define __swp_entry(type, offset) ((swp_entry_t){(type) | (offset) << 5})
+#define __pte_to_swp_entry(pte) ((swp_entry_t){ (pte).pte_high })
+#define __swp_entry_to_pte(x) ((pte_t){ 0, (x).val })
+
#endif /* _I386_PGTABLE_3LEVEL_H */
Index: premm2-2.6.8-rc3/include/asm-i386/pgtable-2level.h
===================================================================
--- premm2-2.6.8-rc3.orig/include/asm-i386/pgtable-2level.h 2004-08-05 06:09:56.000000000 -0700
+++ premm2-2.6.8-rc3/include/asm-i386/pgtable-2level.h 2004-08-07 03:22:42.788426264 -0700
@@ -75,4 +75,11 @@
#define pgoff_to_pte(off) \
((pte_t) { (((off) & 0x1f) << 1) + (((off) >> 5) << 8) + _PAGE_FILE })
+/* Encode and de-code a swap entry */
+#define __swp_type(x) (((x).val >> 1) & 0x1f)
+#define __swp_offset(x) ((x).val >> 8)
+#define __swp_entry(type, offset) ((swp_entry_t) { ((type) << 1) | ((offset) << 8) })
+#define __pte_to_swp_entry(pte) ((swp_entry_t) { (pte).pte_low })
+#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
+
#endif /* _I386_PGTABLE_2LEVEL_H */
next prev parent reply other threads:[~2004-08-09 8:46 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-08 22:29 2.6.8-rc3-mm2 Andrew Morton
2004-08-08 22:55 ` 2.6.8-rc3-mm2 Brice Goglin
2004-08-08 23:04 ` 2.6.8-rc3-mm2 Andrew Morton
2004-08-08 23:17 ` 2.6.8-rc3-mm2 Andrew Morton
2004-08-09 2:17 ` [patch] 2.6.8-rc3-mm2: sk98lin/skge.c doesn't compile with PROC_FS=n Adrian Bunk
2004-08-09 5:14 ` 2.6.8-rc3-mm2 (compile stats) John Cherry
2004-08-09 8:20 ` 2.6.8-rc3-mm2 Rick Lindsley
2004-08-09 8:25 ` 2.6.8-rc3-mm2 Andrew Morton
2004-08-09 8:29 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-09 8:33 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-09 8:43 ` William Lee Irwin III [this message]
2004-08-09 8:49 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-09 10:36 ` 2.6.8-rc3-mm2 Espen Fjellvær Olsen
2004-08-09 12:14 ` 2.6.8-rc3-mm2 Vladimir V. Saveliev
2004-08-09 17:51 ` 2.6.8-rc3-mm2 Hans Reiser
2004-08-09 17:50 ` 2.6.8-rc3-mm2 Johannes Stezenbach
2004-08-09 18:22 ` 2.6.8-rc3-mm2 Jesse Barnes
2004-08-09 18:25 ` 2.6.8-rc3-mm2 Andrew Morton
2004-08-09 18:32 ` 2.6.8-rc3-mm2 Jesse Barnes
2004-08-09 19:17 ` 2.6.8-rc3-mm2 Jesse Barnes
2004-08-09 19:53 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-09 20:43 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-09 21:10 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-09 22:45 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-10 6:34 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-10 8:02 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-10 8:30 ` 2.6.8-rc3-mm2 Ingo Molnar
2004-08-10 8:56 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-10 9:00 ` 2.6.8-rc3-mm2 Ingo Molnar
2004-08-10 9:06 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-10 8:04 ` 2.6.8-rc3-mm2 Ingo Molnar
2004-08-10 8:08 ` 2.6.8-rc3-mm2 Ingo Molnar
2004-08-10 8:17 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-10 8:23 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-10 9:00 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-10 9:38 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-10 10:02 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-10 11:53 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-10 12:52 ` 2.6.8-rc3-mm2 V13
2004-08-10 12:51 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-10 12:55 ` 2.6.8-rc3-mm2 Ingo Molnar
2004-08-10 12:56 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-10 13:01 ` 2.6.8-rc3-mm2 Ingo Molnar
2004-08-10 13:10 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-10 13:12 ` 2.6.8-rc3-mm2 Russell King
2004-08-10 13:16 ` 2.6.8-rc3-mm2 Ingo Molnar
2004-08-10 13:39 ` 2.6.8-rc3-mm2 Russell King
2004-08-10 13:48 ` 2.6.8-rc3-mm2 Ingo Molnar
2004-08-10 6:32 ` 2.6.8-rc3-mm2 William Lee Irwin III
2004-08-10 8:34 ` 2.6.8-rc3-mm2 Rick Lindsley
2004-08-10 14:55 ` 2.6.8-rc3-mm2 Martin J. Bligh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040809084338.GL11200@holomorphy.com \
--to=wli@holomorphy.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox