linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* RE: Anticipatory prefaulting in the page fault handler V1
@ 2004-12-08 17:44 Luck, Tony
  2004-12-08 17:57 ` Christoph Lameter
  0 siblings, 1 reply; 23+ messages in thread
From: Luck, Tony @ 2004-12-08 17:44 UTC (permalink / raw)
  To: Christoph Lameter, nickpiggin
  Cc: Jeff Garzik, torvalds, hugh, benh, linux-mm, linux-ia64, linux-kernel

>If a fault occurred for page x and is then followed by page 
>x+1 then it may be reasonable to expect another page fault
>at x+2 in the future.

What if the application had used "madvise(start, len, MADV_RANDOM)"
to tell the kernel that this isn't "reasonable"?

-Tony
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 23+ messages in thread
* RE: Anticipatory prefaulting in the page fault handler V1
@ 2004-12-08 18:31 Luck, Tony
  0 siblings, 0 replies; 23+ messages in thread
From: Luck, Tony @ 2004-12-08 18:31 UTC (permalink / raw)
  To: Christoph Lameter
  Cc: nickpiggin, Jeff Garzik, torvalds, hugh, benh, linux-mm,
	linux-ia64, linux-kernel

>We could use that as a way to switch of the preallocation. How 
>expensive is that check?

If you already looked up the vma, then it is very cheap.  Just
check for VM_RAND_READ in vma->vm_flags.

-Tony
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: page fault scalability patch V11 [1/7]: sloppy rss
@ 2004-11-22 15:00 Hugh Dickins
  2004-11-22 21:50 ` deferred rss update instead of " Christoph Lameter
  0 siblings, 1 reply; 23+ messages in thread
From: Hugh Dickins @ 2004-11-22 15:00 UTC (permalink / raw)
  To: Christoph Lameter
  Cc: torvalds, akpm, Benjamin Herrenschmidt, Nick Piggin, linux-mm,
	linux-ia64, linux-kernel

On Fri, 19 Nov 2004, Christoph Lameter wrote:
> On Fri, 19 Nov 2004, Hugh Dickins wrote:
> 
> > Sorry, against what tree do these patches apply?
> > Apparently not linux-2.6.9, nor latest -bk, nor -mm?
> 
> 2.6.10-rc2-bk3

Ah, thanks - got it patched now, but your mailer (or something else)
is eating trailing spaces.  Better than adding them, but we have to
apply this patch before your set:

--- 2.6.10-rc2-bk3/include/asm-i386/system.h	2004-11-15 16:21:12.000000000 +0000
+++ linux/include/asm-i386/system.h	2004-11-22 14:44:30.761904592 +0000
@@ -273,9 +273,9 @@ static inline unsigned long __cmpxchg(vo
 #define cmpxchg(ptr,o,n)\
 	((__typeof__(*(ptr)))__cmpxchg((ptr),(unsigned long)(o),\
 					(unsigned long)(n),sizeof(*(ptr))))
-    
+
 #ifdef __KERNEL__
-struct alt_instr { 
+struct alt_instr {
 	__u8 *instr; 		/* original instruction */
 	__u8 *replacement;
 	__u8  cpuid;		/* cpuid bit set for replacement */
--- 2.6.10-rc2-bk3/include/asm-s390/pgalloc.h	2004-05-10 03:33:39.000000000 +0100
+++ linux/include/asm-s390/pgalloc.h	2004-11-22 14:54:43.704723120 +0000
@@ -99,7 +99,7 @@ static inline void pgd_populate(struct m
 
 #endif /* __s390x__ */
 
-static inline void 
+static inline void
 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte)
 {
 #ifndef __s390x__
--- 2.6.10-rc2-bk3/mm/memory.c	2004-11-18 17:56:11.000000000 +0000
+++ linux/mm/memory.c	2004-11-22 14:39:33.924030808 +0000
@@ -1424,7 +1424,7 @@ out:
 /*
  * We are called with the MM semaphore and page_table_lock
  * spinlock held to protect against concurrent faults in
- * multithreaded programs. 
+ * multithreaded programs.
  */
 static int
 do_anonymous_page(struct mm_struct *mm, struct vm_area_struct *vma,
@@ -1615,7 +1615,7 @@ static int do_file_page(struct mm_struct
 	 * Fall back to the linear mapping if the fs does not support
 	 * ->populate:
 	 */
-	if (!vma->vm_ops || !vma->vm_ops->populate || 
+	if (!vma->vm_ops || !vma->vm_ops->populate ||
 			(write_access && !(vma->vm_flags & VM_SHARED))) {
 		pte_clear(pte);
 		return do_no_page(mm, vma, address, write_access, pte, pmd);

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

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

end of thread, other threads:[~2004-12-14 20:25 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-08 17:44 Anticipatory prefaulting in the page fault handler V1 Luck, Tony
2004-12-08 17:57 ` Christoph Lameter
  -- strict thread matches above, loose matches on Subject: below --
2004-12-08 18:31 Luck, Tony
2004-11-22 15:00 page fault scalability patch V11 [1/7]: sloppy rss Hugh Dickins
2004-11-22 21:50 ` deferred rss update instead of " Christoph Lameter
2004-11-22 22:22   ` Linus Torvalds
2004-11-22 22:27     ` Christoph Lameter
2004-11-22 22:40       ` Linus Torvalds
2004-12-01 23:41         ` page fault scalability patch V12 [0/7]: Overview and performance tests Christoph Lameter
2004-12-02  0:10           ` Linus Torvalds
2004-12-02  6:21             ` Jeff Garzik
2004-12-02  6:34               ` Andrew Morton
2004-12-02  6:48                 ` Jeff Garzik
2004-12-02  7:02                   ` Andrew Morton
2004-12-02  7:26                     ` Martin J. Bligh
2004-12-02  7:31                       ` Jeff Garzik
2004-12-02 18:10                         ` cliff white
2004-12-08 17:24                           ` Anticipatory prefaulting in the page fault handler V1 Christoph Lameter
2004-12-08 17:33                             ` Jesse Barnes
2004-12-08 17:56                               ` Christoph Lameter
2004-12-08 18:33                                 ` Jesse Barnes
2004-12-08 21:26                                 ` David S. Miller
2004-12-08 21:42                                   ` Linus Torvalds
2004-12-08 17:55                             ` Dave Hansen
2004-12-08 19:07                             ` Martin J. Bligh
2004-12-08 22:50                             ` Martin J. Bligh
2004-12-09 19:32                               ` Christoph Lameter
2004-12-13 14:30                                 ` Akinobu Mita
2004-12-13 17:10                                   ` Christoph Lameter
2004-12-13 22:16                                     ` Martin J. Bligh
2004-12-14 12:24                                     ` Akinobu Mita
2004-12-14 15:25                                       ` Akinobu Mita
2004-12-14 20:25                                       ` Christoph Lameter
2004-12-09 10:57                             ` Pavel Machek
2004-12-09 11:32                               ` Nick Piggin
2004-12-09 17:05                               ` Christoph Lameter
2004-12-14 15:28                             ` Adam Litke

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