[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJd=RBC6JzXzPn9OV8UsbEjX152RcbKpuGGy+OBGM6E43gourQ@mail.gmail.com>
Date: Fri, 8 Mar 2013 14:42:31 +0800
From: Hillf Danton <dhillf@...il.com>
To: Jiri Slaby <jslaby@...e.cz>
Cc: Daniel J Blueman <daniel@...ascale-asia.com>,
Linux Kernel <linux-kernel@...r.kernel.org>,
Steffen Persvold <sp@...ascale.com>, mm <linux-mm@...ck.org>,
Mel Gorman <mgorman@...e.de>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: kswapd craziness round 2
On Fri, Mar 8, 2013 at 3:37 AM, Jiri Slaby <jslaby@...e.cz> wrote:
> On 03/01/2013 03:02 PM, Hillf Danton wrote:
>> On Fri, Mar 1, 2013 at 1:02 AM, Jiri Slaby <jslaby@...e.cz> wrote:
>>>
>>> Ok, no difference, kswap is still crazy. I'm attaching the output of
>>> "grep -vw '0' /proc/vmstat" if you see something there.
>>>
>> Thanks to you for test and data.
>>
>> Lets try to restore the deleted nap, then.
>
> Oh, it seems to be nice now:
> root 579 0.0 0.0 0 0 ? S Mar04 0:13 [kswapd0]
>
Double thanks.
But Mel does not like it, probably.
Lets try nap in another way.
Hillf
--- a/mm/vmscan.c Thu Feb 21 20:01:02 2013
+++ b/mm/vmscan.c Fri Mar 8 14:36:10 2013
@@ -2793,6 +2793,10 @@ loop_again:
* speculatively avoid congestion waits
*/
zone_clear_flag(zone, ZONE_CONGESTED);
+
+ else if (sc.priority > 2 &&
+ sc.priority < DEF_PRIORITY - 2)
+ wait_iff_congested(zone, BLK_RW_ASYNC, HZ/10);
}
/*
--
>>
>> --- a/mm/vmscan.c Thu Feb 21 20:01:02 2013
>> +++ b/mm/vmscan.c Fri Mar 1 21:55:40 2013
>> @@ -2817,6 +2817,10 @@ loop_again:
>> */
>> if (sc.nr_reclaimed >= SWAP_CLUSTER_MAX)
>> break;
>> +
>> + if (sc.priority < DEF_PRIORITY - 2)
>> + congestion_wait(BLK_RW_ASYNC, HZ/10);
>> +
>> } while (--sc.priority >= 0);
>>
>> out:
>> --
>>
>
>
> --
> js
> suse labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists