Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757444Ab2FEHwJ (ORCPT ); Tue, 5 Jun 2012 03:52:09 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:35777 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756849Ab2FEHwG convert rfc822-to-8bit (ORCPT ); Tue, 5 Jun 2012 03:52:06 -0400 MIME-Version: 1.0 In-Reply-To: <4FCD14F1.1030105@gmail.com> References: <20120507121527.GA19526@lizard> <4FA82056.2070706@gmail.com> <20120601122118.GA6128@lizard> <4FCC7592.9030403@kernel.org> <20120604113811.GA4291@lizard> <4FCD14F1.1030105@gmail.com> Date: Tue, 5 Jun 2012 10:52:06 +0300 X-Google-Sender-Auth: _RNLk0yY3caqUKdneGECkexogq0 Message-ID: Subject: Re: [PATCH 0/5] Some vmevent fixes... From: Pekka Enberg To: KOSAKI Motohiro Cc: Anton Vorontsov , Minchan Kim , Leonid Moiseichuk , John Stultz , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, patches@linaro.org, kernel-team@android.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 707 Lines: 17 On Mon, Jun 4, 2012 at 11:05 PM, KOSAKI Motohiro wrote: >> - On desktops, apps can drop their caches on demand if they want to >> ? and can avoid swap activity? > > In this case, fallocate(VOLATILE) is work more better. For some cases, yes, but probably not for all. For example, if userspace doesn't know about "about to swap real soon" condition, it can continue to grow its caches making fallocate(VOLATILE) pretty much useless. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/