lkml.org 
[lkml]   [2003]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Rising io_load results Re: 2.5.63-mm1

--On Thursday, February 27, 2003 13:44:03 -0800 Andrew Morton
<akpm@digeo.com> wrote:

>> ...
>> Mapped: 4294923652 kB
>
> Well that's gotta hurt. This metric is used in making writeback
> decisions. Probably the objrmap patch.

Oops. You're right. Here's a patch to fix it.

Dave McCracken

======================================================================
Dave McCracken IBM Linux Base Kernel Team 1-512-838-3059
dmccr@us.ibm.com T/L 678-3059
--- 2.5.63-objrmap/mm/rmap.c 2003-02-27 15:58:34.000000000 -0600
+++ 2.5.63-objfix/mm/rmap.c 2003-02-27 15:56:56.000000000 -0600
@@ -248,6 +248,8 @@
BUG();
if (PageSwapCache(page))
BUG();
+ if (atomic_read(&page->pte.mapcount) == 0)
+ inc_page_state(nr_mapped);
atomic_inc(&page->pte.mapcount);
return pte_chain;
}
\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.040 / U:13.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site